summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/spl.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-09-22 00:27:31 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2015-09-25 00:27:53 +0900
commit8469700b6c9cf31e4e2df7a005f5f5385c5be5d4 (patch)
tree9b7616b8d09d6197f7835b82f60b65c33801a50e /arch/arm/mach-uniphier/spl.c
parent0b198670c6525392337462282efeaefe459e14cd (diff)
downloadu-boot-imx-8469700b6c9cf31e4e2df7a005f5f5385c5be5d4.zip
u-boot-imx-8469700b6c9cf31e4e2df7a005f5f5385c5be5d4.tar.gz
u-boot-imx-8469700b6c9cf31e4e2df7a005f5f5385c5be5d4.tar.bz2
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 <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/spl.c')
-rw-r--r--arch/arm/mach-uniphier/spl.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-uniphier/spl.c b/arch/arm/mach-uniphier/spl.c
index 661d73a..f0df9b1 100644
--- a/arch/arm/mach-uniphier/spl.c
+++ b/arch/arm/mach-uniphier/spl.c
@@ -7,8 +7,7 @@
#include <common.h>
#include <spl.h>
#include <linux/compiler.h>
-#include <mach/led.h>
-#include <mach/board.h>
+#include <mach/micro-support-card.h>
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");
}