forked from len0rd/rockbox
Get rid of some more inl/outl. 0x70000084 seems to be GPO32_ENABLE.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15477 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4ef3e821cb
commit
03dd35db0e
8 changed files with 9 additions and 8 deletions
|
@ -334,6 +334,7 @@
|
||||||
|
|
||||||
/* 32 bit GPO port */
|
/* 32 bit GPO port */
|
||||||
#define GPO32_VAL (*(volatile unsigned long *)(0x70000080))
|
#define GPO32_VAL (*(volatile unsigned long *)(0x70000080))
|
||||||
|
#define GPO32_ENABLE (*(volatile unsigned long *)(0x70000084))
|
||||||
|
|
||||||
/* IIS */
|
/* IIS */
|
||||||
#define IISDIV (*(volatile unsigned long*)(0x60006080))
|
#define IISDIV (*(volatile unsigned long*)(0x60006080))
|
||||||
|
|
|
@ -43,6 +43,6 @@ inline void __backlight_on(void)
|
||||||
inline void __backlight_off(void)
|
inline void __backlight_off(void)
|
||||||
{
|
{
|
||||||
/* fades backlight off on 4g */
|
/* fades backlight off on 4g */
|
||||||
outl(inl(0x70000084) & ~0x2000000, 0x70000084);
|
GPO32_ENABLE &= ~0x2000000;
|
||||||
outl(0x80000000, 0x7000a010);
|
outl(0x80000000, 0x7000a010);
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ void lcd_init_device(void)
|
||||||
|
|
||||||
GPIOB_ENABLE |= 0x4; /* B02 enable */
|
GPIOB_ENABLE |= 0x4; /* B02 enable */
|
||||||
GPIOB_ENABLE |= 0x8; /* B03 enable */
|
GPIOB_ENABLE |= 0x8; /* B03 enable */
|
||||||
outl(inl(0x70000084) | 0x2000000, 0x70000084); /* D01 enable */
|
GPO32_ENABLE |= 0x2000000; /* D01 enable */
|
||||||
GPO32_VAL |= 0x2000000; /* D01 =1 */
|
GPO32_VAL |= 0x2000000; /* D01 =1 */
|
||||||
|
|
||||||
DEV_EN |= 0x20000; /* PWM enable */
|
DEV_EN |= 0x20000; /* PWM enable */
|
||||||
|
|
|
@ -170,7 +170,7 @@ void lcd_init_device(void)
|
||||||
#ifdef IPOD_4G
|
#ifdef IPOD_4G
|
||||||
GPIOB_ENABLE |= 0x4; /* B02 enable */
|
GPIOB_ENABLE |= 0x4; /* B02 enable */
|
||||||
GPIOB_ENABLE |= 0x8; /* B03 enable */
|
GPIOB_ENABLE |= 0x8; /* B03 enable */
|
||||||
outl(inl(0x70000084) | 0x2000000, 0x70000084); /* D01 enable */
|
GPO32_ENABLE |= 0x2000000; /* D01 enable */
|
||||||
GPO32_VAL |= 0x2000000; /* D01 =1 */
|
GPO32_VAL |= 0x2000000; /* D01 =1 */
|
||||||
|
|
||||||
DEV_EN |= 0x20000; /* PWM enable */
|
DEV_EN |= 0x20000; /* PWM enable */
|
||||||
|
|
|
@ -1163,7 +1163,7 @@ int ata_init(void)
|
||||||
/* init controller */
|
/* init controller */
|
||||||
outl(inl(0x70000088) & ~(0x4), 0x70000088);
|
outl(inl(0x70000088) & ~(0x4), 0x70000088);
|
||||||
outl(inl(0x7000008c) & ~(0x4), 0x7000008c);
|
outl(inl(0x7000008c) & ~(0x4), 0x7000008c);
|
||||||
outl(inl(0x70000084) | 0x4, 0x70000084);
|
GPO32_ENABLE |= 0x4;
|
||||||
|
|
||||||
GPIOG_ENABLE |= (0x3 << 5);
|
GPIOG_ENABLE |= (0x3 << 5);
|
||||||
GPIOG_OUTPUT_EN |= (0x3 << 5);
|
GPIOG_OUTPUT_EN |= (0x3 << 5);
|
||||||
|
|
|
@ -86,7 +86,7 @@ bool tuner_power(bool status)
|
||||||
{
|
{
|
||||||
/* init mystery amplification device */
|
/* init mystery amplification device */
|
||||||
#if defined(SANSA_E200)
|
#if defined(SANSA_E200)
|
||||||
outl(inl(0x70000084) | 0x1, 0x70000084);
|
GPO32_ENABLE |= 0x1;
|
||||||
#else /* SANSA_C200 */
|
#else /* SANSA_C200 */
|
||||||
DEV_INIT2 &= ~0x800;
|
DEV_INIT2 &= ~0x800;
|
||||||
#endif
|
#endif
|
||||||
|
@ -121,7 +121,7 @@ bool tuner_power(bool status)
|
||||||
|
|
||||||
/* turn off mystery amplification device */
|
/* turn off mystery amplification device */
|
||||||
#if defined (SANSA_E200)
|
#if defined (SANSA_E200)
|
||||||
outl(inl(0x70000084) & ~0x1, 0x70000084);
|
GPO32_ENABLE &= ~0x1;
|
||||||
#else
|
#else
|
||||||
DEV_INIT2 |= 0x800;
|
DEV_INIT2 |= 0x800;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -370,7 +370,7 @@ void lcd_init_device(void)
|
||||||
/* Init GPIO ports */
|
/* Init GPIO ports */
|
||||||
lcd_init_gpio();
|
lcd_init_gpio();
|
||||||
/* Controller init */
|
/* Controller init */
|
||||||
outl((inl(0x70000084) | (1 << 28)), 0x70000084);
|
GPO32_ENABLE |= (1 << 28);
|
||||||
GPO32_VAL &= ~(1 << 28);
|
GPO32_VAL &= ~(1 << 28);
|
||||||
DEV_INIT1 = ( (DEV_INIT1 & 0x03ffffff) | (0x15 << 26) );
|
DEV_INIT1 = ( (DEV_INIT1 & 0x03ffffff) | (0x15 << 26) );
|
||||||
outl(((inl(0x70000014) & (0x0fffffff)) | (0x5 << 28)), 0x70000014);
|
outl(((inl(0x70000014) & (0x0fffffff)) | (0x5 << 28)), 0x70000014);
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
void usb_init_device(void)
|
void usb_init_device(void)
|
||||||
{
|
{
|
||||||
int r0;
|
int r0;
|
||||||
outl(inl(0x70000084) | 0x200, 0x70000084);
|
GPO32_ENABLE |= 0x200;
|
||||||
|
|
||||||
outl(inl(0x7000002C) | 0x3000000, 0x7000002C);
|
outl(inl(0x7000002C) | 0x3000000, 0x7000002C);
|
||||||
DEV_EN |= DEV_USB;
|
DEV_EN |= DEV_USB;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue