Lines Matching refs:mcbsp_cfg
1401 struct omap_mcbsp_reg_cfg mcbsp_cfg;
1409 memset(&mcbsp_cfg, 0, sizeof(struct omap_mcbsp_reg_cfg));
1412 mcbsp_cfg.rcr1 |= (RWDLEN1(spi_cfg->word_length) | RFRLEN1(0));
1413 mcbsp_cfg.xcr1 |= (XWDLEN1(spi_cfg->word_length) | XFRLEN1(0));
1417 mcbsp_cfg.spcr1 |= (1 << 12);
1419 mcbsp_cfg.spcr1 |= (3 << 11);
1423 mcbsp_cfg.pcr0 |= CLKRP;
1425 mcbsp_cfg.pcr0 &= ~CLKRP;
1428 mcbsp_cfg.pcr0 &= ~CLKXP;
1430 mcbsp_cfg.pcr0 |= CLKXP;
1433 mcbsp_cfg.pcr0 &= ~SCLKME;
1434 mcbsp_cfg.srgr2 |= CLKSM;
1438 mcbsp_cfg.pcr0 &= ~FSXP;
1440 mcbsp_cfg.pcr0 |= FSXP;
1443 mcbsp_cfg.pcr0 |= CLKXM;
1444 mcbsp_cfg.srgr1 |= CLKGDV(spi_cfg->clk_div - 1);
1445 mcbsp_cfg.pcr0 |= FSXM;
1446 mcbsp_cfg.srgr2 &= ~FSGM;
1447 mcbsp_cfg.xcr2 |= XDATDLY(1);
1448 mcbsp_cfg.rcr2 |= RDATDLY(1);
1450 mcbsp_cfg.pcr0 &= ~CLKXM;
1451 mcbsp_cfg.srgr1 |= CLKGDV(1);
1452 mcbsp_cfg.pcr0 &= ~FSXM;
1453 mcbsp_cfg.xcr2 &= ~XDATDLY(3);
1454 mcbsp_cfg.rcr2 &= ~RDATDLY(3);
1457 mcbsp_cfg.xcr2 &= ~XPHASE;
1458 mcbsp_cfg.rcr2 &= ~RPHASE;
1460 omap_mcbsp_config(id, &mcbsp_cfg);