summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2011-02-25 10:39:32 +0300
committerPaul Mundt <lethal@linux-sh.org>2011-03-11 06:36:28 +0300
commitceb7afe270c9a41130ffd3560e284f1ba0b2abe0 (patch)
treeec1c6f155f3310fc6b8899675f2282432ea22750 /arch/sh
parentd0371667d1393ec6655fa3bdd6e6008cfdea528c (diff)
downloadlinux-ceb7afe270c9a41130ffd3560e284f1ba0b2abe0.tar.xz
sh: add spi_board_info in sh7757lcr
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/boards/board-sh7757lcr.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/sh/boards/board-sh7757lcr.c b/arch/sh/boards/board-sh7757lcr.c
index c475f1056ab4..be5f5cf62bd8 100644
--- a/arch/sh/boards/board-sh7757lcr.c
+++ b/arch/sh/boards/board-sh7757lcr.c
@@ -104,6 +104,21 @@ static struct platform_device *sh7757lcr_devices[] __initdata = {
&sh7757_eth1_device,
};
+static struct flash_platform_data spi_flash_data = {
+ .name = "m25p80",
+ .type = "m25px64",
+};
+
+static struct spi_board_info spi_board_info[] = {
+ {
+ .modalias = "m25p80",
+ .max_speed_hz = 25000000,
+ .bus_num = 0,
+ .chip_select = 1,
+ .platform_data = &spi_flash_data,
+ },
+};
+
static int __init sh7757lcr_devices_setup(void)
{
/* RGMII (PTA) */
@@ -332,6 +347,10 @@ static int __init sh7757lcr_devices_setup(void)
gpio_request(GPIO_PTT5, NULL); /* eMMC_PRST# */
gpio_direction_output(GPIO_PTT5, 1);
+ /* register SPI device information */
+ spi_register_board_info(spi_board_info,
+ ARRAY_SIZE(spi_board_info));
+
/* General platform */
return platform_add_devices(sh7757lcr_devices,
ARRAY_SIZE(sh7757lcr_devices));