diff options
author | Phil Edworthy <phil.edworthy@renesas.com> | 2012-05-10 04:26:53 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-10 04:20:01 -0400 |
commit | b6397435ec676271bd7fa1de9e62633718a754c1 (patch) | |
tree | 85eda93d621e4b2edf2b79891c43fe94e3b3af99 /arch/sh | |
parent | 0b25b7c8cba83fa8c02fbf38eb905996f2455dd0 (diff) |
sh: Add RSK2+SH7269 board
The RSK2+SH7269 board uses the SH7269 processor. It is often
referred to as just rsk7269. NOR Flash, SDRAM, serial, USB Host and
ethernet are working.
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/Kconfig | 3 | ||||
-rw-r--r-- | arch/sh/boards/mach-rsk/Kconfig | 5 | ||||
-rw-r--r-- | arch/sh/boards/mach-rsk/Makefile | 1 | ||||
-rw-r--r-- | arch/sh/boards/mach-rsk/devices-rsk7269.c | 60 | ||||
-rw-r--r-- | arch/sh/configs/rsk7269_defconfig | 65 | ||||
-rw-r--r-- | arch/sh/tools/mach-types | 1 |
6 files changed, 134 insertions, 1 deletions
diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index ee92f429ca27..7ee04984b8f2 100644 --- a/arch/sh/boards/Kconfig +++ b/arch/sh/boards/Kconfig | |||
@@ -133,7 +133,8 @@ config SH_RTS7751R2D | |||
133 | 133 | ||
134 | config SH_RSK | 134 | config SH_RSK |
135 | bool "Renesas Starter Kit" | 135 | bool "Renesas Starter Kit" |
136 | depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7264 | 136 | depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \ |
137 | CPU_SUBTYPE_SH7264 || CPU_SUBTYPE_SH7269 | ||
137 | help | 138 | help |
138 | Select this option if configuring for any of the RSK+ MCU | 139 | Select this option if configuring for any of the RSK+ MCU |
139 | evaluation platforms. | 140 | evaluation platforms. |
diff --git a/arch/sh/boards/mach-rsk/Kconfig b/arch/sh/boards/mach-rsk/Kconfig index 4315af511649..458a11ffd022 100644 --- a/arch/sh/boards/mach-rsk/Kconfig +++ b/arch/sh/boards/mach-rsk/Kconfig | |||
@@ -18,6 +18,11 @@ config SH_RSK7264 | |||
18 | select ARCH_REQUIRE_GPIOLIB | 18 | select ARCH_REQUIRE_GPIOLIB |
19 | depends on CPU_SUBTYPE_SH7264 | 19 | depends on CPU_SUBTYPE_SH7264 |
20 | 20 | ||
21 | config SH_RSK7269 | ||
22 | bool "RSK2+SH7269" | ||
23 | select ARCH_REQUIRE_GPIOLIB | ||
24 | depends on CPU_SUBTYPE_SH7269 | ||
25 | |||
21 | endchoice | 26 | endchoice |
22 | 27 | ||
23 | endif | 28 | endif |
diff --git a/arch/sh/boards/mach-rsk/Makefile b/arch/sh/boards/mach-rsk/Makefile index bae6ae45aba8..6a4e1b538a62 100644 --- a/arch/sh/boards/mach-rsk/Makefile +++ b/arch/sh/boards/mach-rsk/Makefile | |||
@@ -1,3 +1,4 @@ | |||
1 | obj-y := setup.o | 1 | obj-y := setup.o |
2 | obj-$(CONFIG_SH_RSK7203) += devices-rsk7203.o | 2 | obj-$(CONFIG_SH_RSK7203) += devices-rsk7203.o |
3 | obj-$(CONFIG_SH_RSK7264) += devices-rsk7264.o | 3 | obj-$(CONFIG_SH_RSK7264) += devices-rsk7264.o |
4 | obj-$(CONFIG_SH_RSK7269) += devices-rsk7269.o | ||
diff --git a/arch/sh/boards/mach-rsk/devices-rsk7269.c b/arch/sh/boards/mach-rsk/devices-rsk7269.c new file mode 100644 index 000000000000..4a544591d6f0 --- /dev/null +++ b/arch/sh/boards/mach-rsk/devices-rsk7269.c | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * RSK+SH7269 Support | ||
3 | * | ||
4 | * Copyright (C) 2012 Renesas Electronics Europe Ltd | ||
5 | * Copyright (C) 2012 Phil Edworthy | ||
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/types.h> | ||
13 | #include <linux/platform_device.h> | ||
14 | #include <linux/interrupt.h> | ||
15 | #include <linux/input.h> | ||
16 | #include <linux/smsc911x.h> | ||
17 | #include <linux/gpio.h> | ||
18 | #include <asm/machvec.h> | ||
19 | #include <asm/io.h> | ||
20 | |||
21 | static struct smsc911x_platform_config smsc911x_config = { | ||
22 | .phy_interface = PHY_INTERFACE_MODE_MII, | ||
23 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | ||
24 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | ||
25 | .flags = SMSC911X_USE_16BIT | SMSC911X_SWAP_FIFO, | ||
26 | }; | ||
27 | |||
28 | static struct resource smsc911x_resources[] = { | ||
29 | [0] = { | ||
30 | .start = 0x24000000, | ||
31 | .end = 0x240000ff, | ||
32 | .flags = IORESOURCE_MEM, | ||
33 | }, | ||
34 | [1] = { | ||
35 | .start = 85, | ||
36 | .end = 85, | ||
37 | .flags = IORESOURCE_IRQ, | ||
38 | }, | ||
39 | }; | ||
40 | |||
41 | static struct platform_device smsc911x_device = { | ||
42 | .name = "smsc911x", | ||
43 | .id = -1, | ||
44 | .num_resources = ARRAY_SIZE(smsc911x_resources), | ||
45 | .resource = smsc911x_resources, | ||
46 | .dev = { | ||
47 | .platform_data = &smsc911x_config, | ||
48 | }, | ||
49 | }; | ||
50 | |||
51 | static struct platform_device *rsk7269_devices[] __initdata = { | ||
52 | &smsc911x_device, | ||
53 | }; | ||
54 | |||
55 | static int __init rsk7269_devices_setup(void) | ||
56 | { | ||
57 | return platform_add_devices(rsk7269_devices, | ||
58 | ARRAY_SIZE(rsk7269_devices)); | ||
59 | } | ||
60 | device_initcall(rsk7269_devices_setup); | ||
diff --git a/arch/sh/configs/rsk7269_defconfig b/arch/sh/configs/rsk7269_defconfig new file mode 100644 index 000000000000..9f062b5837d7 --- /dev/null +++ b/arch/sh/configs/rsk7269_defconfig | |||
@@ -0,0 +1,65 @@ | |||
1 | CONFIG_LOG_BUF_SHIFT=14 | ||
2 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
3 | CONFIG_EMBEDDED=y | ||
4 | # CONFIG_VM_EVENT_COUNTERS is not set | ||
5 | CONFIG_SLAB=y | ||
6 | # CONFIG_LBDAF is not set | ||
7 | # CONFIG_BLK_DEV_BSG is not set | ||
8 | # CONFIG_IOSCHED_DEADLINE is not set | ||
9 | # CONFIG_IOSCHED_CFQ is not set | ||
10 | CONFIG_SWAP_IO_SPACE=y | ||
11 | CONFIG_CPU_SUBTYPE_SH7269=y | ||
12 | CONFIG_MEMORY_START=0x0c000000 | ||
13 | CONFIG_MEMORY_SIZE=0x02000000 | ||
14 | CONFIG_FLATMEM_MANUAL=y | ||
15 | CONFIG_CPU_BIG_ENDIAN=y | ||
16 | CONFIG_SH_RSK=y | ||
17 | # CONFIG_SH_TIMER_MTU2 is not set | ||
18 | CONFIG_SH_PCLK_FREQ=66700000 | ||
19 | CONFIG_BINFMT_FLAT=y | ||
20 | CONFIG_NET=y | ||
21 | CONFIG_INET=y | ||
22 | CONFIG_IP_PNP=y | ||
23 | CONFIG_IP_PNP_DHCP=y | ||
24 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
25 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
26 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
27 | # CONFIG_INET_LRO is not set | ||
28 | # CONFIG_INET_DIAG is not set | ||
29 | # CONFIG_IPV6 is not set | ||
30 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
31 | # CONFIG_FW_LOADER is not set | ||
32 | CONFIG_SCSI=y | ||
33 | CONFIG_BLK_DEV_SD=y | ||
34 | CONFIG_NETDEVICES=y | ||
35 | CONFIG_SMSC911X=y | ||
36 | CONFIG_SMSC_PHY=y | ||
37 | # CONFIG_INPUT_MOUSEDEV is not set | ||
38 | # CONFIG_INPUT_KEYBOARD is not set | ||
39 | # CONFIG_INPUT_MOUSE is not set | ||
40 | # CONFIG_SERIO is not set | ||
41 | CONFIG_SERIAL_SH_SCI=y | ||
42 | CONFIG_SERIAL_SH_SCI_NR_UARTS=8 | ||
43 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
44 | # CONFIG_HWMON is not set | ||
45 | CONFIG_USB=y | ||
46 | CONFIG_USB_DEBUG=y | ||
47 | CONFIG_USB_ANNOUNCE_NEW_DEVICES=y | ||
48 | # CONFIG_USB_DEVICE_CLASS is not set | ||
49 | CONFIG_USB_R8A66597_HCD=y | ||
50 | CONFIG_USB_STORAGE=y | ||
51 | CONFIG_USB_STORAGE_DEBUG=y | ||
52 | CONFIG_USB_LIBUSUAL=y | ||
53 | CONFIG_EXT2_FS=y | ||
54 | CONFIG_EXT3_FS=y | ||
55 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
56 | CONFIG_VFAT_FS=y | ||
57 | CONFIG_NFS_FS=y | ||
58 | CONFIG_NFS_V3=y | ||
59 | CONFIG_ROOT_NFS=y | ||
60 | CONFIG_PARTITION_ADVANCED=y | ||
61 | CONFIG_NLS_CODEPAGE_437=y | ||
62 | CONFIG_NLS_ISO8859_1=y | ||
63 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
64 | CONFIG_SYSCTL_SYSCALL_CHECK=y | ||
65 | # CONFIG_FTRACE is not set | ||
diff --git a/arch/sh/tools/mach-types b/arch/sh/tools/mach-types index d007c81acfad..569977e52c91 100644 --- a/arch/sh/tools/mach-types +++ b/arch/sh/tools/mach-types | |||
@@ -52,6 +52,7 @@ MIGOR SH_MIGOR | |||
52 | RSK7201 SH_RSK7201 | 52 | RSK7201 SH_RSK7201 |
53 | RSK7203 SH_RSK7203 | 53 | RSK7203 SH_RSK7203 |
54 | RSK7264 SH_RSK7264 | 54 | RSK7264 SH_RSK7264 |
55 | RSK7269 SH_RSK7269 | ||
55 | AP325RXA SH_AP325RXA | 56 | AP325RXA SH_AP325RXA |
56 | SH2007 SH_SH2007 | 57 | SH2007 SH_SH2007 |
57 | SH7757LCR SH_SH7757LCR | 58 | SH7757LCR SH_SH7757LCR |