summaryrefslogtreecommitdiff
path: root/src/mainboard/cubietech
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-02 04:01:52 -0500
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-09 01:05:39 +0100
commit30c20e92a28c8a993baf41415c8a36410ca97c2d (patch)
tree2535e9cf39dfa808516b41f7f1dbcdab15548cd1 /src/mainboard/cubietech
parent919e499a364bebd0032f2f7b92051fb4f301f66f (diff)
cubieboard: Turn on green LED during bootblock
Change-Id: I807060bde374e4a42abe306cecf838ab157c9515 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/4600 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/mainboard/cubietech')
-rw-r--r--src/mainboard/cubietech/cubieboard/bootblock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/cubietech/cubieboard/bootblock.c b/src/mainboard/cubietech/cubieboard/bootblock.c
index a7a55b58b2..90dfd0d458 100644
--- a/src/mainboard/cubietech/cubieboard/bootblock.c
+++ b/src/mainboard/cubietech/cubieboard/bootblock.c
@@ -18,6 +18,10 @@
| AHB_DIV_1 \
| AXI_DIV_1
+#define GPH_STATUS_LEDS (1 << 20) | (1 << 21)
+#define GPH_LED1_PIN_NO 21
+#define GPH_LED2_PIN_NO 20
+
#define GPB_UART0_FUNC 2
#define GPB_UART0_PINS ((1 << 22) | (1 << 23))
@@ -56,6 +60,11 @@ static void cubieboard_setup_clocks(void)
static void cubieboard_setup_gpios(void)
{
+ /* Mux Status LED pins */
+ gpio_set_multipin_func(GPH, GPH_STATUS_LEDS, GPIO_PIN_FUNC_OUTPUT);
+ /* Turn on green LED to let user know we're executing coreboot code */
+ gpio_set(GPH, GPH_LED2_PIN_NO);
+
/* Mux UART pins */
gpio_set_multipin_func(GPB, GPB_UART0_PINS, GPB_UART0_FUNC);
}