[coreboot-gerrit] Patch set updated for coreboot: 271b570 beaglebone: Force on every other user LED to show that coreboot is running.
Gabe Black (gabeblack@chromium.org)
gerrit at coreboot.org
Wed May 29 16:43:09 CEST 2013
Gabe Black (gabeblack at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3329
-gerrit
commit 271b5708d127cb08ca4bf4c0c9f8f065838c00e9
Author: Gabe Black <gabeblack at chromium.org>
Date: Wed May 29 16:42:31 2013 +0200
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 at chromium.org>
---
src/mainboard/ti/beaglebone/bootblock.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/mainboard/ti/beaglebone/bootblock.c b/src/mainboard/ti/beaglebone/bootblock.c
index 77e382d..fbe73ea 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();
More information about the coreboot-gerrit
mailing list