Blame view
arch/arm/mach-mv78xx0/db78x00-bp-setup.c
2.47 KB
794d15b25 [ARM] add Marvell... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
/* * arch/arm/mach-mv78xx0/db78x00-bp-setup.c * * Marvell DB-78x00-BP Development Board Setup * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/platform_device.h> #include <linux/ata_platform.h> #include <linux/mv643xx_eth.h> |
04185fc67 [ARM] mv78xx0: fo... |
16 |
#include <linux/ethtool.h> |
693599438 [ARM] mv78xx0: wi... |
17 |
#include <linux/i2c.h> |
a09e64fbc [ARM] Move includ... |
18 |
#include <mach/mv78xx0.h> |
794d15b25 [ARM] add Marvell... |
19 20 21 22 23 |
#include <asm/mach-types.h> #include <asm/mach/arch.h> #include "common.h" static struct mv643xx_eth_platform_data db78x00_ge00_data = { |
ac840605f mv643xx_eth: remo... |
24 |
.phy_addr = MV643XX_ETH_PHY_ADDR(8), |
794d15b25 [ARM] add Marvell... |
25 26 27 |
}; static struct mv643xx_eth_platform_data db78x00_ge01_data = { |
ac840605f mv643xx_eth: remo... |
28 |
.phy_addr = MV643XX_ETH_PHY_ADDR(9), |
794d15b25 [ARM] add Marvell... |
29 30 31 |
}; static struct mv643xx_eth_platform_data db78x00_ge10_data = { |
f1f546578 [ARM] mv78xx0: en... |
32 |
.phy_addr = MV643XX_ETH_PHY_ADDR(10), |
794d15b25 [ARM] add Marvell... |
33 34 35 |
}; static struct mv643xx_eth_platform_data db78x00_ge11_data = { |
f1f546578 [ARM] mv78xx0: en... |
36 |
.phy_addr = MV643XX_ETH_PHY_ADDR(11), |
794d15b25 [ARM] add Marvell... |
37 38 39 40 41 |
}; static struct mv_sata_platform_data db78x00_sata_data = { .n_ports = 2, }; |
693599438 [ARM] mv78xx0: wi... |
42 43 44 |
static struct i2c_board_info __initdata db78x00_i2c_rtc = { I2C_BOARD_INFO("ds1338", 0x68), }; |
794d15b25 [ARM] add Marvell... |
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
static void __init db78x00_init(void) { /* * Basic MV78xx0 setup. Needs to be called early. */ mv78xx0_init(); /* * Partition on-chip peripherals between the two CPU cores. */ if (mv78xx0_core_index() == 0) { mv78xx0_ehci0_init(); mv78xx0_ehci1_init(); mv78xx0_ehci2_init(); mv78xx0_ge00_init(&db78x00_ge00_data); mv78xx0_ge01_init(&db78x00_ge01_data); mv78xx0_ge10_init(&db78x00_ge10_data); mv78xx0_ge11_init(&db78x00_ge11_data); mv78xx0_sata_init(&db78x00_sata_data); mv78xx0_uart0_init(); mv78xx0_uart2_init(); |
693599438 [ARM] mv78xx0: wi... |
66 67 |
mv78xx0_i2c_init(); i2c_register_board_info(0, &db78x00_i2c_rtc, 1); |
794d15b25 [ARM] add Marvell... |
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
} else { mv78xx0_uart1_init(); mv78xx0_uart3_init(); } } static int __init db78x00_pci_init(void) { if (machine_is_db78x00_bp()) { /* * Assign the x16 PCIe slot on the board to CPU core * #0, and let CPU core #1 have the four x1 slots. */ if (mv78xx0_core_index() == 0) mv78xx0_pcie_init(0, 1); else mv78xx0_pcie_init(1, 0); } return 0; } subsys_initcall(db78x00_pci_init); MACHINE_START(DB78X00_BP, "Marvell DB-78x00-BP Development Board") /* Maintainer: Lennert Buytenhek <buytenh@marvell.com> */ |
5bc9291ad ARM: mach-mv78xx0... |
93 |
.atag_offset = 0x100, |
794d15b25 [ARM] add Marvell... |
94 95 |
.init_machine = db78x00_init, .map_io = mv78xx0_map_io, |
4ee1f6b57 ARM: Remove depen... |
96 |
.init_early = mv78xx0_init_early, |
794d15b25 [ARM] add Marvell... |
97 98 99 |
.init_irq = mv78xx0_init_irq, .timer = &mv78xx0_timer, MACHINE_END |