sh: Add RSK2+SH7269 board
authorPhil Edworthy <phil.edworthy@renesas.com>
Thu, 10 May 2012 08:26:53 +0000 (09:26 +0100)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 10 May 2012 08:20:01 +0000 (17:20 +0900)
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>
arch/sh/boards/Kconfig
arch/sh/boards/mach-rsk/Kconfig
arch/sh/boards/mach-rsk/Makefile
arch/sh/boards/mach-rsk/devices-rsk7269.c [new file with mode: 0644]
arch/sh/configs/rsk7269_defconfig [new file with mode: 0644]
arch/sh/tools/mach-types

index ee92f429ca27c1029f25f9aec0c718e29619d7b1..7ee04984b8f2a4248245532e943ef3d147819748 100644 (file)
@@ -133,7 +133,8 @@ config SH_RTS7751R2D
 
 config SH_RSK
        bool "Renesas Starter Kit"
-       depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || CPU_SUBTYPE_SH7264
+       depends on CPU_SUBTYPE_SH7201 || CPU_SUBTYPE_SH7203 || \
+         CPU_SUBTYPE_SH7264 || CPU_SUBTYPE_SH7269
        help
         Select this option if configuring for any of the RSK+ MCU
         evaluation platforms.
index 4315af5116490975096c67dc195be357767c6479..458a11ffd022106d3cdd2f8a233f98426702e06d 100644 (file)
@@ -18,6 +18,11 @@ config SH_RSK7264
        select ARCH_REQUIRE_GPIOLIB
        depends on CPU_SUBTYPE_SH7264
 
+config SH_RSK7269
+       bool "RSK2+SH7269"
+       select ARCH_REQUIRE_GPIOLIB
+       depends on CPU_SUBTYPE_SH7269
+
 endchoice
 
 endif
index bae6ae45aba8aa01c503fb96d8abd1eeeadd94bc..6a4e1b538a6201417a6c481de1a6dcb817535054 100644 (file)
@@ -1,3 +1,4 @@
 obj-y                          := setup.o
 obj-$(CONFIG_SH_RSK7203)       += devices-rsk7203.o
 obj-$(CONFIG_SH_RSK7264)       += devices-rsk7264.o
+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 (file)
index 0000000..4a54459
--- /dev/null
@@ -0,0 +1,60 @@
+/*
+ * RSK+SH7269 Support
+ *
+ * Copyright (C) 2012  Renesas Electronics Europe Ltd
+ * Copyright (C) 2012  Phil Edworthy
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ */
+#include <linux/init.h>
+#include <linux/types.h>
+#include <linux/platform_device.h>
+#include <linux/interrupt.h>
+#include <linux/input.h>
+#include <linux/smsc911x.h>
+#include <linux/gpio.h>
+#include <asm/machvec.h>
+#include <asm/io.h>
+
+static struct smsc911x_platform_config smsc911x_config = {
+       .phy_interface  = PHY_INTERFACE_MODE_MII,
+       .irq_polarity   = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
+       .irq_type       = SMSC911X_IRQ_TYPE_PUSH_PULL,
+       .flags          = SMSC911X_USE_16BIT | SMSC911X_SWAP_FIFO,
+};
+
+static struct resource smsc911x_resources[] = {
+       [0] = {
+               .start          = 0x24000000,
+               .end            = 0x240000ff,
+               .flags          = IORESOURCE_MEM,
+       },
+       [1] = {
+               .start          = 85,
+               .end            = 85,
+               .flags          = IORESOURCE_IRQ,
+       },
+};
+
+static struct platform_device smsc911x_device = {
+       .name           = "smsc911x",
+       .id             = -1,
+       .num_resources  = ARRAY_SIZE(smsc911x_resources),
+       .resource       = smsc911x_resources,
+       .dev            = {
+               .platform_data = &smsc911x_config,
+       },
+};
+
+static struct platform_device *rsk7269_devices[] __initdata = {
+       &smsc911x_device,
+};
+
+static int __init rsk7269_devices_setup(void)
+{
+       return platform_add_devices(rsk7269_devices,
+                                   ARRAY_SIZE(rsk7269_devices));
+}
+device_initcall(rsk7269_devices_setup);
diff --git a/arch/sh/configs/rsk7269_defconfig b/arch/sh/configs/rsk7269_defconfig
new file mode 100644 (file)
index 0000000..9f062b5
--- /dev/null
@@ -0,0 +1,65 @@
+CONFIG_LOG_BUF_SHIFT=14
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_EMBEDDED=y
+# CONFIG_VM_EVENT_COUNTERS is not set
+CONFIG_SLAB=y
+# CONFIG_LBDAF is not set
+# CONFIG_BLK_DEV_BSG is not set
+# CONFIG_IOSCHED_DEADLINE is not set
+# CONFIG_IOSCHED_CFQ is not set
+CONFIG_SWAP_IO_SPACE=y
+CONFIG_CPU_SUBTYPE_SH7269=y
+CONFIG_MEMORY_START=0x0c000000
+CONFIG_MEMORY_SIZE=0x02000000
+CONFIG_FLATMEM_MANUAL=y
+CONFIG_CPU_BIG_ENDIAN=y
+CONFIG_SH_RSK=y
+# CONFIG_SH_TIMER_MTU2 is not set
+CONFIG_SH_PCLK_FREQ=66700000
+CONFIG_BINFMT_FLAT=y
+CONFIG_NET=y
+CONFIG_INET=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y
+# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
+# CONFIG_INET_XFRM_MODE_TUNNEL is not set
+# CONFIG_INET_XFRM_MODE_BEET is not set
+# CONFIG_INET_LRO is not set
+# CONFIG_INET_DIAG is not set
+# CONFIG_IPV6 is not set
+CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+# CONFIG_FW_LOADER is not set
+CONFIG_SCSI=y
+CONFIG_BLK_DEV_SD=y
+CONFIG_NETDEVICES=y
+CONFIG_SMSC911X=y
+CONFIG_SMSC_PHY=y
+# CONFIG_INPUT_MOUSEDEV is not set
+# CONFIG_INPUT_KEYBOARD is not set
+# CONFIG_INPUT_MOUSE is not set
+# CONFIG_SERIO is not set
+CONFIG_SERIAL_SH_SCI=y
+CONFIG_SERIAL_SH_SCI_NR_UARTS=8
+CONFIG_SERIAL_SH_SCI_CONSOLE=y
+# CONFIG_HWMON is not set
+CONFIG_USB=y
+CONFIG_USB_DEBUG=y
+CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
+# CONFIG_USB_DEVICE_CLASS is not set
+CONFIG_USB_R8A66597_HCD=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_STORAGE_DEBUG=y
+CONFIG_USB_LIBUSUAL=y
+CONFIG_EXT2_FS=y
+CONFIG_EXT3_FS=y
+# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
+CONFIG_VFAT_FS=y
+CONFIG_NFS_FS=y
+CONFIG_NFS_V3=y
+CONFIG_ROOT_NFS=y
+CONFIG_PARTITION_ADVANCED=y
+CONFIG_NLS_CODEPAGE_437=y
+CONFIG_NLS_ISO8859_1=y
+# CONFIG_ENABLE_MUST_CHECK is not set
+CONFIG_SYSCTL_SYSCALL_CHECK=y
+# CONFIG_FTRACE is not set
index d007c81acfad8da7254d08c725f85233f88ac796..569977e52c91dbac2ca8509236b87443ed614a21 100644 (file)
@@ -52,6 +52,7 @@ MIGOR                 SH_MIGOR
 RSK7201                        SH_RSK7201
 RSK7203                        SH_RSK7203
 RSK7264                        SH_RSK7264
+RSK7269                        SH_RSK7269
 AP325RXA               SH_AP325RXA
 SH2007                 SH_SH2007
 SH7757LCR              SH_SH7757LCR
This page took 0.028025 seconds and 5 git commands to generate.