Skip to content
Snippets Groups Projects
Commit 136179be authored by Marcel Ziswiler's avatar Marcel Ziswiler Committed by Marek Vasut
Browse files

colibri_pxa270: transition to driver model for serial


Add serial platform data to board file.
Enable driver model for PXA serial driver.

Signed-off-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
parent fc127d18
No related branches found
No related tags found
No related merge requests found
...@@ -8,10 +8,13 @@ ...@@ -8,10 +8,13 @@
#include <common.h> #include <common.h>
#include <asm/arch/hardware.h> #include <asm/arch/hardware.h>
#include <asm/arch/regs-mmc.h>
#include <asm/arch/pxa.h> #include <asm/arch/pxa.h>
#include <netdev.h> #include <asm/arch/regs-mmc.h>
#include <asm/arch/regs-uart.h>
#include <asm/io.h> #include <asm/io.h>
#include <dm/platdata.h>
#include <dm/platform_data/serial_pxa.h>
#include <netdev.h>
#include <serial.h> #include <serial.h>
#include <usb.h> #include <usb.h>
...@@ -105,3 +108,14 @@ int board_mmc_init(bd_t *bis) ...@@ -105,3 +108,14 @@ int board_mmc_init(bd_t *bis)
return 0; return 0;
} }
#endif #endif
static const struct pxa_serial_platdata serial_platdata = {
.base = (struct pxa_uart_regs *)FFUART_BASE,
.port = FFUART_INDEX,
.baudrate = CONFIG_BAUDRATE,
};
U_BOOT_DEVICE(pxa_serials) = {
.name = "serial_pxa",
.platdata = &serial_platdata,
};
...@@ -16,6 +16,8 @@ CONFIG_CMD_DHCP=y ...@@ -16,6 +16,8 @@ CONFIG_CMD_DHCP=y
CONFIG_CMD_PING=y CONFIG_CMD_PING=y
CONFIG_CMD_EXT2=y CONFIG_CMD_EXT2=y
CONFIG_CMD_FAT=y CONFIG_CMD_FAT=y
CONFIG_DM=y
CONFIG_DM_SERIAL=y
CONFIG_PXA_SERIAL=y CONFIG_PXA_SERIAL=y
CONFIG_USB=y CONFIG_USB=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
......
...@@ -43,8 +43,6 @@ ...@@ -43,8 +43,6 @@
/* /*
* Serial Console Configuration * Serial Console Configuration
*/ */
#define CONFIG_FFUART 1
#define CONFIG_CONS_INDEX 3
#define CONFIG_BAUDRATE 115200 #define CONFIG_BAUDRATE 115200
/* /*
......
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