aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2011-02-25 02:39:32 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-03-10 22:36:28 -0500
commitceb7afe270c9a41130ffd3560e284f1ba0b2abe0 (patch)
treeec1c6f155f3310fc6b8899675f2282432ea22750 /arch/sh/boards
parentd0371667d1393ec6655fa3bdd6e6008cfdea528c (diff)
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/boards')
-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 = {
104 &sh7757_eth1_device, 104 &sh7757_eth1_device,
105}; 105};
106 106
107static struct flash_platform_data spi_flash_data = {
108 .name = "m25p80",
109 .type = "m25px64",
110};
111
112static struct spi_board_info spi_board_info[] = {
113 {
114 .modalias = "m25p80",
115 .max_speed_hz = 25000000,
116 .bus_num = 0,
117 .chip_select = 1,
118 .platform_data = &spi_flash_data,
119 },
120};
121
107static int __init sh7757lcr_devices_setup(void) 122static int __init sh7757lcr_devices_setup(void)
108{ 123{
109 /* RGMII (PTA) */ 124 /* RGMII (PTA) */
@@ -332,6 +347,10 @@ static int __init sh7757lcr_devices_setup(void)
332 gpio_request(GPIO_PTT5, NULL); /* eMMC_PRST# */ 347 gpio_request(GPIO_PTT5, NULL); /* eMMC_PRST# */
333 gpio_direction_output(GPIO_PTT5, 1); 348 gpio_direction_output(GPIO_PTT5, 1);
334 349
350 /* register SPI device information */
351 spi_register_board_info(spi_board_info,
352 ARRAY_SIZE(spi_board_info));
353
335 /* General platform */ 354 /* General platform */
336 return platform_add_devices(sh7757lcr_devices, 355 return platform_add_devices(sh7757lcr_devices,
337 ARRAY_SIZE(sh7757lcr_devices)); 356 ARRAY_SIZE(sh7757lcr_devices));