diff options
author | Jonas Jensen <jonas.jensen@gmail.com> | 2013-12-18 07:58:45 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-12-22 14:57:38 -0500 |
commit | 17723fd357f9973d5dd2908e3cc6b4149d891429 (patch) | |
tree | 44df24f23282ea4c99d0b39e90b0796acccb9fa3 /arch/arm | |
parent | 345bc449e78664060a2863dafc680a4d1910ecb6 (diff) |
ARM: moxart: add MOXA ART SoC platform files
The MOXA ART SoC is based on Faraday's FA526. This is a ARMv4 32-bit
192 MHz CPU with MMU and 16KB/8KB D/I-cache.
Add platform support for this SoC.
Also add UC-7112-LX as a machine.
Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/configs/moxart_defconfig | 149 | ||||
-rw-r--r-- | arch/arm/mach-moxart/Kconfig | 31 | ||||
-rw-r--r-- | arch/arm/mach-moxart/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/mach-moxart/moxart.c | 15 |
6 files changed, 201 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a213fa3f96d8..e351f1c8a6a9 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -969,6 +969,8 @@ source "arch/arm/mach-ks8695/Kconfig" | |||
969 | 969 | ||
970 | source "arch/arm/mach-msm/Kconfig" | 970 | source "arch/arm/mach-msm/Kconfig" |
971 | 971 | ||
972 | source "arch/arm/mach-moxart/Kconfig" | ||
973 | |||
972 | source "arch/arm/mach-mv78xx0/Kconfig" | 974 | source "arch/arm/mach-mv78xx0/Kconfig" |
973 | 975 | ||
974 | source "arch/arm/mach-imx/Kconfig" | 976 | source "arch/arm/mach-imx/Kconfig" |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 28b4585b20dd..91b16ce35a6c 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -169,6 +169,7 @@ machine-$(CONFIG_ARCH_KIRKWOOD) += kirkwood | |||
169 | machine-$(CONFIG_ARCH_KS8695) += ks8695 | 169 | machine-$(CONFIG_ARCH_KS8695) += ks8695 |
170 | machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx | 170 | machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx |
171 | machine-$(CONFIG_ARCH_MMP) += mmp | 171 | machine-$(CONFIG_ARCH_MMP) += mmp |
172 | machine-$(CONFIG_ARCH_MOXART) += moxart | ||
172 | machine-$(CONFIG_ARCH_MSM) += msm | 173 | machine-$(CONFIG_ARCH_MSM) += msm |
173 | machine-$(CONFIG_ARCH_MV78XX0) += mv78xx0 | 174 | machine-$(CONFIG_ARCH_MV78XX0) += mv78xx0 |
174 | machine-$(CONFIG_ARCH_MVEBU) += mvebu | 175 | machine-$(CONFIG_ARCH_MVEBU) += mvebu |
diff --git a/arch/arm/configs/moxart_defconfig b/arch/arm/configs/moxart_defconfig new file mode 100644 index 000000000000..a3cb76cfb828 --- /dev/null +++ b/arch/arm/configs/moxart_defconfig | |||
@@ -0,0 +1,149 @@ | |||
1 | # CONFIG_LOCALVERSION_AUTO is not set | ||
2 | # CONFIG_SWAP is not set | ||
3 | CONFIG_SYSVIPC=y | ||
4 | CONFIG_NO_HZ=y | ||
5 | CONFIG_IKCONFIG=y | ||
6 | CONFIG_IKCONFIG_PROC=y | ||
7 | CONFIG_SYSCTL_SYSCALL=y | ||
8 | # CONFIG_ELF_CORE is not set | ||
9 | # CONFIG_BASE_FULL is not set | ||
10 | # CONFIG_SIGNALFD is not set | ||
11 | # CONFIG_TIMERFD is not set | ||
12 | # CONFIG_EVENTFD is not set | ||
13 | # CONFIG_AIO is not set | ||
14 | CONFIG_EMBEDDED=y | ||
15 | # CONFIG_VM_EVENT_COUNTERS is not set | ||
16 | # CONFIG_SLUB_DEBUG is not set | ||
17 | # CONFIG_COMPAT_BRK is not set | ||
18 | # CONFIG_LBDAF is not set | ||
19 | # CONFIG_BLK_DEV_BSG is not set | ||
20 | # CONFIG_IOSCHED_DEADLINE is not set | ||
21 | CONFIG_ARCH_MULTI_V4T=y | ||
22 | # CONFIG_ARCH_MULTI_V7 is not set | ||
23 | CONFIG_KEYBOARD_GPIO_POLLED=y | ||
24 | CONFIG_ARCH_MOXART=y | ||
25 | CONFIG_MACH_UC7112LX=y | ||
26 | CONFIG_PREEMPT=y | ||
27 | CONFIG_AEABI=y | ||
28 | # CONFIG_ATAGS is not set | ||
29 | CONFIG_ARM_APPENDED_DTB=y | ||
30 | CONFIG_NET=y | ||
31 | CONFIG_PACKET=y | ||
32 | CONFIG_UNIX=y | ||
33 | CONFIG_INET=y | ||
34 | CONFIG_IP_MULTICAST=y | ||
35 | CONFIG_IP_PNP=y | ||
36 | CONFIG_IP_PNP_DHCP=y | ||
37 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
38 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
39 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
40 | # CONFIG_INET_LRO is not set | ||
41 | # CONFIG_INET_DIAG is not set | ||
42 | # CONFIG_IPV6 is not set | ||
43 | # CONFIG_WIRELESS is not set | ||
44 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
45 | CONFIG_DEVTMPFS=y | ||
46 | CONFIG_DEVTMPFS_MOUNT=y | ||
47 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
48 | # CONFIG_FW_LOADER is not set | ||
49 | CONFIG_MTD=y | ||
50 | CONFIG_MTD_BLOCK=y | ||
51 | CONFIG_MTD_CFI=y | ||
52 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
53 | CONFIG_MTD_CFI_GEOMETRY=y | ||
54 | CONFIG_MTD_CFI_INTELEXT=y | ||
55 | CONFIG_MTD_COMPLEX_MAPPINGS=y | ||
56 | CONFIG_MTD_PHYSMAP=y | ||
57 | CONFIG_MTD_PHYSMAP_OF=y | ||
58 | CONFIG_PROC_DEVICETREE=y | ||
59 | CONFIG_NETDEVICES=y | ||
60 | CONFIG_NETCONSOLE=y | ||
61 | CONFIG_NETCONSOLE_DYNAMIC=y | ||
62 | # CONFIG_NET_VENDOR_ARC is not set | ||
63 | # CONFIG_NET_CADENCE is not set | ||
64 | # CONFIG_NET_VENDOR_BROADCOM is not set | ||
65 | # CONFIG_NET_VENDOR_CIRRUS is not set | ||
66 | # CONFIG_NET_VENDOR_FARADAY is not set | ||
67 | # CONFIG_NET_VENDOR_INTEL is not set | ||
68 | # CONFIG_NET_VENDOR_MARVELL is not set | ||
69 | # CONFIG_NET_VENDOR_MICREL is not set | ||
70 | CONFIG_ARM_MOXART_ETHER=y | ||
71 | # CONFIG_NET_VENDOR_NATSEMI is not set | ||
72 | # CONFIG_NET_VENDOR_SEEQ is not set | ||
73 | # CONFIG_NET_VENDOR_SMSC is not set | ||
74 | # CONFIG_NET_VENDOR_STMICRO is not set | ||
75 | # CONFIG_NET_VENDOR_VIA is not set | ||
76 | # CONFIG_NET_VENDOR_WIZNET is not set | ||
77 | CONFIG_REALTEK_PHY=y | ||
78 | CONFIG_MDIO_MOXART=y | ||
79 | # CONFIG_WLAN is not set | ||
80 | # CONFIG_INPUT_MOUSEDEV is not set | ||
81 | CONFIG_INPUT_EVDEV=y | ||
82 | CONFIG_INPUT_EVBUG=y | ||
83 | # CONFIG_KEYBOARD_ATKBD is not set | ||
84 | # CONFIG_INPUT_MOUSE is not set | ||
85 | # CONFIG_SERIO is not set | ||
86 | # CONFIG_VT is not set | ||
87 | # CONFIG_LEGACY_PTYS is not set | ||
88 | # CONFIG_DEVKMEM is not set | ||
89 | CONFIG_SERIAL_8250=y | ||
90 | CONFIG_SERIAL_8250_CONSOLE=y | ||
91 | CONFIG_SERIAL_8250_NR_UARTS=1 | ||
92 | CONFIG_SERIAL_8250_RUNTIME_UARTS=1 | ||
93 | CONFIG_SERIAL_8250_EXTENDED=y | ||
94 | CONFIG_SERIAL_8250_SHARE_IRQ=y | ||
95 | CONFIG_SERIAL_OF_PLATFORM=y | ||
96 | # CONFIG_HW_RANDOM is not set | ||
97 | CONFIG_DEBUG_GPIO=y | ||
98 | CONFIG_GPIO_SYSFS=y | ||
99 | CONFIG_GPIO_MOXART=y | ||
100 | CONFIG_POWER_SUPPLY=y | ||
101 | CONFIG_POWER_RESET=y | ||
102 | CONFIG_POWER_RESET_GPIO=y | ||
103 | # CONFIG_HWMON is not set | ||
104 | CONFIG_WATCHDOG=y | ||
105 | CONFIG_WATCHDOG_CORE=y | ||
106 | CONFIG_WATCHDOG_NOWAYOUT=y | ||
107 | CONFIG_MOXART_WDT=y | ||
108 | # CONFIG_USB_SUPPORT is not set | ||
109 | CONFIG_MMC=y | ||
110 | CONFIG_MMC_SDHCI_MOXART=y | ||
111 | CONFIG_NEW_LEDS=y | ||
112 | CONFIG_LEDS_CLASS=y | ||
113 | CONFIG_LEDS_GPIO=y | ||
114 | CONFIG_LEDS_TRIGGER_TIMER=y | ||
115 | CONFIG_LEDS_TRIGGER_ONESHOT=y | ||
116 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | ||
117 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | ||
118 | CONFIG_RTC_CLASS=y | ||
119 | CONFIG_RTC_DRV_MOXART=y | ||
120 | CONFIG_DMADEVICES=y | ||
121 | CONFIG_MOXART_DMA=y | ||
122 | # CONFIG_IOMMU_SUPPORT is not set | ||
123 | CONFIG_EXT3_FS=y | ||
124 | CONFIG_TMPFS=y | ||
125 | CONFIG_CONFIGFS_FS=y | ||
126 | CONFIG_JFFS2_FS=y | ||
127 | CONFIG_PRINTK_TIME=y | ||
128 | CONFIG_DEBUG_INFO=y | ||
129 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | ||
130 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
131 | CONFIG_DEBUG_PAGEALLOC=y | ||
132 | CONFIG_DEBUG_OBJECTS=y | ||
133 | CONFIG_DEBUG_KMEMLEAK=y | ||
134 | CONFIG_DEBUG_STACK_USAGE=y | ||
135 | CONFIG_DEBUG_MEMORY_INIT=y | ||
136 | CONFIG_DEBUG_SHIRQ=y | ||
137 | CONFIG_DETECT_HUNG_TASK=y | ||
138 | # CONFIG_SCHED_DEBUG is not set | ||
139 | # CONFIG_DEBUG_PREEMPT is not set | ||
140 | CONFIG_PROVE_LOCKING=y | ||
141 | CONFIG_DMA_API_DEBUG=y | ||
142 | CONFIG_KGDB=y | ||
143 | CONFIG_DEBUG_LL=y | ||
144 | CONFIG_DEBUG_LL_UART_8250=y | ||
145 | CONFIG_DEBUG_UART_PHYS=0x98200000 | ||
146 | CONFIG_DEBUG_UART_VIRT=0xf9820000 | ||
147 | CONFIG_EARLY_PRINTK=y | ||
148 | CONFIG_KEYS=y | ||
149 | CONFIG_CRC32_BIT=y | ||
diff --git a/arch/arm/mach-moxart/Kconfig b/arch/arm/mach-moxart/Kconfig new file mode 100644 index 000000000000..ba470d64493b --- /dev/null +++ b/arch/arm/mach-moxart/Kconfig | |||
@@ -0,0 +1,31 @@ | |||
1 | config ARCH_MOXART | ||
2 | bool "MOXA ART SoC" if ARCH_MULTI_V4T | ||
3 | select CPU_FA526 | ||
4 | select ARM_DMA_MEM_BUFFERABLE | ||
5 | select DMA_OF | ||
6 | select USE_OF | ||
7 | select CLKSRC_OF | ||
8 | select CLKSRC_MMIO | ||
9 | select HAVE_CLK | ||
10 | select COMMON_CLK | ||
11 | select GENERIC_IRQ_CHIP | ||
12 | select ARCH_REQUIRE_GPIOLIB | ||
13 | select GENERIC_CLOCKEVENTS | ||
14 | select PHYLIB if NETDEVICES | ||
15 | help | ||
16 | Say Y here if you want to run your kernel on hardware with a | ||
17 | MOXA ART SoC. | ||
18 | The MOXA ART SoC is based on a Faraday FA526 ARMv4 32-bit | ||
19 | 192 MHz CPU with MMU and 16KB/8KB D/I-cache (UC-7112-LX). | ||
20 | Used on models UC-7101, UC-7112/UC-7110, IA240/IA241, IA3341. | ||
21 | |||
22 | if ARCH_MOXART | ||
23 | |||
24 | config MACH_UC7112LX | ||
25 | bool "MOXA UC-7112-LX" | ||
26 | depends on ARCH_MOXART | ||
27 | help | ||
28 | Say Y here if you intend to run this kernel on a MOXA | ||
29 | UC-7112-LX embedded computer. | ||
30 | |||
31 | endif | ||
diff --git a/arch/arm/mach-moxart/Makefile b/arch/arm/mach-moxart/Makefile new file mode 100644 index 000000000000..fa022eb10ca1 --- /dev/null +++ b/arch/arm/mach-moxart/Makefile | |||
@@ -0,0 +1,3 @@ | |||
1 | # Object file lists. | ||
2 | |||
3 | obj-$(CONFIG_MACH_UC7112LX) += moxart.o | ||
diff --git a/arch/arm/mach-moxart/moxart.c b/arch/arm/mach-moxart/moxart.c new file mode 100644 index 000000000000..86b6d9b57c54 --- /dev/null +++ b/arch/arm/mach-moxart/moxart.c | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-moxart/moxart.c | ||
3 | * | ||
4 | * (C) Copyright 2013, Jonas Jensen <jonas.jensen@gmail.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | */ | ||