Skip to content
Snippets Groups Projects
Commit 5d3c2c54 authored by Gabriel Huau's avatar Gabriel Huau Committed by Simon Glass
Browse files

x86: minnowmax: initialize the pin-muxing from device tree

parent 5318f18d
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <common.h> #include <common.h>
#include <asm/gpio.h>
#include <asm/ibmpc.h> #include <asm/ibmpc.h>
#include <asm/pnp_def.h> #include <asm/pnp_def.h>
#include <netdev.h> #include <netdev.h>
...@@ -12,6 +13,14 @@ ...@@ -12,6 +13,14 @@
#define SERIAL_DEV PNP_DEV(0x2e, 4) #define SERIAL_DEV PNP_DEV(0x2e, 4)
int arch_early_init_r(void)
{
/* do the pin-muxing */
gpio_ich6_pinctrl_init();
return 0;
}
int board_early_init_f(void) int board_early_init_f(void)
{ {
lpc47m_enable_serial(SERIAL_DEV, UART0_BASE, UART0_IRQ); lpc47m_enable_serial(SERIAL_DEV, UART0_BASE, UART0_IRQ);
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#define CONFIG_SYS_MONITOR_LEN (1 << 20) #define CONFIG_SYS_MONITOR_LEN (1 << 20)
#define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_ARCH_EARLY_INIT_R
#define CONFIG_X86_SERIAL #define CONFIG_X86_SERIAL
#define CONFIG_SMSC_LPC47M #define CONFIG_SMSC_LPC47M
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment