Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d14b8f39 authored by Nicolas Ferre's avatar Nicolas Ferre
Browse files

Merge tag 'at91-fixes2' into at91-4.1-cleanup

Second fixes batch for AT91 on 4.0:
- little fix for !MMU debug: may also help for randconfig
- fix of 2 errors in LCD clock definitions
- in PM code, not writing the key leads to not execute the action
parents 37d122d7 5957457a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -462,8 +462,8 @@

					lcdck: lcdck {
						#clock-cells = <0>;
						reg = <4>;
						clocks = <&smd>;
						reg = <3>;
						clocks = <&mck>;
					};

					smdck: smdck {
@@ -771,7 +771,7 @@
						reg = <50>;
					};

					lcd_clk: lcd_clk {
					lcdc_clk: lcdc_clk {
						#clock-cells = <0>;
						reg = <51>;
					};
+4 −1
Original line number Diff line number Diff line
@@ -18,8 +18,11 @@
#define AT91_DBGU 0xfc00c000 /* SAMA5D4_BASE_USART3 */
#endif

/* Keep in sync with mach-at91/include/mach/hardware.h */
#ifdef CONFIG_MMU
#define AT91_IO_P2V(x) ((x) - 0x01000000)
#else
#define AT91_IO_P2V(x) (x)
#endif

#define AT91_DBGU_SR		(0x14)	/* Status Register */
#define AT91_DBGU_THR		(0x1c)	/* Transmitter Holding Register */
+2 −0
Original line number Diff line number Diff line
@@ -205,6 +205,7 @@ sdr_sr_done:
	/* Turn off the main oscillator */
	ldr	tmp1, [pmc, #AT91_CKGR_MOR]
	bic	tmp1, tmp1, #AT91_PMC_MOSCEN
	orr	tmp1, tmp1, #AT91_PMC_KEY
	str	tmp1, [pmc, #AT91_CKGR_MOR]

	/* Wait for interrupt */
@@ -213,6 +214,7 @@ sdr_sr_done:
	/* Turn on the main oscillator */
	ldr	tmp1, [pmc, #AT91_CKGR_MOR]
	orr	tmp1, tmp1, #AT91_PMC_MOSCEN
	orr	tmp1, tmp1, #AT91_PMC_KEY
	str	tmp1, [pmc, #AT91_CKGR_MOR]

	wait_moscrdy