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>
This commit is contained in:
Gabe Black 2013-05-29 16:42:31 +02:00 committed by Ronald G. Minnich
parent 560433b493
commit 7cb57a1c30
1 changed files with 14 additions and 0 deletions

View File

@ -17,6 +17,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <arch/io.h>
#include <types.h> #include <types.h>
#include <uart.h> #include <uart.h>
#include <console/console.h> #include <console/console.h>
@ -24,6 +25,19 @@
void bootblock_mainboard_init(void); void bootblock_mainboard_init(void);
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 */ /* Start monotonic timer */
//rtc_start(); //rtc_start();