aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorJerry Huang <Chang-Ming.Huang@freescale.com>2012-03-14 05:08:27 -0400
committerKumar Gala <galak@kernel.crashing.org>2012-03-16 11:54:06 -0400
commitd1fb10609ae189c1294c793f833a5c6b1bc71001 (patch)
tree79ae74ba6ca72a38b686ec0d180117c0dbae8b6b /arch/powerpc
parent82771882d96022369ac8092dc3ee3ef5a91b3ca6 (diff)
powerpc/85xx: add P1020MBG-PC platform support
The p1020mbg-pc has the similar feature as the p1020rdb. Therefore, p1020mbg-pc use the same platform file as the p1/p2 rdb board. Overview of P1020MBG-PC platform: - DDR3 2GB - NOR flash 64MB - I2C EEPROM 256Kb - eTSEC1 (RGMII PHY) connected to VSC7385 L2 switch - eTSEC2 (SGMII PHY) - eTSEC3 (RGMII PHY) - SDHC - 2 USB ports - 4 TDM ports - PCIe (Lane1 to dual SATA controller) Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/85xx/mpc85xx_rdb.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c
index 4976f4e101a2..2c2a272e79fa 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c
@@ -89,6 +89,7 @@ static void __init mpc85xx_rdb_setup_arch(void)
89 89
90machine_device_initcall(p2020_rdb, mpc85xx_common_publish_devices); 90machine_device_initcall(p2020_rdb, mpc85xx_common_publish_devices);
91machine_device_initcall(p2020_rdb_pc, mpc85xx_common_publish_devices); 91machine_device_initcall(p2020_rdb_pc, mpc85xx_common_publish_devices);
92machine_device_initcall(p1020_mbg_pc, mpc85xx_common_publish_devices);
92machine_device_initcall(p1020_rdb, mpc85xx_common_publish_devices); 93machine_device_initcall(p1020_rdb, mpc85xx_common_publish_devices);
93machine_device_initcall(p1021_rdb_pc, mpc85xx_common_publish_devices); 94machine_device_initcall(p1021_rdb_pc, mpc85xx_common_publish_devices);
94machine_device_initcall(p1025_rdb, mpc85xx_common_publish_devices); 95machine_device_initcall(p1025_rdb, mpc85xx_common_publish_devices);
@@ -139,6 +140,13 @@ static int __init p1025_rdb_probe(void)
139 return of_flat_dt_is_compatible(root, "fsl,P1025RDB"); 140 return of_flat_dt_is_compatible(root, "fsl,P1025RDB");
140} 141}
141 142
143static int __init p1020_mbg_pc_probe(void)
144{
145 unsigned long root = of_get_flat_dt_root();
146
147 return of_flat_dt_is_compatible(root, "fsl,P1020MBG-PC");
148}
149
142define_machine(p2020_rdb) { 150define_machine(p2020_rdb) {
143 .name = "P2020 RDB", 151 .name = "P2020 RDB",
144 .probe = p2020_rdb_probe, 152 .probe = p2020_rdb_probe,
@@ -208,3 +216,17 @@ define_machine(p1025_rdb) {
208 .calibrate_decr = generic_calibrate_decr, 216 .calibrate_decr = generic_calibrate_decr,
209 .progress = udbg_progress, 217 .progress = udbg_progress,
210}; 218};
219
220define_machine(p1020_mbg_pc) {
221 .name = "P1020 MBG-PC",
222 .probe = p1020_mbg_pc_probe,
223 .setup_arch = mpc85xx_rdb_setup_arch,
224 .init_IRQ = mpc85xx_rdb_pic_init,
225#ifdef CONFIG_PCI
226 .pcibios_fixup_bus = fsl_pcibios_fixup_bus,
227#endif
228 .get_irq = mpic_get_irq,
229 .restart = fsl_rstcr_restart,
230 .calibrate_decr = generic_calibrate_decr,
231 .progress = udbg_progress,
232};