aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/init.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-02-14 01:24:26 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-02-23 08:37:56 +0900
commit784548efb2b76fdbfdb73f6a505a156f90bb1e55 (patch)
tree1e8457137b8933095298964f8a6cb3675cdedfc4 /arch/arm/mach-uniphier/init.h
parent81c847bf3806f2cb275f8b084872b97508823462 (diff)
downloadu-boot-784548efb2b76fdbfdb73f6a505a156f90bb1e55.zip
u-boot-784548efb2b76fdbfdb73f6a505a156f90bb1e55.tar.gz
u-boot-784548efb2b76fdbfdb73f6a505a156f90bb1e55.tar.bz2
ARM: uniphier: rework spl_boot_device() and related code
The current implementation has ugly switch statements here and there, and duplicates similar code. Rework it using table lookups for SoC data and reduce code duplication. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/init.h')
-rw-r--r--arch/arm/mach-uniphier/init.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/init.h b/arch/arm/mach-uniphier/init.h
index c41a5df..6691d44 100644
--- a/arch/arm/mach-uniphier/init.h
+++ b/arch/arm/mach-uniphier/init.h
@@ -120,11 +120,14 @@ void uniphier_pro5_clk_init(void);
void uniphier_pxs2_clk_init(void);
void uniphier_ld11_clk_init(void);
+unsigned int uniphier_boot_device_raw(void);
int uniphier_pin_init(const char *pinconfig_name);
void uniphier_smp_kick_all_cpus(void);
void cci500_init(int nr_slaves);
+#undef pr_warn
#define pr_warn(fmt, args...) printf(fmt, ##args)
+#undef pr_err
#define pr_err(fmt, args...) printf(fmt, ##args)
#endif /* __MACH_INIT_H */