diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/sama5d4.dtsi | 6 | ||||
-rw-r--r-- | arch/arm/include/debug/at91.S | 5 | ||||
-rw-r--r-- | arch/arm/mach-at91/pm_slowclock.S | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi index 97d5b9759c07..8240b490825c 100644 --- a/arch/arm/boot/dts/sama5d4.dtsi +++ b/arch/arm/boot/dts/sama5d4.dtsi | |||
@@ -462,8 +462,8 @@ | |||
462 | 462 | ||
463 | lcdck: lcdck { | 463 | lcdck: lcdck { |
464 | #clock-cells = <0>; | 464 | #clock-cells = <0>; |
465 | reg = <4>; | 465 | reg = <3>; |
466 | clocks = <&smd>; | 466 | clocks = <&mck>; |
467 | }; | 467 | }; |
468 | 468 | ||
469 | smdck: smdck { | 469 | smdck: smdck { |
@@ -771,7 +771,7 @@ | |||
771 | reg = <50>; | 771 | reg = <50>; |
772 | }; | 772 | }; |
773 | 773 | ||
774 | lcd_clk: lcd_clk { | 774 | lcdc_clk: lcdc_clk { |
775 | #clock-cells = <0>; | 775 | #clock-cells = <0>; |
776 | reg = <51>; | 776 | reg = <51>; |
777 | }; | 777 | }; |
diff --git a/arch/arm/include/debug/at91.S b/arch/arm/include/debug/at91.S index 80a6501b4d50..c3c45e628e33 100644 --- a/arch/arm/include/debug/at91.S +++ b/arch/arm/include/debug/at91.S | |||
@@ -18,8 +18,11 @@ | |||
18 | #define AT91_DBGU 0xfc00c000 /* SAMA5D4_BASE_USART3 */ | 18 | #define AT91_DBGU 0xfc00c000 /* SAMA5D4_BASE_USART3 */ |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | /* Keep in sync with mach-at91/include/mach/hardware.h */ | 21 | #ifdef CONFIG_MMU |
22 | #define AT91_IO_P2V(x) ((x) - 0x01000000) | 22 | #define AT91_IO_P2V(x) ((x) - 0x01000000) |
23 | #else | ||
24 | #define AT91_IO_P2V(x) (x) | ||
25 | #endif | ||
23 | 26 | ||
24 | #define AT91_DBGU_SR (0x14) /* Status Register */ | 27 | #define AT91_DBGU_SR (0x14) /* Status Register */ |
25 | #define AT91_DBGU_THR (0x1c) /* Transmitter Holding Register */ | 28 | #define AT91_DBGU_THR (0x1c) /* Transmitter Holding Register */ |
diff --git a/arch/arm/mach-at91/pm_slowclock.S b/arch/arm/mach-at91/pm_slowclock.S index a2cc49f96f61..8ab80e579be0 100644 --- a/arch/arm/mach-at91/pm_slowclock.S +++ b/arch/arm/mach-at91/pm_slowclock.S | |||
@@ -205,6 +205,7 @@ sdr_sr_done: | |||
205 | /* Turn off the main oscillator */ | 205 | /* Turn off the main oscillator */ |
206 | ldr tmp1, [pmc, #AT91_CKGR_MOR] | 206 | ldr tmp1, [pmc, #AT91_CKGR_MOR] |
207 | bic tmp1, tmp1, #AT91_PMC_MOSCEN | 207 | bic tmp1, tmp1, #AT91_PMC_MOSCEN |
208 | orr tmp1, tmp1, #AT91_PMC_KEY | ||
208 | str tmp1, [pmc, #AT91_CKGR_MOR] | 209 | str tmp1, [pmc, #AT91_CKGR_MOR] |
209 | 210 | ||
210 | /* Wait for interrupt */ | 211 | /* Wait for interrupt */ |
@@ -213,6 +214,7 @@ sdr_sr_done: | |||
213 | /* Turn on the main oscillator */ | 214 | /* Turn on the main oscillator */ |
214 | ldr tmp1, [pmc, #AT91_CKGR_MOR] | 215 | ldr tmp1, [pmc, #AT91_CKGR_MOR] |
215 | orr tmp1, tmp1, #AT91_PMC_MOSCEN | 216 | orr tmp1, tmp1, #AT91_PMC_MOSCEN |
217 | orr tmp1, tmp1, #AT91_PMC_KEY | ||
216 | str tmp1, [pmc, #AT91_CKGR_MOR] | 218 | str tmp1, [pmc, #AT91_CKGR_MOR] |
217 | 219 | ||
218 | wait_moscrdy | 220 | wait_moscrdy |