diff options
Diffstat (limited to 'src/mainboard')
-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(); |