Quantcast
Channel: 数字信号处理器 (DSP) & ARM® 微处理器
Viewing all articles
Browse latest Browse all 21822

帖子: RE: AM335X Pru SoftUart

$
0
0

我打算用pru0和mcasp1,在板级文件中配了uart和mcasp1的pinmux

static struct pinmux_config suart0_pin_mux[] = {
{"spi0_d1.pr1_uart0_rxd", OMAP_MUX_MODE4 | AM33XX_SLEWCTRL_SLOW |
AM33XX_PIN_INPUT_PULLUP},
{"spi0_cs0.pr1_uart0_txd", OMAP_MUX_MODE4 | AM33XX_PULL_UP |
AM33XX_PULL_DISA |
AM33XX_SLEWCTRL_SLOW},
{NULL, 0},
};

static struct pinmux_config mcasp1_pin_mux[] = {
{"mcasp0_aclkr.mcasp1_aclkx", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_fsr.mcasp1_fsx", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_axr1.mcasp1_axr0", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_ahclkx.mcasp1_axr1", OMAP_MUX_MODE3 |
AM33XX_PIN_INPUT_PULLDOWN},
{NULL, 0},
};

static void suart0_pin_init(int evm_id, int profile)
{
/*config mcasp1*/
setup_pin_mux(mcasp1_pin_mux);

/*config suart0*/
setup_pin_mux(suart0_pin_mux);
return;
}

不知道我这样配对不对,还有我在am335x_pru_suart_probe中看到

PINMUX1 = ioremap(0x44E108C8,1);
iowrite32((3 | (1 << 5)),PINMUX1);

PINMUX2 = ioremap(0x44E108CC,1);
iowrite32(4,PINMUX2);

不知道这又是配什么的


Viewing all articles
Browse latest Browse all 21822

Trending Articles