aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));