summaryrefslogtreecommitdiffstats
path: root/flash
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-11-20 01:21:53 +0000
committerJens Arnold <amiconn@rockbox.org>2004-11-20 01:21:53 +0000
commitb7638be390130f9e8ebbea4fa66038ce65c95234 (patch)
treee64d8e25013c8078d4ec3c7e6ad0ab754f22aff3 /flash
parent4820177214729870d6c0a4879bbe41855f3d3671 (diff)
downloadrockbox-b7638be390130f9e8ebbea4fa66038ce65c95234.tar.gz
rockbox-b7638be390130f9e8ebbea4fa66038ce65c95234.tar.bz2
rockbox-b7638be390130f9e8ebbea4fa66038ce65c95234.zip
Fix: read the correct registers for player HD spindown
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5447 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'flash')
-rw-r--r--flash/uart_boot/uart_boot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flash/uart_boot/uart_boot.c b/flash/uart_boot/uart_boot.c
index f2047d8987..40c3682091 100644
--- a/flash/uart_boot/uart_boot.c
+++ b/flash/uart_boot/uart_boot.c
@@ -246,11 +246,11 @@ int main(int argc, char* argv[])
}
else
{ // new Players have disk power control on PB4
- reg = ReadHalfword(serial_handle, 0x05FFFFC4); // PBIOR
+ reg = ReadHalfword(serial_handle, 0x05FFFFC6); // PBIOR
reg |= 0x0010; // set bit 4: output
WriteHalfword(serial_handle, 0x05FFFFC6, reg);
- reg = ReadHalfword(serial_handle, 0x05FFFFC0); // PBDR
+ reg = ReadHalfword(serial_handle, 0x05FFFFC2); // PBDR
reg &= ~0x0010; // clear PB4 to power down
WriteHalfword(serial_handle, 0x05FFFFC2, reg);
}