diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2009-03-03 02:22:00 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-03-03 02:22:00 -0500 |
commit | 5ac072e110ff358a9ebc318a1b54f0182b799f72 (patch) | |
tree | faa6de8b7eb18f71461b297d5eb85dcfec1b7ceb /arch | |
parent | 37042fbd8b3256d2a44b17646fa9de8777d5a34a (diff) |
sh: Urquell board support.
This adds preliminary support for the SH7786-based Urquell board.
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/Kconfig | 5 | ||||
-rw-r--r-- | arch/sh/boards/Makefile | 1 | ||||
-rw-r--r-- | arch/sh/boards/board-urquell.c | 128 | ||||
-rw-r--r-- | arch/sh/configs/urquell_defconfig | 534 | ||||
-rw-r--r-- | arch/sh/include/mach-common/mach/urquell.h | 68 | ||||
-rw-r--r-- | arch/sh/tools/mach-types | 1 |
6 files changed, 737 insertions, 0 deletions
diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index c9da37088d2e..694abecf6025 100644 --- a/arch/sh/boards/Kconfig +++ b/arch/sh/boards/Kconfig | |||
@@ -162,6 +162,11 @@ config SH_SH7785LCR_29BIT_PHYSMAPS | |||
162 | DIP switch(S2-5). If you set the DIP switch for S2-5 = ON, | 162 | DIP switch(S2-5). If you set the DIP switch for S2-5 = ON, |
163 | you can access all on-board device in 29bit address mode. | 163 | you can access all on-board device in 29bit address mode. |
164 | 164 | ||
165 | config SH_URQUELL | ||
166 | bool "Urquell" | ||
167 | depends on CPU_SUBTYPE_SH7786 | ||
168 | select ARCH_REQUIRE_GPIOLIB | ||
169 | |||
165 | config SH_MIGOR | 170 | config SH_MIGOR |
166 | bool "Migo-R" | 171 | bool "Migo-R" |
167 | depends on CPU_SUBTYPE_SH7722 | 172 | depends on CPU_SUBTYPE_SH7722 |
diff --git a/arch/sh/boards/Makefile b/arch/sh/boards/Makefile index 269ae2be49ef..6f101a8161f5 100644 --- a/arch/sh/boards/Makefile +++ b/arch/sh/boards/Makefile | |||
@@ -4,5 +4,6 @@ | |||
4 | obj-$(CONFIG_SH_AP325RXA) += board-ap325rxa.o | 4 | obj-$(CONFIG_SH_AP325RXA) += board-ap325rxa.o |
5 | obj-$(CONFIG_SH_MAGIC_PANEL_R2) += board-magicpanelr2.o | 5 | obj-$(CONFIG_SH_MAGIC_PANEL_R2) += board-magicpanelr2.o |
6 | obj-$(CONFIG_SH_SH7785LCR) += board-sh7785lcr.o | 6 | obj-$(CONFIG_SH_SH7785LCR) += board-sh7785lcr.o |
7 | obj-$(CONFIG_SH_URQUELL) += board-urquell.o | ||
7 | obj-$(CONFIG_SH_SHMIN) += board-shmin.o | 8 | obj-$(CONFIG_SH_SHMIN) += board-shmin.o |
8 | obj-$(CONFIG_SH_EDOSK7760) += board-edosk7760.o | 9 | obj-$(CONFIG_SH_EDOSK7760) += board-edosk7760.o |
diff --git a/arch/sh/boards/board-urquell.c b/arch/sh/boards/board-urquell.c new file mode 100644 index 000000000000..d5caeabf46e0 --- /dev/null +++ b/arch/sh/boards/board-urquell.c | |||
@@ -0,0 +1,128 @@ | |||
1 | /* | ||
2 | * Renesas Technology Corp. SH7786 Urquell Support. | ||
3 | * | ||
4 | * Copyright (C) 2008 Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * This file is subject to the terms and conditions of the GNU General Public | ||
8 | * License. See the file "COPYING" in the main directory of this archive | ||
9 | * for more details. | ||
10 | */ | ||
11 | #include <linux/init.h> | ||
12 | #include <linux/platform_device.h> | ||
13 | #include <linux/fb.h> | ||
14 | #include <linux/mtd/physmap.h> | ||
15 | #include <linux/delay.h> | ||
16 | #include <linux/gpio.h> | ||
17 | #include <linux/irq.h> | ||
18 | #include <mach/urquell.h> | ||
19 | #include <cpu/sh7786.h> | ||
20 | #include <asm/heartbeat.h> | ||
21 | #include <asm/sizes.h> | ||
22 | |||
23 | static struct resource heartbeat_resources[] = { | ||
24 | [0] = { | ||
25 | .start = BOARDREG(SLEDR), | ||
26 | .end = BOARDREG(SLEDR), | ||
27 | .flags = IORESOURCE_MEM, | ||
28 | }, | ||
29 | }; | ||
30 | |||
31 | static struct heartbeat_data heartbeat_data = { | ||
32 | .regsize = 16, | ||
33 | }; | ||
34 | |||
35 | static struct platform_device heartbeat_device = { | ||
36 | .name = "heartbeat", | ||
37 | .id = -1, | ||
38 | .dev = { | ||
39 | .platform_data = &heartbeat_data, | ||
40 | }, | ||
41 | .num_resources = ARRAY_SIZE(heartbeat_resources), | ||
42 | .resource = heartbeat_resources, | ||
43 | }; | ||
44 | |||
45 | static struct mtd_partition nor_flash_partitions[] = { | ||
46 | { | ||
47 | .name = "loader", | ||
48 | .offset = 0x00000000, | ||
49 | .size = SZ_512K, | ||
50 | .mask_flags = MTD_WRITEABLE, /* Read-only */ | ||
51 | }, | ||
52 | { | ||
53 | .name = "bootenv", | ||
54 | .offset = MTDPART_OFS_APPEND, | ||
55 | .size = SZ_512K, | ||
56 | .mask_flags = MTD_WRITEABLE, /* Read-only */ | ||
57 | }, | ||
58 | { | ||
59 | .name = "kernel", | ||
60 | .offset = MTDPART_OFS_APPEND, | ||
61 | .size = SZ_4M, | ||
62 | }, | ||
63 | { | ||
64 | .name = "data", | ||
65 | .offset = MTDPART_OFS_APPEND, | ||
66 | .size = MTDPART_SIZ_FULL, | ||
67 | }, | ||
68 | }; | ||
69 | |||
70 | static struct physmap_flash_data nor_flash_data = { | ||
71 | .width = 2, | ||
72 | .parts = nor_flash_partitions, | ||
73 | .nr_parts = ARRAY_SIZE(nor_flash_partitions), | ||
74 | }; | ||
75 | |||
76 | static struct resource nor_flash_resources[] = { | ||
77 | [0] = { | ||
78 | .start = NOR_FLASH_ADDR, | ||
79 | .end = NOR_FLASH_ADDR + NOR_FLASH_SIZE - 1, | ||
80 | .flags = IORESOURCE_MEM, | ||
81 | } | ||
82 | }; | ||
83 | |||
84 | static struct platform_device nor_flash_device = { | ||
85 | .name = "physmap-flash", | ||
86 | .dev = { | ||
87 | .platform_data = &nor_flash_data, | ||
88 | }, | ||
89 | .num_resources = ARRAY_SIZE(nor_flash_resources), | ||
90 | .resource = nor_flash_resources, | ||
91 | }; | ||
92 | |||
93 | static struct platform_device *urquell_devices[] __initdata = { | ||
94 | &heartbeat_device, | ||
95 | &nor_flash_device, | ||
96 | }; | ||
97 | |||
98 | static int __init urquell_devices_setup(void) | ||
99 | { | ||
100 | /* USB */ | ||
101 | gpio_request(GPIO_FN_USB_OVC0, NULL); | ||
102 | gpio_request(GPIO_FN_USB_PENC0, NULL); | ||
103 | |||
104 | return platform_add_devices(urquell_devices, | ||
105 | ARRAY_SIZE(urquell_devices)); | ||
106 | } | ||
107 | device_initcall(urquell_devices_setup); | ||
108 | |||
109 | static void urquell_power_off(void) | ||
110 | { | ||
111 | __raw_writew(0xa5a5, UBOARDREG(SRSTR)); | ||
112 | } | ||
113 | |||
114 | /* Initialize the board */ | ||
115 | static void __init urquell_setup(char **cmdline_p) | ||
116 | { | ||
117 | printk(KERN_INFO "Renesas Technology Corp. Urquell support.\n"); | ||
118 | |||
119 | pm_power_off = urquell_power_off; | ||
120 | } | ||
121 | |||
122 | /* | ||
123 | * The Machine Vector | ||
124 | */ | ||
125 | static struct sh_machine_vector mv_urquell __initmv = { | ||
126 | .mv_name = "Urquell", | ||
127 | .mv_setup = urquell_setup, | ||
128 | }; | ||
diff --git a/arch/sh/configs/urquell_defconfig b/arch/sh/configs/urquell_defconfig new file mode 100644 index 000000000000..94a4bdbd1bc0 --- /dev/null +++ b/arch/sh/configs/urquell_defconfig | |||
@@ -0,0 +1,534 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.29-rc4 | ||
4 | # Tue Mar 3 16:20:09 2009 | ||
5 | # | ||
6 | CONFIG_SUPERH=y | ||
7 | CONFIG_SUPERH32=y | ||
8 | CONFIG_ARCH_DEFCONFIG="arch/sh/configs/shx3_defconfig" | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
10 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
11 | CONFIG_GENERIC_HWEIGHT=y | ||
12 | CONFIG_GENERIC_HARDIRQS=y | ||
13 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
14 | CONFIG_GENERIC_IRQ_PROBE=y | ||
15 | CONFIG_GENERIC_GPIO=y | ||
16 | CONFIG_GENERIC_TIME=y | ||
17 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
18 | # CONFIG_ARCH_SUSPEND_POSSIBLE is not set | ||
19 | # CONFIG_ARCH_HIBERNATION_POSSIBLE is not set | ||
20 | CONFIG_SYS_SUPPORTS_NUMA=y | ||
21 | CONFIG_STACKTRACE_SUPPORT=y | ||
22 | CONFIG_LOCKDEP_SUPPORT=y | ||
23 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
24 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
25 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
26 | CONFIG_ARCH_NO_VIRT_TO_BUS=y | ||
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
28 | |||
29 | # | ||
30 | # General setup | ||
31 | # | ||
32 | # CONFIG_EXPERIMENTAL is not set | ||
33 | CONFIG_BROKEN_ON_SMP=y | ||
34 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
35 | CONFIG_LOCALVERSION="" | ||
36 | # CONFIG_LOCALVERSION_AUTO is not set | ||
37 | # CONFIG_SYSVIPC is not set | ||
38 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
39 | |||
40 | # | ||
41 | # RCU Subsystem | ||
42 | # | ||
43 | CONFIG_CLASSIC_RCU=y | ||
44 | # CONFIG_TREE_RCU is not set | ||
45 | # CONFIG_PREEMPT_RCU is not set | ||
46 | # CONFIG_TREE_RCU_TRACE is not set | ||
47 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
48 | # CONFIG_IKCONFIG is not set | ||
49 | CONFIG_LOG_BUF_SHIFT=17 | ||
50 | # CONFIG_CGROUPS is not set | ||
51 | # CONFIG_RELAY is not set | ||
52 | # CONFIG_NAMESPACES is not set | ||
53 | # CONFIG_BLK_DEV_INITRD is not set | ||
54 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
55 | CONFIG_EMBEDDED=y | ||
56 | # CONFIG_UID16 is not set | ||
57 | # CONFIG_SYSCTL_SYSCALL is not set | ||
58 | # CONFIG_KALLSYMS is not set | ||
59 | # CONFIG_HOTPLUG is not set | ||
60 | # CONFIG_PRINTK is not set | ||
61 | # CONFIG_BUG is not set | ||
62 | # CONFIG_ELF_CORE is not set | ||
63 | # CONFIG_COMPAT_BRK is not set | ||
64 | # CONFIG_BASE_FULL is not set | ||
65 | # CONFIG_FUTEX is not set | ||
66 | # CONFIG_EPOLL is not set | ||
67 | # CONFIG_SIGNALFD is not set | ||
68 | # CONFIG_TIMERFD is not set | ||
69 | # CONFIG_EVENTFD is not set | ||
70 | CONFIG_SHMEM=y | ||
71 | # CONFIG_AIO is not set | ||
72 | # CONFIG_VM_EVENT_COUNTERS is not set | ||
73 | # CONFIG_SLAB is not set | ||
74 | CONFIG_SLUB=y | ||
75 | # CONFIG_SLOB is not set | ||
76 | # CONFIG_PROFILING is not set | ||
77 | CONFIG_HAVE_OPROFILE=y | ||
78 | CONFIG_HAVE_IOREMAP_PROT=y | ||
79 | CONFIG_HAVE_KPROBES=y | ||
80 | CONFIG_HAVE_KRETPROBES=y | ||
81 | CONFIG_HAVE_ARCH_TRACEHOOK=y | ||
82 | CONFIG_HAVE_CLK=y | ||
83 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
84 | CONFIG_BASE_SMALL=1 | ||
85 | # CONFIG_MODULES is not set | ||
86 | # CONFIG_BLOCK is not set | ||
87 | # CONFIG_FREEZER is not set | ||
88 | |||
89 | # | ||
90 | # System type | ||
91 | # | ||
92 | CONFIG_CPU_SH4=y | ||
93 | CONFIG_CPU_SH4A=y | ||
94 | CONFIG_CPU_SHX3=y | ||
95 | # CONFIG_CPU_SUBTYPE_SH7619 is not set | ||
96 | # CONFIG_CPU_SUBTYPE_SH7201 is not set | ||
97 | # CONFIG_CPU_SUBTYPE_SH7203 is not set | ||
98 | # CONFIG_CPU_SUBTYPE_SH7206 is not set | ||
99 | # CONFIG_CPU_SUBTYPE_SH7263 is not set | ||
100 | # CONFIG_CPU_SUBTYPE_MXG is not set | ||
101 | # CONFIG_CPU_SUBTYPE_SH7705 is not set | ||
102 | # CONFIG_CPU_SUBTYPE_SH7706 is not set | ||
103 | # CONFIG_CPU_SUBTYPE_SH7707 is not set | ||
104 | # CONFIG_CPU_SUBTYPE_SH7708 is not set | ||
105 | # CONFIG_CPU_SUBTYPE_SH7709 is not set | ||
106 | # CONFIG_CPU_SUBTYPE_SH7710 is not set | ||
107 | # CONFIG_CPU_SUBTYPE_SH7712 is not set | ||
108 | # CONFIG_CPU_SUBTYPE_SH7720 is not set | ||
109 | # CONFIG_CPU_SUBTYPE_SH7721 is not set | ||
110 | # CONFIG_CPU_SUBTYPE_SH7750 is not set | ||
111 | # CONFIG_CPU_SUBTYPE_SH7091 is not set | ||
112 | # CONFIG_CPU_SUBTYPE_SH7750R is not set | ||
113 | # CONFIG_CPU_SUBTYPE_SH7750S is not set | ||
114 | # CONFIG_CPU_SUBTYPE_SH7751 is not set | ||
115 | # CONFIG_CPU_SUBTYPE_SH7751R is not set | ||
116 | # CONFIG_CPU_SUBTYPE_SH7760 is not set | ||
117 | # CONFIG_CPU_SUBTYPE_SH4_202 is not set | ||
118 | # CONFIG_CPU_SUBTYPE_SH7723 is not set | ||
119 | # CONFIG_CPU_SUBTYPE_SH7763 is not set | ||
120 | # CONFIG_CPU_SUBTYPE_SH7770 is not set | ||
121 | # CONFIG_CPU_SUBTYPE_SH7780 is not set | ||
122 | # CONFIG_CPU_SUBTYPE_SH7785 is not set | ||
123 | CONFIG_CPU_SUBTYPE_SH7786=y | ||
124 | # CONFIG_CPU_SUBTYPE_SHX3 is not set | ||
125 | # CONFIG_CPU_SUBTYPE_SH7343 is not set | ||
126 | # CONFIG_CPU_SUBTYPE_SH7722 is not set | ||
127 | # CONFIG_CPU_SUBTYPE_SH7366 is not set | ||
128 | # CONFIG_CPU_SUBTYPE_SH5_101 is not set | ||
129 | # CONFIG_CPU_SUBTYPE_SH5_103 is not set | ||
130 | |||
131 | # | ||
132 | # Memory management options | ||
133 | # | ||
134 | CONFIG_QUICKLIST=y | ||
135 | CONFIG_MMU=y | ||
136 | CONFIG_PAGE_OFFSET=0x80000000 | ||
137 | CONFIG_MEMORY_START=0x08000000 | ||
138 | CONFIG_MEMORY_SIZE=0x04000000 | ||
139 | CONFIG_29BIT=y | ||
140 | CONFIG_VSYSCALL=y | ||
141 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
142 | CONFIG_ARCH_SPARSEMEM_ENABLE=y | ||
143 | CONFIG_ARCH_SPARSEMEM_DEFAULT=y | ||
144 | CONFIG_MAX_ACTIVE_REGIONS=1 | ||
145 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
146 | CONFIG_ARCH_SELECT_MEMORY_MODEL=y | ||
147 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | ||
148 | CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y | ||
149 | CONFIG_PAGE_SIZE_4KB=y | ||
150 | # CONFIG_PAGE_SIZE_8KB is not set | ||
151 | # CONFIG_PAGE_SIZE_16KB is not set | ||
152 | # CONFIG_PAGE_SIZE_64KB is not set | ||
153 | CONFIG_ENTRY_OFFSET=0x00001000 | ||
154 | CONFIG_SELECT_MEMORY_MODEL=y | ||
155 | # CONFIG_FLATMEM_MANUAL is not set | ||
156 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
157 | CONFIG_SPARSEMEM_MANUAL=y | ||
158 | CONFIG_SPARSEMEM=y | ||
159 | CONFIG_HAVE_MEMORY_PRESENT=y | ||
160 | CONFIG_SPARSEMEM_STATIC=y | ||
161 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
162 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
163 | CONFIG_MIGRATION=y | ||
164 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
165 | CONFIG_ZONE_DMA_FLAG=0 | ||
166 | CONFIG_NR_QUICK=2 | ||
167 | CONFIG_UNEVICTABLE_LRU=y | ||
168 | |||
169 | # | ||
170 | # Cache configuration | ||
171 | # | ||
172 | # CONFIG_SH_DIRECT_MAPPED is not set | ||
173 | CONFIG_CACHE_WRITEBACK=y | ||
174 | # CONFIG_CACHE_WRITETHROUGH is not set | ||
175 | # CONFIG_CACHE_OFF is not set | ||
176 | |||
177 | # | ||
178 | # Processor features | ||
179 | # | ||
180 | CONFIG_CPU_LITTLE_ENDIAN=y | ||
181 | # CONFIG_CPU_BIG_ENDIAN is not set | ||
182 | CONFIG_SH_FPU=y | ||
183 | # CONFIG_SH_STORE_QUEUES is not set | ||
184 | CONFIG_CPU_HAS_INTEVT=y | ||
185 | CONFIG_CPU_HAS_SR_RB=y | ||
186 | CONFIG_CPU_HAS_FPU=y | ||
187 | |||
188 | # | ||
189 | # Board support | ||
190 | # | ||
191 | CONFIG_SH_URQUELL=y | ||
192 | |||
193 | # | ||
194 | # Timer and clock configuration | ||
195 | # | ||
196 | CONFIG_SH_TMU=y | ||
197 | CONFIG_SH_TIMER_IRQ=16 | ||
198 | CONFIG_SH_PCLK_FREQ=31250000 | ||
199 | CONFIG_TICK_ONESHOT=y | ||
200 | CONFIG_NO_HZ=y | ||
201 | CONFIG_HIGH_RES_TIMERS=y | ||
202 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
203 | |||
204 | # | ||
205 | # CPU Frequency scaling | ||
206 | # | ||
207 | # CONFIG_CPU_FREQ is not set | ||
208 | |||
209 | # | ||
210 | # DMA support | ||
211 | # | ||
212 | # CONFIG_SH_DMA is not set | ||
213 | |||
214 | # | ||
215 | # Companion Chips | ||
216 | # | ||
217 | |||
218 | # | ||
219 | # Additional SuperH Device Drivers | ||
220 | # | ||
221 | CONFIG_HEARTBEAT=y | ||
222 | # CONFIG_PUSH_SWITCH is not set | ||
223 | |||
224 | # | ||
225 | # Kernel features | ||
226 | # | ||
227 | # CONFIG_HZ_100 is not set | ||
228 | CONFIG_HZ_250=y | ||
229 | # CONFIG_HZ_300 is not set | ||
230 | # CONFIG_HZ_1000 is not set | ||
231 | CONFIG_HZ=250 | ||
232 | CONFIG_SCHED_HRTICK=y | ||
233 | CONFIG_PREEMPT_NONE=y | ||
234 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
235 | # CONFIG_PREEMPT is not set | ||
236 | CONFIG_GUSA=y | ||
237 | |||
238 | # | ||
239 | # Boot options | ||
240 | # | ||
241 | CONFIG_ZERO_PAGE_OFFSET=0x00001000 | ||
242 | CONFIG_BOOT_LINK_OFFSET=0x00800000 | ||
243 | # CONFIG_CMDLINE_BOOL is not set | ||
244 | |||
245 | # | ||
246 | # Bus options | ||
247 | # | ||
248 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
249 | |||
250 | # | ||
251 | # Executable file formats | ||
252 | # | ||
253 | CONFIG_BINFMT_ELF=y | ||
254 | # CONFIG_HAVE_AOUT is not set | ||
255 | # CONFIG_BINFMT_MISC is not set | ||
256 | # CONFIG_NET is not set | ||
257 | |||
258 | # | ||
259 | # Device Drivers | ||
260 | # | ||
261 | |||
262 | # | ||
263 | # Generic Driver Options | ||
264 | # | ||
265 | CONFIG_STANDALONE=y | ||
266 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
267 | # CONFIG_SYS_HYPERVISOR is not set | ||
268 | CONFIG_MTD=y | ||
269 | # CONFIG_MTD_DEBUG is not set | ||
270 | # CONFIG_MTD_CONCAT is not set | ||
271 | # CONFIG_MTD_PARTITIONS is not set | ||
272 | |||
273 | # | ||
274 | # User Modules And Translation Layers | ||
275 | # | ||
276 | # CONFIG_MTD_CHAR is not set | ||
277 | # CONFIG_MTD_OOPS is not set | ||
278 | |||
279 | # | ||
280 | # RAM/ROM/Flash chip drivers | ||
281 | # | ||
282 | CONFIG_MTD_CFI=y | ||
283 | CONFIG_MTD_JEDECPROBE=y | ||
284 | CONFIG_MTD_GEN_PROBE=y | ||
285 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
286 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
287 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
288 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
289 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
290 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
291 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
292 | CONFIG_MTD_CFI_I1=y | ||
293 | CONFIG_MTD_CFI_I2=y | ||
294 | # CONFIG_MTD_CFI_I4 is not set | ||
295 | # CONFIG_MTD_CFI_I8 is not set | ||
296 | # CONFIG_MTD_CFI_INTELEXT is not set | ||
297 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
298 | # CONFIG_MTD_CFI_STAA is not set | ||
299 | CONFIG_MTD_CFI_UTIL=y | ||
300 | # CONFIG_MTD_RAM is not set | ||
301 | # CONFIG_MTD_ROM is not set | ||
302 | # CONFIG_MTD_ABSENT is not set | ||
303 | |||
304 | # | ||
305 | # Mapping drivers for chip access | ||
306 | # | ||
307 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
308 | CONFIG_MTD_PHYSMAP=y | ||
309 | # CONFIG_MTD_PHYSMAP_COMPAT is not set | ||
310 | # CONFIG_MTD_PLATRAM is not set | ||
311 | |||
312 | # | ||
313 | # Self-contained MTD device drivers | ||
314 | # | ||
315 | # CONFIG_MTD_SLRAM is not set | ||
316 | # CONFIG_MTD_PHRAM is not set | ||
317 | # CONFIG_MTD_MTDRAM is not set | ||
318 | |||
319 | # | ||
320 | # Disk-On-Chip Device Drivers | ||
321 | # | ||
322 | # CONFIG_MTD_DOC2000 is not set | ||
323 | # CONFIG_MTD_DOC2001 is not set | ||
324 | # CONFIG_MTD_DOC2001PLUS is not set | ||
325 | # CONFIG_MTD_NAND is not set | ||
326 | # CONFIG_MTD_ONENAND is not set | ||
327 | |||
328 | # | ||
329 | # LPDDR flash memory drivers | ||
330 | # | ||
331 | # CONFIG_MTD_LPDDR is not set | ||
332 | # CONFIG_MTD_QINFO_PROBE is not set | ||
333 | |||
334 | # | ||
335 | # UBI - Unsorted block images | ||
336 | # | ||
337 | # CONFIG_MTD_UBI is not set | ||
338 | # CONFIG_PARPORT is not set | ||
339 | # CONFIG_MISC_DEVICES is not set | ||
340 | CONFIG_HAVE_IDE=y | ||
341 | |||
342 | # | ||
343 | # SCSI device support | ||
344 | # | ||
345 | # CONFIG_SCSI_DMA is not set | ||
346 | # CONFIG_SCSI_NETLINK is not set | ||
347 | # CONFIG_PHONE is not set | ||
348 | |||
349 | # | ||
350 | # Input device support | ||
351 | # | ||
352 | # CONFIG_INPUT is not set | ||
353 | |||
354 | # | ||
355 | # Hardware I/O ports | ||
356 | # | ||
357 | # CONFIG_SERIO is not set | ||
358 | # CONFIG_GAMEPORT is not set | ||
359 | |||
360 | # | ||
361 | # Character devices | ||
362 | # | ||
363 | # CONFIG_VT is not set | ||
364 | # CONFIG_DEVKMEM is not set | ||
365 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
366 | |||
367 | # | ||
368 | # Serial drivers | ||
369 | # | ||
370 | # CONFIG_SERIAL_8250 is not set | ||
371 | |||
372 | # | ||
373 | # Non-8250 serial port support | ||
374 | # | ||
375 | CONFIG_SERIAL_SH_SCI=y | ||
376 | CONFIG_SERIAL_SH_SCI_NR_UARTS=6 | ||
377 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
378 | CONFIG_SERIAL_CORE=y | ||
379 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
380 | # CONFIG_UNIX98_PTYS is not set | ||
381 | # CONFIG_LEGACY_PTYS is not set | ||
382 | # CONFIG_IPMI_HANDLER is not set | ||
383 | # CONFIG_HW_RANDOM is not set | ||
384 | # CONFIG_R3964 is not set | ||
385 | # CONFIG_I2C is not set | ||
386 | # CONFIG_SPI is not set | ||
387 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
388 | CONFIG_GPIOLIB=y | ||
389 | |||
390 | # | ||
391 | # Memory mapped GPIO expanders: | ||
392 | # | ||
393 | |||
394 | # | ||
395 | # I2C GPIO expanders: | ||
396 | # | ||
397 | |||
398 | # | ||
399 | # PCI GPIO expanders: | ||
400 | # | ||
401 | |||
402 | # | ||
403 | # SPI GPIO expanders: | ||
404 | # | ||
405 | # CONFIG_W1 is not set | ||
406 | # CONFIG_POWER_SUPPLY is not set | ||
407 | # CONFIG_HWMON is not set | ||
408 | # CONFIG_THERMAL is not set | ||
409 | # CONFIG_THERMAL_HWMON is not set | ||
410 | # CONFIG_WATCHDOG is not set | ||
411 | CONFIG_SSB_POSSIBLE=y | ||
412 | |||
413 | # | ||
414 | # Sonics Silicon Backplane | ||
415 | # | ||
416 | # CONFIG_SSB is not set | ||
417 | |||
418 | # | ||
419 | # Multifunction device drivers | ||
420 | # | ||
421 | # CONFIG_MFD_CORE is not set | ||
422 | # CONFIG_MFD_SM501 is not set | ||
423 | # CONFIG_HTC_PASIC3 is not set | ||
424 | # CONFIG_MFD_TMIO is not set | ||
425 | # CONFIG_REGULATOR is not set | ||
426 | |||
427 | # | ||
428 | # Multimedia devices | ||
429 | # | ||
430 | |||
431 | # | ||
432 | # Multimedia core support | ||
433 | # | ||
434 | # CONFIG_VIDEO_DEV is not set | ||
435 | # CONFIG_VIDEO_MEDIA is not set | ||
436 | |||
437 | # | ||
438 | # Multimedia drivers | ||
439 | # | ||
440 | # CONFIG_DAB is not set | ||
441 | |||
442 | # | ||
443 | # Graphics support | ||
444 | # | ||
445 | # CONFIG_VGASTATE is not set | ||
446 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
447 | # CONFIG_FB is not set | ||
448 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
449 | |||
450 | # | ||
451 | # Display device support | ||
452 | # | ||
453 | # CONFIG_DISPLAY_SUPPORT is not set | ||
454 | # CONFIG_SOUND is not set | ||
455 | # CONFIG_USB_SUPPORT is not set | ||
456 | # CONFIG_MMC is not set | ||
457 | # CONFIG_MEMSTICK is not set | ||
458 | # CONFIG_NEW_LEDS is not set | ||
459 | # CONFIG_ACCESSIBILITY is not set | ||
460 | # CONFIG_RTC_CLASS is not set | ||
461 | # CONFIG_DMADEVICES is not set | ||
462 | # CONFIG_UIO is not set | ||
463 | # CONFIG_STAGING is not set | ||
464 | |||
465 | # | ||
466 | # File systems | ||
467 | # | ||
468 | # CONFIG_DNOTIFY is not set | ||
469 | # CONFIG_INOTIFY is not set | ||
470 | # CONFIG_QUOTA is not set | ||
471 | # CONFIG_AUTOFS_FS is not set | ||
472 | # CONFIG_AUTOFS4_FS is not set | ||
473 | # CONFIG_FUSE_FS is not set | ||
474 | |||
475 | # | ||
476 | # Pseudo filesystems | ||
477 | # | ||
478 | # CONFIG_PROC_FS is not set | ||
479 | # CONFIG_SYSFS is not set | ||
480 | # CONFIG_TMPFS is not set | ||
481 | # CONFIG_HUGETLBFS is not set | ||
482 | # CONFIG_HUGETLB_PAGE is not set | ||
483 | # CONFIG_MISC_FILESYSTEMS is not set | ||
484 | # CONFIG_NLS is not set | ||
485 | |||
486 | # | ||
487 | # Kernel hacking | ||
488 | # | ||
489 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
490 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | ||
491 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
492 | CONFIG_FRAME_WARN=1024 | ||
493 | # CONFIG_MAGIC_SYSRQ is not set | ||
494 | # CONFIG_UNUSED_SYMBOLS is not set | ||
495 | # CONFIG_HEADERS_CHECK is not set | ||
496 | # CONFIG_DEBUG_KERNEL is not set | ||
497 | # CONFIG_DEBUG_MEMORY_INIT is not set | ||
498 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
499 | # CONFIG_LATENCYTOP is not set | ||
500 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
501 | CONFIG_HAVE_DYNAMIC_FTRACE=y | ||
502 | CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y | ||
503 | |||
504 | # | ||
505 | # Tracers | ||
506 | # | ||
507 | # CONFIG_SAMPLES is not set | ||
508 | CONFIG_HAVE_ARCH_KGDB=y | ||
509 | # CONFIG_SH_STANDARD_BIOS is not set | ||
510 | # CONFIG_EARLY_SCIF_CONSOLE is not set | ||
511 | # CONFIG_MORE_COMPILE_OPTIONS is not set | ||
512 | |||
513 | # | ||
514 | # Security options | ||
515 | # | ||
516 | # CONFIG_KEYS is not set | ||
517 | # CONFIG_SECURITYFS is not set | ||
518 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
519 | # CONFIG_CRYPTO is not set | ||
520 | |||
521 | # | ||
522 | # Library routines | ||
523 | # | ||
524 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
525 | # CONFIG_CRC_CCITT is not set | ||
526 | # CONFIG_CRC16 is not set | ||
527 | # CONFIG_CRC_T10DIF is not set | ||
528 | # CONFIG_CRC_ITU_T is not set | ||
529 | # CONFIG_CRC32 is not set | ||
530 | # CONFIG_CRC7 is not set | ||
531 | # CONFIG_LIBCRC32C is not set | ||
532 | CONFIG_HAS_IOMEM=y | ||
533 | CONFIG_HAS_IOPORT=y | ||
534 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/sh/include/mach-common/mach/urquell.h b/arch/sh/include/mach-common/mach/urquell.h new file mode 100644 index 000000000000..14b3e1d01777 --- /dev/null +++ b/arch/sh/include/mach-common/mach/urquell.h | |||
@@ -0,0 +1,68 @@ | |||
1 | #ifndef __MACH_URQUELL_H | ||
2 | #define __MACH_URQUELL_H | ||
3 | |||
4 | /* | ||
5 | * ------ 0x00000000 ------------------------------------ | ||
6 | * CS0 | (SW1,SW47) EEPROM, SRAM, NOR FLASH | ||
7 | * -----+ 0x04000000 ------------------------------------ | ||
8 | * CS1 | (SW47) SRAM, SRAM-LAN-PCMCIA, NOR FLASH | ||
9 | * -----+ 0x08000000 ------------------------------------ | ||
10 | * CS2 | DDR3 | ||
11 | * CS3 | | ||
12 | * -----+ 0x10000000 ------------------------------------ | ||
13 | * CS4 | PCIe | ||
14 | * -----+ 0x14000000 ------------------------------------ | ||
15 | * CS5 | (SW47) LRAM/URAM, SRAM-LAN-PCMCIA | ||
16 | * -----+ 0x18000000 ------------------------------------ | ||
17 | * CS6 | ATA, NAND FLASH | ||
18 | * -----+ 0x1c000000 ------------------------------------ | ||
19 | * CS7 | SH7786 register | ||
20 | * -----+------------------------------------------------ | ||
21 | */ | ||
22 | |||
23 | #define NOR_FLASH_ADDR 0x00000000 | ||
24 | #define NOR_FLASH_SIZE 0x04000000 | ||
25 | |||
26 | #define CS1_BASE 0x05000000 | ||
27 | #define CS5_BASE 0x15000000 | ||
28 | #define FPGA_BASE CS1_BASE | ||
29 | |||
30 | #define BOARDREG(ofs) (FPGA_BASE + ofs##_OFS) | ||
31 | #define UBOARDREG(ofs) (0xa0000000 + FPGA_BASE + ofs##_OFS) | ||
32 | |||
33 | #define SRSTR_OFS 0x0000 /* System reset register */ | ||
34 | #define BDMR_OFS 0x0010 /* Board operating mode resister */ | ||
35 | #define IRL0SR_OFS 0x0020 /* IRL0 Status register */ | ||
36 | #define IRL0MSKR_OFS 0x0030 /* IRL0 Mask register */ | ||
37 | #define IRL1SR_OFS 0x0040 /* IRL1 Status register */ | ||
38 | #define IRL1MSKR_OFS 0x0050 /* IRL1 Mask register */ | ||
39 | #define IRL2SR_OFS 0x0060 /* IRL2 Status register */ | ||
40 | #define IRL2MSKR_OFS 0x0070 /* IRL2 Mask register */ | ||
41 | #define IRL3SR_OFS 0x0080 /* IRL3 Status register */ | ||
42 | #define IRL3MSKR_OFS 0x0090 /* IRL3 Mask register */ | ||
43 | #define SOFTINTR_OFS 0x0120 /* Softwear Interrupt register */ | ||
44 | #define SLEDR_OFS 0x0130 /* LED control resister */ | ||
45 | #define MAPSCIFSWR_OFS 0x0140 /* Map/SCIF Switch register */ | ||
46 | #define FPVERR_OFS 0x0150 /* FPGA Version register */ | ||
47 | #define FPDATER_OFS 0x0160 /* FPGA Date register */ | ||
48 | #define FPYEARR_OFS 0x0170 /* FPGA Year register */ | ||
49 | #define TCLKCR_OFS 0x0180 /* TCLK Control register */ | ||
50 | #define DIPSWMR_OFS 0x1000 /* DIPSW monitor register */ | ||
51 | #define FPODR_OFS 0x1010 /* Output port data register */ | ||
52 | #define ATACNR_OFS 0x1020 /* ATA-CN Control/status register */ | ||
53 | #define FPINDR_OFS 0x1030 /* Input port data register */ | ||
54 | #define MDSWMR_OFS 0x1040 /* MODE SW monitor register */ | ||
55 | #define DDR3BUPCR_OFS 0x1050 /* DDR3 Backup control register */ | ||
56 | #define SSICODECCR_OFS 0x1060 /* SSI-CODEC control register */ | ||
57 | #define PCIESLOTSR_OFS 0x1070 /* PCIexpress Slot status register */ | ||
58 | #define ETHERPORTSR_OFS 0x1080 /* EtherPhy Port status register */ | ||
59 | #define LATCHCR_OFS 0x3000 /* Latch control register */ | ||
60 | #define LATCUAR_OFS 0x3010 /* Latch upper address register */ | ||
61 | #define LATCLAR_OFS 0x3012 /* Latch lower address register */ | ||
62 | #define LATCLUDR_OFS 0x3024 /* Latch D31-16 register */ | ||
63 | #define LATCLLDR_OFS 0x3026 /* Latch D15-0 register */ | ||
64 | |||
65 | #define CHARLED_OFS 0x2000 /* Character LED */ | ||
66 | |||
67 | #endif /* __MACH_URQUELL_H */ | ||
68 | |||
diff --git a/arch/sh/tools/mach-types b/arch/sh/tools/mach-types index 284b7e867496..8f9e1662fa9c 100644 --- a/arch/sh/tools/mach-types +++ b/arch/sh/tools/mach-types | |||
@@ -52,3 +52,4 @@ RSK7203 SH_RSK7203 | |||
52 | AP325RXA SH_AP325RXA | 52 | AP325RXA SH_AP325RXA |
53 | SH7763RDP SH_SH7763RDP | 53 | SH7763RDP SH_SH7763RDP |
54 | SH7785LCR SH_SH7785LCR | 54 | SH7785LCR SH_SH7785LCR |
55 | URQUELL SH_URQUELL | ||