mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
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
This commit is contained in:
parent
7d81e7c866
commit
3c58f5d026
1 changed files with 7 additions and 7 deletions
|
|
@ -36,10 +36,10 @@ void ata_reset(void)
|
||||||
void ata_enable(bool on)
|
void ata_enable(bool on)
|
||||||
{
|
{
|
||||||
if(on)
|
if(on)
|
||||||
and_l(~0x0040000, &GPIO_OUT);
|
and_l(~0x00040000, &GPIO_OUT);
|
||||||
else
|
else
|
||||||
or_l(0x0040000, &GPIO_OUT);
|
or_l(0x00040000, &GPIO_OUT);
|
||||||
|
|
||||||
or_l(0x00040000, &GPIO_ENABLE);
|
or_l(0x00040000, &GPIO_ENABLE);
|
||||||
or_l(0x00040000, &GPIO_FUNCTION);
|
or_l(0x00040000, &GPIO_FUNCTION);
|
||||||
}
|
}
|
||||||
|
|
@ -53,11 +53,11 @@ void ata_device_init(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ATA_LED_CTRL
|
#ifdef HAVE_ATA_LED_CTRL
|
||||||
/* Enable disk LED & ISD chip power control */
|
/* Enable disk LED & ISD chip power control */
|
||||||
and_l(~0x0000240, &GPIO_OUT);
|
and_l(~0x00000240, &GPIO_OUT);
|
||||||
or_l(0x00000240, &GPIO_ENABLE);
|
or_l( 0x00000240, &GPIO_ENABLE);
|
||||||
or_l(0x00000200, &GPIO_FUNCTION);
|
or_l( 0x00000200, &GPIO_FUNCTION);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ATA reset */
|
/* ATA reset */
|
||||||
or_l(0x00080000, &GPIO_OUT);
|
or_l(0x00080000, &GPIO_OUT);
|
||||||
or_l(0x00080000, &GPIO_ENABLE);
|
or_l(0x00080000, &GPIO_ENABLE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue