|
@@ -306,3 +306,62 @@ static unsigned int db88f5281_mpp_modes[] __initdata = {
|
|
|
MPP5_PCI_ARB, /* PCI_GNTn[3] */
|
|
|
MPP6_GPIO, /* JP0, CON17.2 */
|
|
|
MPP7_GPIO, /* JP1, CON17.1 */
|
|
|
+ MPP8_GPIO, /* JP2, CON11.2 */
|
|
|
+ MPP9_GPIO, /* JP3, CON11.3 */
|
|
|
+ MPP10_GPIO, /* RTC int */
|
|
|
+ MPP11_GPIO, /* Baud Rate Generator */
|
|
|
+ MPP12_GPIO, /* PCI int 1 */
|
|
|
+ MPP13_GPIO, /* PCI int 2 */
|
|
|
+ MPP14_NAND, /* NAND_REn[2] */
|
|
|
+ MPP15_NAND, /* NAND_WEn[2] */
|
|
|
+ MPP16_UART, /* UART1_RX */
|
|
|
+ MPP17_UART, /* UART1_TX */
|
|
|
+ MPP18_UART, /* UART1_CTSn */
|
|
|
+ MPP19_UART, /* UART1_RTSn */
|
|
|
+ 0,
|
|
|
+};
|
|
|
+
|
|
|
+static void __init db88f5281_init(void)
|
|
|
+{
|
|
|
+ /*
|
|
|
+ * Basic Orion setup. Need to be called early.
|
|
|
+ */
|
|
|
+ orion5x_init();
|
|
|
+
|
|
|
+ orion5x_mpp_conf(db88f5281_mpp_modes);
|
|
|
+ writel(0, MPP_DEV_CTRL); /* DEV_D[31:16] */
|
|
|
+
|
|
|
+ /*
|
|
|
+ * Configure peripherals.
|
|
|
+ */
|
|
|
+ orion5x_ehci0_init();
|
|
|
+ orion5x_eth_init(&db88f5281_eth_data);
|
|
|
+ orion5x_i2c_init();
|
|
|
+ orion5x_uart0_init();
|
|
|
+ orion5x_uart1_init();
|
|
|
+
|
|
|
+ orion5x_setup_dev_boot_win(DB88F5281_NOR_BOOT_BASE,
|
|
|
+ DB88F5281_NOR_BOOT_SIZE);
|
|
|
+ platform_device_register(&db88f5281_boot_flash);
|
|
|
+
|
|
|
+ orion5x_setup_dev0_win(DB88F5281_7SEG_BASE, DB88F5281_7SEG_SIZE);
|
|
|
+
|
|
|
+ orion5x_setup_dev1_win(DB88F5281_NOR_BASE, DB88F5281_NOR_SIZE);
|
|
|
+ platform_device_register(&db88f5281_nor_flash);
|
|
|
+
|
|
|
+ orion5x_setup_dev2_win(DB88F5281_NAND_BASE, DB88F5281_NAND_SIZE);
|
|
|
+ platform_device_register(&db88f5281_nand_flash);
|
|
|
+
|
|
|
+ i2c_register_board_info(0, &db88f5281_i2c_rtc, 1);
|
|
|
+}
|
|
|
+
|
|
|
+MACHINE_START(DB88F5281, "Marvell Orion-2 Development Board")
|
|
|
+ /* Maintainer: Tzachi Perelstein <tzachi@marvell.com> */
|
|
|
+ .atag_offset = 0x100,
|
|
|
+ .init_machine = db88f5281_init,
|
|
|
+ .map_io = orion5x_map_io,
|
|
|
+ .init_early = orion5x_init_early,
|
|
|
+ .init_irq = orion5x_init_irq,
|
|
|
+ .timer = &orion5x_timer,
|
|
|
+ .restart = orion5x_restart,
|
|
|
+MACHINE_END
|