mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Non-functional change - use the firmware __backlight_on() function instead of writing directly to the ports to turn the backlight on
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13128 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
27cbf6bcea
commit
dbcd321813
1 changed files with 2 additions and 22 deletions
|
@ -35,7 +35,7 @@
|
||||||
#include "disk.h"
|
#include "disk.h"
|
||||||
#include "font.h"
|
#include "font.h"
|
||||||
#include "adc.h"
|
#include "adc.h"
|
||||||
#include "backlight.h"
|
#include "backlight-target.h"
|
||||||
#include "panic.h"
|
#include "panic.h"
|
||||||
#include "power.h"
|
#include "power.h"
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
|
@ -237,27 +237,7 @@ void* main(void)
|
||||||
|
|
||||||
/* Turn on the backlight */
|
/* Turn on the backlight */
|
||||||
|
|
||||||
#if CONFIG_BACKLIGHT==BL_IPOD4G
|
__backlight_on();
|
||||||
/* brightness full */
|
|
||||||
outl(0x80000000 | (0xff << 16), 0x7000a010);
|
|
||||||
|
|
||||||
/* set port B03 on */
|
|
||||||
outl(((0x100 | 1) << 3), 0x6000d824);
|
|
||||||
|
|
||||||
#elif CONFIG_BACKLIGHT==BL_IPODMINI
|
|
||||||
/* set port B03 on */
|
|
||||||
outl(((0x100 | 1) << 3), 0x6000d824);
|
|
||||||
|
|
||||||
#elif CONFIG_BACKLIGHT==BL_IPODNANO
|
|
||||||
|
|
||||||
/* set port B03 on */
|
|
||||||
outl(((0x100 | 1) << 3), 0x6000d824);
|
|
||||||
|
|
||||||
/* set port L07 on */
|
|
||||||
GPIOL_OUTPUT_VAL = ((0x100 | 1) << 7);
|
|
||||||
#elif CONFIG_BACKLIGHT==BL_IPOD3G
|
|
||||||
outl(inl(IPOD_LCD_BASE) | 0x2, IPOD_LCD_BASE);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TMP_IPOD_HW_REVISION = IPOD_HW_REVISION;
|
TMP_IPOD_HW_REVISION = IPOD_HW_REVISION;
|
||||||
ipod_hw_rev = IPOD_HW_REVISION;
|
ipod_hw_rev = IPOD_HW_REVISION;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue