2 * arch/arm/mach-kirkwood/sheevaplug-setup.c
4 * Marvell SheevaPlug Reference Board Setup
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
11 #include <linux/kernel.h>
12 #include <linux/init.h>
13 #include <linux/platform_device.h>
14 #include <linux/mtd/nand.h>
15 #include <linux/mtd/partitions.h>
16 #include <linux/mv643xx_eth.h>
17 #include <asm/mach-types.h>
18 #include <asm/mach/arch.h>
19 #include <mach/kirkwood.h>
20 #include <plat/mvsdio.h>
21 #include <plat/orion_nand.h>
24 static struct mtd_partition sheevaplug_nand_parts
[] = {
31 .offset
= MTDPART_OFS_NXTBLK
,
35 .offset
= MTDPART_OFS_NXTBLK
,
36 .size
= MTDPART_SIZ_FULL
40 static struct resource sheevaplug_nand_resource
= {
41 .flags
= IORESOURCE_MEM
,
42 .start
= KIRKWOOD_NAND_MEM_PHYS_BASE
,
43 .end
= KIRKWOOD_NAND_MEM_PHYS_BASE
+
44 KIRKWOOD_NAND_MEM_SIZE
- 1,
47 static struct orion_nand_data sheevaplug_nand_data
= {
48 .parts
= sheevaplug_nand_parts
,
49 .nr_parts
= ARRAY_SIZE(sheevaplug_nand_parts
),
56 static struct platform_device sheevaplug_nand_flash
= {
60 .platform_data
= &sheevaplug_nand_data
,
62 .resource
= &sheevaplug_nand_resource
,
66 static struct mv643xx_eth_platform_data sheevaplug_ge00_data
= {
67 .phy_addr
= MV643XX_ETH_PHY_ADDR(0),
70 static struct mvsdio_platform_data sheevaplug_mvsdio_data
= {
71 // unfortunately the CD signal has not been connected */
74 static void __init
sheevaplug_init(void)
77 * Basic setup. Needs to be called early.
81 kirkwood_uart0_init();
83 kirkwood_ge00_init(&sheevaplug_ge00_data
);
84 kirkwood_sdio_init(&sheevaplug_mvsdio_data
);
86 platform_device_register(&sheevaplug_nand_flash
);
89 MACHINE_START(SHEEVAPLUG
, "Marvell SheevaPlug Reference Board")
90 /* Maintainer: shadi Ammouri <shadi@marvell.com> */
91 .phys_io
= KIRKWOOD_REGS_PHYS_BASE
,
92 .io_pg_offst
= ((KIRKWOOD_REGS_VIRT_BASE
) >> 18) & 0xfffc,
93 .boot_params
= 0x00000100,
94 .init_machine
= sheevaplug_init
,
95 .map_io
= kirkwood_map_io
,
96 .init_irq
= kirkwood_init_irq
,
97 .timer
= &kirkwood_timer
,