diff options
author | Stefan Roese <sr@denx.de> | 2012-11-19 06:09:42 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2012-11-20 09:36:34 -0500 |
commit | f055f1f682b84b3b785813f5c11efacab6001253 (patch) | |
tree | f540d68c770dc7a4cb0ca162aa73c36336b55b01 | |
parent | aa25115aff14a149a6b611fe54776c142e483781 (diff) |
ARM: sunxi: Add sun4i and cubieboard support
This patch adds support for the Cubieboard based on the Allwinner
A10/sun4i SoC. Currently only UART is supported. Other devices
will eventually follow.
Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/boot/dts/sun4i-cubieboard.dts | 38 | ||||
-rw-r--r-- | arch/arm/boot/dts/sunxi.dtsi | 9 | ||||
-rw-r--r-- | arch/arm/mach-sunxi/sunxi.c | 1 |
4 files changed, 50 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 9b2d3f061f13..4dd567b62d2a 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -84,7 +84,8 @@ dtb-$(CONFIG_ARCH_SPEAR3XX)+= spear300-evb.dtb \ | |||
84 | spear310-evb.dtb \ | 84 | spear310-evb.dtb \ |
85 | spear320-evb.dtb | 85 | spear320-evb.dtb |
86 | dtb-$(CONFIG_ARCH_SPEAR6XX)+= spear600-evb.dtb | 86 | dtb-$(CONFIG_ARCH_SPEAR6XX)+= spear600-evb.dtb |
87 | dtb-$(CONFIG_ARCH_SUNXI) += sun5i-olinuxino.dtb | 87 | dtb-$(CONFIG_ARCH_SUNXI) += sun4i-cubieboard.dtb \ |
88 | sun5i-olinuxino.dtb | ||
88 | dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ | 89 | dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ |
89 | tegra20-medcom-wide.dtb \ | 90 | tegra20-medcom-wide.dtb \ |
90 | tegra20-paz00.dtb \ | 91 | tegra20-paz00.dtb \ |
diff --git a/arch/arm/boot/dts/sun4i-cubieboard.dts b/arch/arm/boot/dts/sun4i-cubieboard.dts new file mode 100644 index 000000000000..f4ca126ad994 --- /dev/null +++ b/arch/arm/boot/dts/sun4i-cubieboard.dts | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * Copyright 2012 Stefan Roese | ||
3 | * Stefan Roese <sr@denx.de> | ||
4 | * | ||
5 | * The code contained herein is licensed under the GNU General Public | ||
6 | * License. You may obtain a copy of the GNU General Public License | ||
7 | * Version 2 or later at the following locations: | ||
8 | * | ||
9 | * http://www.opensource.org/licenses/gpl-license.html | ||
10 | * http://www.gnu.org/copyleft/gpl.html | ||
11 | */ | ||
12 | |||
13 | /dts-v1/; | ||
14 | /include/ "sun4i.dtsi" | ||
15 | |||
16 | / { | ||
17 | model = "Cubietech Cubieboard"; | ||
18 | compatible = "cubietech,cubieboard", "allwinner,sun4i"; | ||
19 | |||
20 | aliases { | ||
21 | serial0 = &uart0; | ||
22 | serial1 = &uart1; | ||
23 | }; | ||
24 | |||
25 | chosen { | ||
26 | bootargs = "earlyprintk console=ttyS0,115200"; | ||
27 | }; | ||
28 | |||
29 | soc { | ||
30 | uart0: uart@01c28000 { | ||
31 | status = "okay"; | ||
32 | }; | ||
33 | |||
34 | uart1: uart@01c28400 { | ||
35 | status = "okay"; | ||
36 | }; | ||
37 | }; | ||
38 | }; | ||
diff --git a/arch/arm/boot/dts/sunxi.dtsi b/arch/arm/boot/dts/sunxi.dtsi index 9e476deb8809..8284fbd7ddab 100644 --- a/arch/arm/boot/dts/sunxi.dtsi +++ b/arch/arm/boot/dts/sunxi.dtsi | |||
@@ -54,6 +54,15 @@ | |||
54 | #interrupt-cells = <1>; | 54 | #interrupt-cells = <1>; |
55 | }; | 55 | }; |
56 | 56 | ||
57 | uart0: uart@01c28000 { | ||
58 | compatible = "ns8250"; | ||
59 | reg = <0x01c28000 0x400>; | ||
60 | interrupts = <1>; | ||
61 | reg-shift = <2>; | ||
62 | clock-frequency = <24000000>; | ||
63 | status = "disabled"; | ||
64 | }; | ||
65 | |||
57 | uart1: uart@01c28400 { | 66 | uart1: uart@01c28400 { |
58 | compatible = "ns8250"; | 67 | compatible = "ns8250"; |
59 | reg = <0x01c28400 0x400>; | 68 | reg = <0x01c28400 0x400>; |
diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index 8f42df8af1da..13d4d96cbc85 100644 --- a/arch/arm/mach-sunxi/sunxi.c +++ b/arch/arm/mach-sunxi/sunxi.c | |||
@@ -46,6 +46,7 @@ static void __init sunxi_dt_init(void) | |||
46 | } | 46 | } |
47 | 47 | ||
48 | static const char * const sunxi_board_dt_compat[] = { | 48 | static const char * const sunxi_board_dt_compat[] = { |
49 | "allwinner,sun4i", | ||
49 | "allwinner,sun5i", | 50 | "allwinner,sun5i", |
50 | NULL, | 51 | NULL, |
51 | }; | 52 | }; |