예제 #1
0
static int ata_init(struct platform_device *pdev)
{
	/* Configure the pins */
	gpio_ata_active();

	return 0;
}
예제 #2
0
static int ata_init(struct platform_device *pdev)
{
	/* Configure the pins */

	gpio_ata_active();

	/* Enable the clock */

	ata_clk = clk_get(&pdev->dev, "ata_clk.0");
	clk_enable(ata_clk);

	return 0;
}
예제 #3
0
static int ata_init(struct platform_device *pdev)
{
    /* Select group B pins and enable the external MUX */

    __raw_writew(PBC_BCTRL2_ATA_SEL, PBC_BASE_ADDRESS + PBC_BCTRL2_SET);
    __raw_writew(PBC_BCTRL2_ATA_EN, PBC_BASE_ADDRESS + PBC_BCTRL2_CLEAR);

    /* Configure the pins */

    gpio_ata_active();

    /* Enable the clock */

    ata_clk = clk_get(&pdev->dev, "ata_clk.0");
    clk_enable(ata_clk);

    return 0;
}