From 7cb57a1c30448e60ca06a36c59528e926b68f04d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 29 May 2013 16:42:31 +0200 Subject: beaglebone: Force on every other user LED to show that coreboot is running. Until we get serial working, this is a good way to show that coreboot is running. It can be removed once we have better methods. Change-Id: I62d25e52aa88a97aba4c959538d680b67a0bbbb2 Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/3329 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/mainboard/ti/beaglebone/bootblock.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/mainboard') diff --git a/src/mainboard/ti/beaglebone/bootblock.c b/src/mainboard/ti/beaglebone/bootblock.c index 77e382d1db..fbe73eac31 100644 --- a/src/mainboard/ti/beaglebone/bootblock.c +++ b/src/mainboard/ti/beaglebone/bootblock.c @@ -17,6 +17,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include @@ -24,6 +25,19 @@ void bootblock_mainboard_init(void); void bootblock_mainboard_init(void) { + /* Enable the GPIO module */ + writel((0x2 << 0) | (1 << 18), (uint32_t *)(0x44e00000 + 0xac)); + + /* Disable interrupts from these GPIOs */ + setbits_le32((uint32_t *)(0x4804c000 + 0x3c), 0xf << 21); + + /* Enable output */ + clrbits_le32((uint32_t *)(0x4804c000 + 0x134), 0xf << 21); + + /* Set every other light */ + clrbits_le32((uint32_t *)(0x4804c000 + 0x13c), 0xf << 21); + setbits_le32((uint32_t *)(0x4804c000 + 0x13c), 0x5 << 21); + /* Start monotonic timer */ //rtc_start(); -- cgit v1.2.3