diff options
author | Gabe Black <gabeblack@chromium.org> | 2013-05-29 16:42:31 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-06-10 23:13:02 +0200 |
commit | 7cb57a1c30448e60ca06a36c59528e926b68f04d (patch) | |
tree | 3ac7e267406fcc66b095b9d5da7b557d2ef6a443 | |
parent | 560433b4931f30ab23f602911e3e2491a1cbfae1 (diff) | |
download | coreboot-7cb57a1c30448e60ca06a36c59528e926b68f04d.tar.xz |
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 <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3329
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r-- | src/mainboard/ti/beaglebone/bootblock.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 <arch/io.h> #include <types.h> #include <uart.h> #include <console/console.h> @@ -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(); |