|
AM335X linux或android的串口设置问题
[复制链接]
我在board-am335xevm.c中设置了mux,并在mux33xx.c中做了对应的修改,但五个串口都没有反应,在android和linux下都不行.
还要修改添加那一个文件,请高手指点一下?
static void __init am335x_uart_pin_init(void)
{
setup_pin_mux(uart1_pin_mux);
setup_pin_mux(uart2_pin_mux);
setup_pin_mux(uart3_pin_mux);
setup_pin_mux(uart4_pin_mux);
setup_pin_mux(uart5_pin_mux);
return;
}
static struct pinmux_config uart1_pin_mux[] = {
{"uart1_rxd.uart1_rxd", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
{"uart1_txd.uart1_txd", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL},
{NULL, 0},
};
static struct pinmux_config uart2_pin_mux[] = {
{"spi0_sclk.uart2_rxd", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"spi0_d0.uart2_txd", OMAP_MUX_MODE1 | AM33XX_PULL_ENBL},
{NULL, 0},
};
/* Module pin mux for uart3 myboard uart3 */
static struct pinmux_config uart3_pin_mux[] = {
{"mmc0_dat1.uart3_rxd", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP},
{"mmc0_dat0.uart3_txd", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL},
{NULL, 0},
};
static struct pinmux_config uart4_pin_mux[] = {
{"uart0_ctsn.uart4_rxd", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"uart0_rtsn.uart4_txd", OMAP_MUX_MODE1 | AM33XX_PULL_ENBL},
{NULL, 0},
};
static struct pinmux_config uart5_pin_mux[] = {
{"mdio_data.uart5_rxd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{"mdio_clk.uart5_txd", OMAP_MUX_MODE2 | AM33XX_PULL_ENBL},
{NULL, 0},
};
|
|