From 8469700b6c9cf31e4e2df7a005f5f5385c5be5d4 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 22 Sep 2015 00:27:31 +0900 Subject: ARM: uniphier: refactor LED function The macro, led_write(), is now only used in C sources. There is no more reason to keep the tricky assembly macro. Replace it with a new C function led_puts(). Also, rename board.h to micro-support-card.h. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/spl.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'arch/arm/mach-uniphier/spl.c') diff --git a/arch/arm/mach-uniphier/spl.c b/arch/arm/mach-uniphier/spl.c index 661d73ae4a..f0df9b1e4e 100644 --- a/arch/arm/mach-uniphier/spl.c +++ b/arch/arm/mach-uniphier/spl.c @@ -7,8 +7,7 @@ #include #include #include -#include -#include +#include void __weak bcu_init(void) { @@ -46,25 +45,25 @@ void spl_board_init(void) support_card_init(); - led_write(L, 0, , ); + led_puts("L0"); memconf_init(); - led_write(L, 1, , ); + led_puts("L1"); early_clkrst_init(); - led_write(L, 2, , ); + led_puts("L2"); early_pin_init(); - led_write(L, 3, , ); + led_puts("L3"); #ifdef CONFIG_SPL_SERIAL_SUPPORT preloader_console_init(); #endif - led_write(L, 4, , ); + led_puts("L4"); { int res; @@ -75,9 +74,10 @@ void spl_board_init(void) ; } } - led_write(L, 5, , ); + + led_puts("L5"); enable_dpll_ssc(); - led_write(L, 6, , ); + led_puts("L6"); } -- cgit v1.2.1