Skip to content

Commit d584e20

Browse files
Phil Edworthypmundt
authored andcommitted
sh: Add RSK2+SH7264 board
The RSK2+SH7264 board uses the sh7264 processor. It is often referred to as just rsk7264. 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>
1 parent 51ce306 commit d584e20

6 files changed

Lines changed: 145 additions & 1 deletion

File tree

‎arch/sh/boards/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ config SH_RTS7751R2D
133133

134134
config SH_RSK
135135
bool "Renesas Starter Kit"
136-
depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203
136+
depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7264
137137
help
138138
Select this option if configuring for any of the RSK+ MCU
139139
evaluation platforms.

‎arch/sh/boards/mach-rsk/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ config SH_RSK7203
1313
select ARCH_REQUIRE_GPIOLIB
1414
depends on CPU_SUBTYPE_SH7203
1515

16+
config SH_RSK7264
17+
bool "RSK2+SH7264"
18+
depends on CPU_SUBTYPE_SH7264
19+
1620
endchoice
1721

1822
endif

‎arch/sh/boards/mach-rsk/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
obj-y := setup.o
22
obj-$(CONFIG_SH_RSK7203) += devices-rsk7203.o
3+
obj-$(CONFIG_SH_RSK7264) += devices-rsk7264.o
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* RSK+SH7264 Support.
3+
*
4+
* Copyright (C) 2012 Renesas Electronics Europe
5+
*
6+
* This file is subject to the terms and conditions of the GNU General Public
7+
* License. See the file "COPYING" in the main directory of this archive
8+
* for more details.
9+
*/
10+
#include <linux/init.h>
11+
#include <linux/types.h>
12+
#include <linux/platform_device.h>
13+
#include <linux/interrupt.h>
14+
#include <linux/input.h>
15+
#include <linux/smsc911x.h>
16+
#include <asm/machvec.h>
17+
#include <asm/io.h>
18+
19+
static struct smsc911x_platform_config smsc911x_config = {
20+
.phy_interface = PHY_INTERFACE_MODE_MII,
21+
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
22+
.irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
23+
.flags = SMSC911X_USE_16BIT | SMSC911X_SWAP_FIFO,
24+
};
25+
26+
static struct resource smsc911x_resources[] = {
27+
[0] = {
28+
.start = 0x28000000,
29+
.end = 0x280000ff,
30+
.flags = IORESOURCE_MEM,
31+
},
32+
[1] = {
33+
.start = 65,
34+
.end = 65,
35+
.flags = IORESOURCE_IRQ,
36+
},
37+
};
38+
39+
static struct platform_device smsc911x_device = {
40+
.name = "smsc911x",
41+
.id = -1,
42+
.num_resources = ARRAY_SIZE(smsc911x_resources),
43+
.resource = smsc911x_resources,
44+
.dev = {
45+
.platform_data = &smsc911x_config,
46+
},
47+
};
48+
49+
static struct platform_device *rsk7264_devices[] __initdata = {
50+
&smsc911x_device,
51+
};
52+
53+
static int __init rsk7264_devices_setup(void)
54+
{
55+
return platform_add_devices(rsk7264_devices,
56+
ARRAY_SIZE(rsk7264_devices));
57+
}
58+
device_initcall(rsk7264_devices_setup);

‎arch/sh/configs/rsk7264_defconfig‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
CONFIG_LOCALVERSION="uClinux RSK2+SH7264"
2+
# CONFIG_LOCALVERSION_AUTO is not set
3+
CONFIG_SYSVIPC=y
4+
CONFIG_BSD_PROCESS_ACCT=y
5+
CONFIG_IKCONFIG=y
6+
CONFIG_LOG_BUF_SHIFT=14
7+
CONFIG_NAMESPACES=y
8+
CONFIG_SYSFS_DEPRECATED=y
9+
CONFIG_SYSFS_DEPRECATED_V2=y
10+
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
11+
CONFIG_SYSCTL_SYSCALL=y
12+
CONFIG_KALLSYMS_ALL=y
13+
CONFIG_EMBEDDED=y
14+
CONFIG_PERF_COUNTERS=y
15+
# CONFIG_VM_EVENT_COUNTERS is not set
16+
CONFIG_SLAB=y
17+
CONFIG_MMAP_ALLOW_UNINITIALIZED=y
18+
CONFIG_PROFILING=y
19+
# CONFIG_LBDAF is not set
20+
# CONFIG_BLK_DEV_BSG is not set
21+
CONFIG_PARTITION_ADVANCED=y
22+
# CONFIG_IOSCHED_DEADLINE is not set
23+
# CONFIG_IOSCHED_CFQ is not set
24+
CONFIG_CPU_SUBTYPE_SH7264=y
25+
CONFIG_MEMORY_START=0x0c000000
26+
CONFIG_FLATMEM_MANUAL=y
27+
CONFIG_CPU_BIG_ENDIAN=y
28+
CONFIG_SH_RSK=y
29+
# CONFIG_SH_TIMER_MTU2 is not set
30+
CONFIG_BINFMT_FLAT=y
31+
CONFIG_NET=y
32+
CONFIG_INET=y
33+
CONFIG_IP_PNP=y
34+
CONFIG_IP_PNP_DHCP=y
35+
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
36+
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
37+
# CONFIG_INET_XFRM_MODE_BEET is not set
38+
# CONFIG_INET_LRO is not set
39+
# CONFIG_INET_DIAG is not set
40+
# CONFIG_IPV6 is not set
41+
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
42+
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
43+
# CONFIG_FW_LOADER is not set
44+
CONFIG_BLK_DEV_LOOP=y
45+
CONFIG_BLK_DEV_RAM=y
46+
CONFIG_BLK_DEV_RAM_COUNT=4
47+
CONFIG_SCSI=y
48+
CONFIG_BLK_DEV_SD=y
49+
CONFIG_NETDEVICES=y
50+
CONFIG_SMSC911X=y
51+
CONFIG_SMSC_PHY=y
52+
CONFIG_INPUT_FF_MEMLESS=y
53+
# CONFIG_INPUT_MOUSEDEV is not set
54+
# CONFIG_INPUT_KEYBOARD is not set
55+
# CONFIG_INPUT_MOUSE is not set
56+
# CONFIG_SERIO is not set
57+
CONFIG_VT_HW_CONSOLE_BINDING=y
58+
CONFIG_SERIAL_SH_SCI=y
59+
CONFIG_SERIAL_SH_SCI_NR_UARTS=8
60+
CONFIG_SERIAL_SH_SCI_CONSOLE=y
61+
# CONFIG_HWMON is not set
62+
CONFIG_USB=y
63+
CONFIG_USB_DEBUG=y
64+
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
65+
# CONFIG_USB_DEVICE_CLASS is not set
66+
CONFIG_USB_R8A66597_HCD=y
67+
CONFIG_USB_STORAGE=y
68+
CONFIG_USB_STORAGE_DEBUG=y
69+
CONFIG_USB_LIBUSUAL=y
70+
CONFIG_EXT2_FS=y
71+
CONFIG_EXT3_FS=y
72+
# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
73+
CONFIG_VFAT_FS=y
74+
CONFIG_NFS_FS=y
75+
CONFIG_NFS_V3=y
76+
CONFIG_ROOT_NFS=y
77+
CONFIG_NLS_CODEPAGE_437=y
78+
CONFIG_NLS_ISO8859_1=y
79+
# CONFIG_ENABLE_MUST_CHECK is not set
80+
# CONFIG_FTRACE is not set

‎arch/sh/tools/mach-types‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ SDK7780 SH_SDK7780
5151
MIGOR SH_MIGOR
5252
RSK7201 SH_RSK7201
5353
RSK7203 SH_RSK7203
54+
RSK7264 SH_RSK7264
5455
AP325RXA SH_AP325RXA
5556
SH2007 SH_SH2007
5657
SH7757LCR SH_SH7757LCR

0 commit comments

Comments
 (0)