diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-01-05 04:38:57 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-28 17:23:54 -0500 |
commit | 27bda036d246ae417af348d7868f96d2da208ecc (patch) | |
tree | 2b994f00f0927539a5da8ca4c01ef88995325343 /arch/arm | |
parent | 1b542757179675162865f2b5b5fdbcc8b9118f2a (diff) |
ARM: nomadik: move remaining PrimeCells to device tree
The two remaining PrimeCells, RNG and RTC, are migrated to the
device tree for device tree boot.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/ste-nomadik-stn8815.dtsi | 12 | ||||
-rw-r--r-- | arch/arm/mach-nomadik/cpu-8815.c | 11 |
2 files changed, 21 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/ste-nomadik-stn8815.dtsi b/arch/arm/boot/dts/ste-nomadik-stn8815.dtsi index 0a5b670430de..88fb98f910cf 100644 --- a/arch/arm/boot/dts/ste-nomadik-stn8815.dtsi +++ b/arch/arm/boot/dts/ste-nomadik-stn8815.dtsi | |||
@@ -76,5 +76,17 @@ | |||
76 | interrupts = <28>; | 76 | interrupts = <28>; |
77 | status = "disabled"; | 77 | status = "disabled"; |
78 | }; | 78 | }; |
79 | |||
80 | rng: rng@101b0000 { | ||
81 | compatible = "arm,primecell"; | ||
82 | reg = <0x101b0000 0x1000>; | ||
83 | }; | ||
84 | |||
85 | rtc: rtc@101e8000 { | ||
86 | compatible = "arm,pl031", "arm,primecell"; | ||
87 | reg = <0x101e8000 0x1000>; | ||
88 | interrupt-parent = <&vica>; | ||
89 | interrupts = <10>; | ||
90 | }; | ||
79 | }; | 91 | }; |
80 | }; | 92 | }; |
diff --git a/arch/arm/mach-nomadik/cpu-8815.c b/arch/arm/mach-nomadik/cpu-8815.c index 0114d4f878a1..8d071d2769b5 100644 --- a/arch/arm/mach-nomadik/cpu-8815.c +++ b/arch/arm/mach-nomadik/cpu-8815.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <asm/mach/arch.h> | 39 | #include <asm/mach/arch.h> |
40 | #include <asm/mach/map.h> | 40 | #include <asm/mach/map.h> |
41 | #include <asm/mach/time.h> | 41 | #include <asm/mach/time.h> |
42 | #include <asm/mach-types.h> | ||
42 | 43 | ||
43 | #include <asm/cacheflush.h> | 44 | #include <asm/cacheflush.h> |
44 | #include <asm/hardware/cache-l2x0.h> | 45 | #include <asm/hardware/cache-l2x0.h> |
@@ -154,8 +155,10 @@ static int __init cpu8815_init(void) | |||
154 | cpu8815_add_gpios(cpu8815_gpio_base, ARRAY_SIZE(cpu8815_gpio_base), | 155 | cpu8815_add_gpios(cpu8815_gpio_base, ARRAY_SIZE(cpu8815_gpio_base), |
155 | IRQ_GPIO0, &pdata); | 156 | IRQ_GPIO0, &pdata); |
156 | cpu8815_add_pinctrl(NULL, "pinctrl-stn8815"); | 157 | cpu8815_add_pinctrl(NULL, "pinctrl-stn8815"); |
157 | amba_apb_device_add(NULL, "rng", NOMADIK_RNG_BASE, SZ_4K, 0, 0, NULL, 0); | 158 | if (machine_is_nomadik()) { |
158 | amba_apb_device_add(NULL, "rtc-pl031", NOMADIK_RTC_BASE, SZ_4K, IRQ_RTC_RTT, 0, NULL, 0); | 159 | amba_apb_device_add(NULL, "rng", NOMADIK_RNG_BASE, SZ_4K, 0, 0, NULL, 0); |
160 | amba_apb_device_add(NULL, "rtc-pl031", NOMADIK_RTC_BASE, SZ_4K, IRQ_RTC_RTT, 0, NULL, 0); | ||
161 | } | ||
159 | return 0; | 162 | return 0; |
160 | } | 163 | } |
161 | arch_initcall(cpu8815_init); | 164 | arch_initcall(cpu8815_init); |
@@ -252,6 +255,10 @@ static struct of_dev_auxdata cpu8815_auxdata_lookup[] __initdata = { | |||
252 | "uart0", NULL), | 255 | "uart0", NULL), |
253 | OF_DEV_AUXDATA("arm,primecell", NOMADIK_UART1_BASE, | 256 | OF_DEV_AUXDATA("arm,primecell", NOMADIK_UART1_BASE, |
254 | "uart1", NULL), | 257 | "uart1", NULL), |
258 | OF_DEV_AUXDATA("arm,primecell", NOMADIK_RNG_BASE, | ||
259 | "rng", NULL), | ||
260 | OF_DEV_AUXDATA("arm,primecell", NOMADIK_RTC_BASE, | ||
261 | "rtc-pl031", NULL), | ||
255 | { /* sentinel */ }, | 262 | { /* sentinel */ }, |
256 | }; | 263 | }; |
257 | 264 | ||