Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/85xx: add P1020RDB-PD platform support

The p1020rdb-pd has the similar feature as the p1020rdb.
Therefore, p1020rdb-pd use the same platform file as the p1/p2 rdb board.
Overview of P1020RDB-PD platform:
- DDR3 2GB
- NOR flash 64MB
- NAND flash 128MB
- SPI flash 16MB
- 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

Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
CC: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>

authored by

Haijun.Zhang and committed by
Scott Wood
550593e8 4e21b94c

+22
+22
arch/powerpc/platforms/85xx/mpc85xx_rdb.c
··· 160 160 machine_arch_initcall(p1020_mbg_pc, mpc85xx_common_publish_devices); 161 161 machine_arch_initcall(p1020_rdb, mpc85xx_common_publish_devices); 162 162 machine_arch_initcall(p1020_rdb_pc, mpc85xx_common_publish_devices); 163 + machine_arch_initcall(p1020_rdb_pd, mpc85xx_common_publish_devices); 163 164 machine_arch_initcall(p1020_utm_pc, mpc85xx_common_publish_devices); 164 165 machine_arch_initcall(p1021_rdb_pc, mpc85xx_common_publish_devices); 165 166 machine_arch_initcall(p1025_rdb, mpc85xx_common_publish_devices); ··· 192 191 unsigned long root = of_get_flat_dt_root(); 193 192 194 193 return of_flat_dt_is_compatible(root, "fsl,P1020RDB-PC"); 194 + } 195 + 196 + static int __init p1020_rdb_pd_probe(void) 197 + { 198 + unsigned long root = of_get_flat_dt_root(); 199 + 200 + return of_flat_dt_is_compatible(root, "fsl,P1020RDB-PD"); 195 201 } 196 202 197 203 static int __init p1021_rdb_pc_probe(void) ··· 348 340 define_machine(p1020_rdb_pc) { 349 341 .name = "P1020RDB-PC", 350 342 .probe = p1020_rdb_pc_probe, 343 + .setup_arch = mpc85xx_rdb_setup_arch, 344 + .init_IRQ = mpc85xx_rdb_pic_init, 345 + #ifdef CONFIG_PCI 346 + .pcibios_fixup_bus = fsl_pcibios_fixup_bus, 347 + #endif 348 + .get_irq = mpic_get_irq, 349 + .restart = fsl_rstcr_restart, 350 + .calibrate_decr = generic_calibrate_decr, 351 + .progress = udbg_progress, 352 + }; 353 + 354 + define_machine(p1020_rdb_pd) { 355 + .name = "P1020RDB-PD", 356 + .probe = p1020_rdb_pd_probe, 351 357 .setup_arch = mpc85xx_rdb_setup_arch, 352 358 .init_IRQ = mpc85xx_rdb_pic_init, 353 359 #ifdef CONFIG_PCI