summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/512x/mpc512x.h
diff options
context:
space:
mode:
authorGerhard Sittig <gsi@denx.de>2013-05-14 04:40:53 +0000
committerAnatolij Gustschin <agust@denx.de>2013-05-21 10:58:39 +0200
commit2abbbb63c90ab55ca3f054772c2e5ba7df810c48 (patch)
tree4acf0e08ddd59b763811198e2bb70b067336a9a2 /arch/powerpc/platforms/512x/mpc512x.h
parentc7788792a5e7b0d5d7f96d0766b4cb6112d47d75 (diff)
downloadblackbird-obmc-linux-2abbbb63c90ab55ca3f054772c2e5ba7df810c48.tar.gz
blackbird-obmc-linux-2abbbb63c90ab55ca3f054772c2e5ba7df810c48.zip
powerpc/mpc512x: move common code to shared.c file
- implement all of the init, init early, and setup arch routines in the shared source file for the MPC512x PowerPC platform, and make all MPC512x based boards (ADS, PDM, generic) use those common routines - remove declarations from header files for routines which aren't referenced from external callers any longer this modification concentrates knowledge about the optional FSL DIU support in one spot within the shared code, and makes all boards benefit transparently from future improvements in the shared platform code the change does not modify any behaviour but preserves all code paths Signed-off-by: Gerhard Sittig <gsi@denx.de> Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/powerpc/platforms/512x/mpc512x.h')
-rw-r--r--arch/powerpc/platforms/512x/mpc512x.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/512x/mpc512x.h b/arch/powerpc/platforms/512x/mpc512x.h
index 0a8e60023944..fdb4303246a0 100644
--- a/arch/powerpc/platforms/512x/mpc512x.h
+++ b/arch/powerpc/platforms/512x/mpc512x.h
@@ -12,18 +12,11 @@
#ifndef __MPC512X_H__
#define __MPC512X_H__
extern void __init mpc512x_init_IRQ(void);
+extern void __init mpc512x_init_early(void);
extern void __init mpc512x_init(void);
+extern void __init mpc512x_setup_arch(void);
extern int __init mpc5121_clk_init(void);
-void __init mpc512x_declare_of_platform_devices(void);
extern const char *mpc512x_select_psc_compat(void);
extern void mpc512x_restart(char *cmd);
-#if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)
-void mpc512x_init_diu(void);
-void mpc512x_setup_diu(void);
-#else
-#define mpc512x_init_diu NULL
-#define mpc512x_setup_diu NULL
-#endif
-
#endif /* __MPC512X_H__ */
OpenPOWER on IntegriCloud