diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2010-12-15 03:50:47 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-01-14 01:32:18 -0600 |
commit | 35079aa98c64b6739ea2fc5453b527a9bdf22b6c (patch) | |
tree | 7fce9946fa5223879e8ec0e1cd0ae97339c43a6a /arch/powerpc/cpu/mpc85xx/cpu_init.c | |
parent | cb14e93b55b64feac556030e87835151cdc77be0 (diff) | |
download | u-boot-imx-35079aa98c64b6739ea2fc5453b527a9bdf22b6c.zip u-boot-imx-35079aa98c64b6739ea2fc5453b527a9bdf22b6c.tar.gz u-boot-imx-35079aa98c64b6739ea2fc5453b527a9bdf22b6c.tar.bz2 |
powerpc/85xx: Replace CONFIG_SYS_HAS_SERDES with a weak function
Instead of a #define use a null weak function for fsl_serdes_init
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/cpu_init.c')
-rw-r--r-- | arch/powerpc/cpu/mpc85xx/cpu_init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c index 4b8faa5..4a6cc65 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c @@ -232,6 +232,12 @@ void cpu_init_f (void) invalidate_cpc(); } +/* Implement a dummy function for those platforms w/o SERDES */ +static void __fsl_serdes__init(void) +{ + return ; +} +__attribute__((weak, alias("__fsl_serdes__init"))) void fsl_serdes_init(void); /* * Initialize L2 as cache. @@ -375,10 +381,8 @@ int cpu_init_r(void) qe_reset(); #endif -#if defined(CONFIG_SYS_HAS_SERDES) /* needs to be in ram since code uses global static vars */ fsl_serdes_init(); -#endif #if defined(CONFIG_MP) setup_mp(); |