初级会员
- 积分
- 97
- 金钱
- 97
- 注册时间
- 2020-4-26
- 在线时间
- 9 小时
|
成功修改官方uboot,把原厂uboot配置的uart1改为了uart3(COM3口),修改了网卡驱动。原厂uboot的网卡在正点原子的开发板是用不了的。
先发一下uart1---->uart3(COM3):
修改以下这些,就可修改
arch/arm/include/asm/arch-mx6/imx-regs.h
/*
#define CONFIG_MXC_UART_BASE UART1_BASE /*arch/arm/include/asm/arch-mx6/imx-regs.h*/
*/
#define CONFIG_MXC_UART_BASE UART3_BASE
/board/freescal/mx6ullevk.c
/*
static iomux_v3_cfg_t const uart1_pads[] = {
MX6_PAD_UART1_TX_DATA__UART1_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6_PAD_UART1_RX_DATA__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
};
*/
static iomux_v3_cfg_t const uart3_pads[] = {
MX6_PAD_UART3_TX_DATA__UART3_DCE_TX | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6_PAD_UART3_RX_DATA__UART3_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
};
/*
static void setup_iomux_uart(void)
{
imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));
}
*/
static void setup_iomux_uart(void)
{
imx_iomux_v3_setup_multiple_pads(uart3_pads, ARRAY_SIZE(uart3_pads));
}
|
|