summaryrefslogtreecommitdiffstats
path: root/bootloader/iriver_h300.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2007-11-20 12:09:59 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2007-11-20 12:09:59 +0000
commit21ac3110f1fac89ccb93c3901dc568e13b3a612c (patch)
treeac1dc7450f3ca7cae891805db5dade9c2a822768 /bootloader/iriver_h300.c
parent41a67a7e905ff0ef7b968353bfe37c6865fc146e (diff)
downloadrockbox-21ac3110f1fac89ccb93c3901dc568e13b3a612c.tar.gz
rockbox-21ac3110f1fac89ccb93c3901dc568e13b3a612c.tar.bz2
rockbox-21ac3110f1fac89ccb93c3901dc568e13b3a612c.zip
* dont compile audio codec drivers for bootloader, as we dont need them -> saves time
* dont include uda1380 in bootloaders * fix to get rid of a nasty humming sound during is not uda1380 specific but iriver specific and so put the fix into the bootloader. An other option was to put audiohw_reset() into target tree... but i want to get rid of audiohw_reset git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15721 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/iriver_h300.c')
-rw-r--r--bootloader/iriver_h300.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/bootloader/iriver_h300.c b/bootloader/iriver_h300.c
index 5b742044eb..1840966aa1 100644
--- a/bootloader/iriver_h300.c
+++ b/bootloader/iriver_h300.c
@@ -41,7 +41,6 @@
#include "power.h"
#include "powermgmt.h"
#include "file.h"
-#include "uda1380.h"
#include "pcf50606.h"
#include "common.h"
#include "rbunicode.h"
@@ -143,7 +142,8 @@ void main(void)
int data;
bool rtc_alarm;
int button;
-
+ int mask;
+
/* We want to read the buttons as early as possible, before the user
releases the ON button */
@@ -173,9 +173,13 @@ void main(void)
__reset_cookie();
power_off();
}
-
- audiohw_reset();
-
+
+ /* get rid of a nasty humming sound during boot */
+ mask = set_irq_level(HIGHEST_IRQ_LEVEL);
+ pcf50606_write(0x3b, 0x00); /* GPOOD2 high Z */
+ pcf50606_write(0x3b, 0x07); /* GPOOD2 low */
+ set_irq_level(mask);
+
/* Start with the main backlight OFF. */
_backlight_init();
_backlight_off();