forked from len0rd/rockbox
The iPod Video has the HW version at a different address in ROM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15338 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c266204aec
commit
d3e101bd11
1 changed files with 10 additions and 2 deletions
|
@ -54,11 +54,19 @@ bool is_new_player(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef IPOD_ARCH
|
#ifdef IPOD_ARCH
|
||||||
|
#ifdef IPOD_VIDEO
|
||||||
|
#ifdef BOOTLOADER
|
||||||
|
#define IPOD_HW_REVISION (*((unsigned long*)(0x0000405c)))
|
||||||
|
#else /* ROM is remapped */
|
||||||
|
#define IPOD_HW_REVISION (*((unsigned long*)(0x2000405c)))
|
||||||
|
#endif
|
||||||
|
#else /* !IPOD_VIDEO */
|
||||||
#ifdef BOOTLOADER
|
#ifdef BOOTLOADER
|
||||||
#define IPOD_HW_REVISION (*((unsigned long*)(0x00002084)))
|
#define IPOD_HW_REVISION (*((unsigned long*)(0x00002084)))
|
||||||
#else
|
#else /* ROM is remapped */
|
||||||
#define IPOD_HW_REVISION (*((unsigned long*)(0x20002084)))
|
#define IPOD_HW_REVISION (*((unsigned long*)(0x20002084)))
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif /* !IPOD_VIDEO */
|
||||||
|
#endif /* IPOD_ARCH */
|
||||||
|
|
||||||
#endif /* HWCOMPAT_H */
|
#endif /* HWCOMPAT_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue