From 3c58f5d0269dbbea74d0a225b465792b299bd48d Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Sat, 1 Mar 2008 17:52:26 +0000 Subject: [PATCH] code police: add some missing trailing zeroes to remove possible confusion. No functional change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16466 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iriver/ata-iriver.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/firmware/target/coldfire/iriver/ata-iriver.c b/firmware/target/coldfire/iriver/ata-iriver.c index 82dae32a97..bab08a652b 100644 --- a/firmware/target/coldfire/iriver/ata-iriver.c +++ b/firmware/target/coldfire/iriver/ata-iriver.c @@ -36,10 +36,10 @@ void ata_reset(void) void ata_enable(bool on) { if(on) - and_l(~0x0040000, &GPIO_OUT); + and_l(~0x00040000, &GPIO_OUT); else - or_l(0x0040000, &GPIO_OUT); - + or_l(0x00040000, &GPIO_OUT); + or_l(0x00040000, &GPIO_ENABLE); or_l(0x00040000, &GPIO_FUNCTION); } @@ -53,11 +53,11 @@ void ata_device_init(void) { #ifdef HAVE_ATA_LED_CTRL /* Enable disk LED & ISD chip power control */ - and_l(~0x0000240, &GPIO_OUT); - or_l(0x00000240, &GPIO_ENABLE); - or_l(0x00000200, &GPIO_FUNCTION); + and_l(~0x00000240, &GPIO_OUT); + or_l( 0x00000240, &GPIO_ENABLE); + or_l( 0x00000200, &GPIO_FUNCTION); #endif - + /* ATA reset */ or_l(0x00080000, &GPIO_OUT); or_l(0x00080000, &GPIO_ENABLE);