diff options
Diffstat (limited to 'arch/powerpc/platforms/85xx/p1023_rds.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/p1023_rds.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/p1023_rds.c b/arch/powerpc/platforms/85xx/p1023_rds.c index 9cc60a738834..2ae9d490c3d9 100644 --- a/arch/powerpc/platforms/85xx/p1023_rds.c +++ b/arch/powerpc/platforms/85xx/p1023_rds.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2010-2011 Freescale Semiconductor, Inc. | 2 | * Copyright 2010-2011, 2013 Freescale Semiconductor, Inc. |
3 | * | 3 | * |
4 | * Author: Roy Zang <tie-fei.zang@freescale.com> | 4 | * Author: Roy Zang <tie-fei.zang@freescale.com> |
5 | * | 5 | * |
@@ -86,6 +86,7 @@ static void __init mpc85xx_rds_setup_arch(void) | |||
86 | } | 86 | } |
87 | 87 | ||
88 | machine_arch_initcall(p1023_rds, mpc85xx_common_publish_devices); | 88 | machine_arch_initcall(p1023_rds, mpc85xx_common_publish_devices); |
89 | machine_arch_initcall(p1023_rdb, mpc85xx_common_publish_devices); | ||
89 | 90 | ||
90 | static void __init mpc85xx_rds_pic_init(void) | 91 | static void __init mpc85xx_rds_pic_init(void) |
91 | { | 92 | { |
@@ -106,6 +107,14 @@ static int __init p1023_rds_probe(void) | |||
106 | 107 | ||
107 | } | 108 | } |
108 | 109 | ||
110 | static int __init p1023_rdb_probe(void) | ||
111 | { | ||
112 | unsigned long root = of_get_flat_dt_root(); | ||
113 | |||
114 | return of_flat_dt_is_compatible(root, "fsl,P1023RDB"); | ||
115 | |||
116 | } | ||
117 | |||
109 | define_machine(p1023_rds) { | 118 | define_machine(p1023_rds) { |
110 | .name = "P1023 RDS", | 119 | .name = "P1023 RDS", |
111 | .probe = p1023_rds_probe, | 120 | .probe = p1023_rds_probe, |
@@ -120,3 +129,16 @@ define_machine(p1023_rds) { | |||
120 | #endif | 129 | #endif |
121 | }; | 130 | }; |
122 | 131 | ||
132 | define_machine(p1023_rdb) { | ||
133 | .name = "P1023 RDB", | ||
134 | .probe = p1023_rdb_probe, | ||
135 | .setup_arch = mpc85xx_rds_setup_arch, | ||
136 | .init_IRQ = mpc85xx_rds_pic_init, | ||
137 | .get_irq = mpic_get_irq, | ||
138 | .restart = fsl_rstcr_restart, | ||
139 | .calibrate_decr = generic_calibrate_decr, | ||
140 | .progress = udbg_progress, | ||
141 | #ifdef CONFIG_PCI | ||
142 | .pcibios_fixup_bus = fsl_pcibios_fixup_bus, | ||
143 | #endif | ||
144 | }; | ||