summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-uniphier/board_early_init_f.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/board_early_init_f.c
parent0b198670c6525392337462282efeaefe459e14cd (diff)
downloadtalos-obmc-uboot-8469700b6c9cf31e4e2df7a005f5f5385c5be5d4.tar.gz
talos-obmc-uboot-8469700b6c9cf31e4e2df7a005f5f5385c5be5d4.zip
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/board_early_init_f.c')
-rw-r--r--arch/arm/mach-uniphier/board_early_init_f.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/arm/mach-uniphier/board_early_init_f.c b/arch/arm/mach-uniphier/board_early_init_f.c
index 7108740408..45f5cea433 100644
--- a/arch/arm/mach-uniphier/board_early_init_f.c
+++ b/arch/arm/mach-uniphier/board_early_init_f.c
@@ -1,27 +1,25 @@
/*
- * Copyright (C) 2012-2015 Panasonic Corporation
- * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
+ * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
-#include <mach/led.h>
-#include <mach/board.h>
+#include <mach/micro-support-card.h>
void pin_init(void);
void clkrst_init(void);
int board_early_init_f(void)
{
- led_write(U, 0, , );
+ led_puts("U0");
pin_init();
- led_write(U, 1, , );
+ led_puts("U1");
clkrst_init();
- led_write(U, 2, , );
+ led_puts("U2");
return 0;
}
OpenPOWER on IntegriCloud