Alexandru Gagniuc (mr.nuke.me@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4600
-gerrit
commit 4a96576fd7a5824a4870b79248a31bb1b65c3e22 Author: Alexandru Gagniuc mr.nuke.me@gmail.com Date: Thu Jan 2 04:01:52 2014 -0500
cubieboard: Turn on green LED during bootblock
Change-Id: I807060bde374e4a42abe306cecf838ab157c9515 Signed-off-by: Alexandru Gagniuc mr.nuke.me@gmail.com --- src/mainboard/cubietech/cubieboard/bootblock.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/src/mainboard/cubietech/cubieboard/bootblock.c b/src/mainboard/cubietech/cubieboard/bootblock.c index a7a55b5..90dfd0d 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); }