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

powerpc/85xx: Adds Support for P2020RDB-PC board

P2020RDB-PC Board shares the same design(PCB) as P102x RDB style platforms.
The difference between this platform and the already existing P2020RDB
is mainly with respect to DDR. The P2020RDB-PC has a DDR3 memory.
The P2020RDB-PC also has a CPLD device connected to local bus.

The main differences from the P102x RDB-PC is 64-bit DDR and SYSCLK of
100Mhz.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Tang Yuantian <b29983@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

authored by

Tang Yuantian and committed by
Kumar Gala
35ce1b5a b73bdf48

+24
+24
arch/powerpc/platforms/85xx/mpc85xx_rdb.c
··· 88 88 } 89 89 90 90 machine_device_initcall(p2020_rdb, mpc85xx_common_publish_devices); 91 + machine_device_initcall(p2020_rdb_pc, mpc85xx_common_publish_devices); 91 92 machine_device_initcall(p1020_rdb, mpc85xx_common_publish_devices); 92 93 machine_device_initcall(p1021_rdb_pc, mpc85xx_common_publish_devices); 93 94 ··· 118 117 unsigned long root = of_get_flat_dt_root(); 119 118 120 119 if (of_flat_dt_is_compatible(root, "fsl,P1021RDB-PC")) 120 + return 1; 121 + return 0; 122 + } 123 + 124 + static int __init p2020_rdb_pc_probe(void) 125 + { 126 + unsigned long root = of_get_flat_dt_root(); 127 + 128 + if (of_flat_dt_is_compatible(root, "fsl,P2020RDB-PC")) 121 129 return 1; 122 130 return 0; 123 131 } ··· 162 152 define_machine(p1021_rdb_pc) { 163 153 .name = "P1021 RDB-PC", 164 154 .probe = p1021_rdb_pc_probe, 155 + .setup_arch = mpc85xx_rdb_setup_arch, 156 + .init_IRQ = mpc85xx_rdb_pic_init, 157 + #ifdef CONFIG_PCI 158 + .pcibios_fixup_bus = fsl_pcibios_fixup_bus, 159 + #endif 160 + .get_irq = mpic_get_irq, 161 + .restart = fsl_rstcr_restart, 162 + .calibrate_decr = generic_calibrate_decr, 163 + .progress = udbg_progress, 164 + }; 165 + 166 + define_machine(p2020_rdb_pc) { 167 + .name = "P2020RDB-PC", 168 + .probe = p2020_rdb_pc_probe, 165 169 .setup_arch = mpc85xx_rdb_setup_arch, 166 170 .init_IRQ = mpc85xx_rdb_pic_init, 167 171 #ifdef CONFIG_PCI