2 * arch/arm/mach-dove/cm-a510.c
4 * Copyright (C) 2010 CompuLab, Ltd.
5 * Konstantin Sinyuk <kostyas@compulab.co.il>
7 * Based on Marvell DB-MV88AP510-BP Development Board Setup
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
14 #include <linux/kernel.h>
15 #include <linux/init.h>
16 #include <linux/platform_device.h>
17 #include <linux/ata_platform.h>
18 #include <linux/mv643xx_eth.h>
19 #include <linux/spi/spi.h>
20 #include <linux/spi/flash.h>
22 #include <asm/mach-types.h>
23 #include <asm/mach/arch.h>
25 #include <mach/dove.h>
29 static struct mv643xx_eth_platform_data cm_a510_ge00_data
= {
30 .phy_addr
= MV643XX_ETH_PHY_ADDR_DEFAULT
,
33 static struct mv_sata_platform_data cm_a510_sata_data
= {
39 * SPI0: 1M Flash Winbond w25q32bv
41 static const struct flash_platform_data cm_a510_spi_flash_data
= {
45 static struct spi_board_info __initdata cm_a510_spi_flash_info
[] = {
48 .platform_data
= &cm_a510_spi_flash_data
,
50 .max_speed_hz
= 20000000,
56 static int __init
cm_a510_pci_init(void)
58 if (machine_is_cm_a510())
64 subsys_initcall(cm_a510_pci_init
);
67 static void __init
cm_a510_init(void)
70 * Basic Dove setup. Needs to be called early.
74 dove_ge00_init(&cm_a510_ge00_data
);
77 dove_sata_init(&cm_a510_sata_data
);
85 spi_register_board_info(cm_a510_spi_flash_info
,
86 ARRAY_SIZE(cm_a510_spi_flash_info
));
89 MACHINE_START(CM_A510
, "Compulab CM-A510 Board")
90 .boot_params
= 0x00000100,
91 .init_machine
= cm_a510_init
,
92 .map_io
= dove_map_io
,
93 .init_irq
= dove_init_irq
,