summaryrefslogtreecommitdiff
path: root/board/link/board.c
blob: 7b1ceb77e780a372885fc8f83b0b731890fd6d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* EC for Link mainboard pins multiplexing */

#include "board.h"
#include "registers.h"
#include "util.h"

void configure_board(void)
{
	/* Enable all of the GPIO modules : GPIOA to GPIOQ */
	LM4_SYSTEM_RCGCGPIO = 0x7fff;

	/* GPIOA muxing :
	 * pins 0/1 : UART0 = function 1
	 */
	LM4_GPIO_PCTL(A)  = 0x00000011;
	LM4_GPIO_AFSEL(A) = 0x03;
	LM4_GPIO_DEN(A)   = 0x03;
}