On Friday, April 18, 2014 at 08:05:48 PM, Ian Campbell wrote:
> This adds support for the MMC controller on the Allwinner A20 (sun7i)
> processor.
> 
> Signed-off-by: Henrik Nordstrom <[email protected]>
> Signed-off-by: Luke Leighton <[email protected]>
> Signed-off-by: Oliver Schinagl <[email protected]>
> Signed-off-by: Wills Wang <[email protected]>
> Signed-off-by: Ian Campbell <[email protected]>
> Cc: Stefan Roese <[email protected]>
> Cc: Tom Cubie <[email protected]>
> Cc: Aaron Maoye <[email protected]>
> Cc: Pantelis Antoniou <[email protected]>
[...]

> +static int mmc_clk_io_on(int sdc_no)
> +{
> +     unsigned int pin;
> +     unsigned int rval;
> +     unsigned int pll_clk;
> +     unsigned int divider;
> +     struct sunxi_mmc_host *mmchost = &mmc_host[sdc_no];
> +     struct sunxi_ccm_reg *ccm = (struct sunxi_ccm_reg *)SUNXI_CCM_BASE;
> +
> +     debug("init mmc %d clock and io\n", sdc_no);
> +
> +     /* config gpio */
> +     switch (sdc_no) {
> +     case 0:
> +             /* D1-PF0, D0-PF1, CLK-PF2, CMD-PF3, D3-PF4, D4-PF5 */
> +             for (pin = SUNXI_GPF(0); pin <= SUNXI_GPF(5); pin++) {
> +                     sunxi_gpio_set_cfgpin(pin, SUNXI_GPF0_SDC0);
> +                     sunxi_gpio_set_pull(pin, SUNXI_GPIO_PULL_UP);
> +                     sunxi_gpio_set_drv(pin, 2);
> +             }
> +             break;

Pinmux config is part of board files , not part of driver.
[...]

Best regards,
Marek Vasut

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to