diff options
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/ata-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/ata-imx31.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/ata-imx31.c b/firmware/target/arm/imx31/gigabeat-s/ata-imx31.c index c32dead30a..c941037317 100644 --- a/firmware/target/arm/imx31/gigabeat-s/ata-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/ata-imx31.c | |||
@@ -275,7 +275,7 @@ static unsigned long ata_dma_selected = ATA_DMA_PIO; | |||
275 | static unsigned int get_T(void) | 275 | static unsigned int get_T(void) |
276 | { | 276 | { |
277 | /* T = ATA clock period in nanoseconds */ | 277 | /* T = ATA clock period in nanoseconds */ |
278 | return 1000 * 1000 * 1000 / imx31_clkctl_get_ata_clk(); | 278 | return 1000 * 1000 * 1000 / ccm_get_ata_clk(); |
279 | } | 279 | } |
280 | 280 | ||
281 | static void ata_wait_for_idle(void) | 281 | static void ata_wait_for_idle(void) |
@@ -325,7 +325,7 @@ void ata_reset(void) | |||
325 | void ata_enable(bool on) | 325 | void ata_enable(bool on) |
326 | { | 326 | { |
327 | /* Unconditionally clock module before writing regs */ | 327 | /* Unconditionally clock module before writing regs */ |
328 | imx31_clkctl_module_clock_gating(CG_ATA, CGM_ON_ALL); | 328 | ccm_module_clock_gating(CG_ATA, CGM_ON_RUN_WAIT); |
329 | ata_wait_for_idle(); | 329 | ata_wait_for_idle(); |
330 | 330 | ||
331 | if (on) | 331 | if (on) |
@@ -339,7 +339,7 @@ void ata_enable(bool on) | |||
339 | sleep(HZ/100); | 339 | sleep(HZ/100); |
340 | 340 | ||
341 | /* Disable off - unclock ATA module */ | 341 | /* Disable off - unclock ATA module */ |
342 | imx31_clkctl_module_clock_gating(CG_ATA, CGM_OFF); | 342 | ccm_module_clock_gating(CG_ATA, CGM_OFF); |
343 | } | 343 | } |
344 | } | 344 | } |
345 | 345 | ||