diff options
author | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:22:50 -0600 |
---|---|---|
committer | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:22:50 -0600 |
commit | a38f2d75e3efd0c8834498b073cf6a893ca51e56 (patch) | |
tree | 67e49c67e8b7d6677ce3729920ead4c4c6bcff3c /arch | |
parent | 346c694b9688a3702e6b1f7251e3f8d3335b0bd3 (diff) |
Bug fix of Bugzilla 363 to enable ATA subsystem clock before
Bug fix of Bugzilla 363 to enable ATA subsystem clock before writing to
ATA subsystem on the linux 2.6.22 kernel for MX31/32 platforms.
http://www.bitshrine.org/gpp/linux-2.6.22-mx-Bug-fix-of-Bugzilla-363-to-enable-ATA-subs.patch
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx3/mx31ads_gpio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-mx3/mx31ads_gpio.c b/arch/arm/mach-mx3/mx31ads_gpio.c index e7836f070748..d73ca5a70718 100644 --- a/arch/arm/mach-mx3/mx31ads_gpio.c +++ b/arch/arm/mach-mx3/mx31ads_gpio.c @@ -1001,6 +1001,9 @@ void gpio_ata_active(void) */ mxc_iomux_set_pad(MX31_PIN_USBH2_STP, PAD_CTL_PKE_NONE); // ATA_DMARQ mxc_iomux_set_pad(MX31_PIN_USBH2_CLK, PAD_CTL_PKE_NONE); // ATA_INTRQ + + printk(KERN_DEBUG "gpio_ata_active: Enable clocks\n"); + mxc_clks_enable(ATA_CLK); } EXPORT_SYMBOL(gpio_ata_active); @@ -1011,7 +1014,9 @@ EXPORT_SYMBOL(gpio_ata_active); */ void gpio_ata_inactive(void) { - __raw_writew(PBC_BCTRL2_ATA_EN, PBC_BASE_ADDRESS + PBC_BCTRL2_SET); + printk(KERN_DEBUG "gpio_ata_inactive: Disable clocks\n"); + mxc_clks_disable(ATA_CLK); + /* * Turn off ATA group B signals */ |