summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/tcc77x
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2008-09-16 08:09:44 +0000
committerRob Purchase <shotofadds@rockbox.org>2008-09-16 08:09:44 +0000
commit1a08f46329e9f6d7bd55a8a9ad45db27df8a7593 (patch)
tree693d2bd43f42c2d1ba35584e3a0b08f4fcef5969 /firmware/target/arm/tcc77x
parent9cf7ef68c9747fe1baa16a80e28d8cb783ea63f5 (diff)
downloadrockbox-1a08f46329e9f6d7bd55a8a9ad45db27df8a7593.tar.gz
rockbox-1a08f46329e9f6d7bd55a8a9ad45db27df8a7593.tar.bz2
rockbox-1a08f46329e9f6d7bd55a8a9ad45db27df8a7593.zip
Commit fs#9404 (iAudio 7 updates by vitja). Also fixes play/pause behaviour on D2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18528 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc77x')
-rw-r--r--firmware/target/arm/tcc77x/crt0.S9
-rw-r--r--firmware/target/arm/tcc77x/iaudio7/ata2501.c4
-rw-r--r--firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c10
-rw-r--r--firmware/target/arm/tcc77x/iaudio7/power-iaudio7.c1
4 files changed, 21 insertions, 3 deletions
diff --git a/firmware/target/arm/tcc77x/crt0.S b/firmware/target/arm/tcc77x/crt0.S
index 569930352a..03dc2a9771 100644
--- a/firmware/target/arm/tcc77x/crt0.S
+++ b/firmware/target/arm/tcc77x/crt0.S
@@ -131,6 +131,15 @@ copied_start:
msr cpsr, r0
ldr sp, =fiq_stack
+#ifndef BOOTLOADER
+ /* Load the banked FIQ mode registers with useful values here.
+ These values will be used in the FIQ handler in pcm-telechips.c */
+ .equ DADO_BASE, 0x80000020
+
+ ldr r10, =DADO_BASE
+ ldr r11, =dma_play_data
+#endif
+
/* Let abort and undefined modes use IRQ stack */
mov r0,#0xd7
msr cpsr, r0
diff --git a/firmware/target/arm/tcc77x/iaudio7/ata2501.c b/firmware/target/arm/tcc77x/iaudio7/ata2501.c
index fa165d9d0d..bc39872de6 100644
--- a/firmware/target/arm/tcc77x/iaudio7/ata2501.c
+++ b/firmware/target/arm/tcc77x/iaudio7/ata2501.c
@@ -86,7 +86,7 @@ unsigned short ata2501_read(void)
return ret;
}
-#define ATA2501_TEST
+//#define ATA2501_TEST
#ifdef ATA2501_TEST
#include "lcd.h"
#include "sprintf.h"
@@ -108,7 +108,7 @@ void ata2501_test(void)
while (1) {
unsigned short data;
- int i, line = 0;
+ int line = 0;
data = ata2501_read();
lcd_clear_display();
diff --git a/firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c b/firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c
index bbc20b6860..0ca18bee67 100644
--- a/firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c
+++ b/firmware/target/arm/tcc77x/iaudio7/lcd-iaudio7.c
@@ -31,6 +31,7 @@
#include <cpu.h>
#include <lcd.h>
#include <system-target.h>
+#include <panic.h>
#include "hd66789r.h"
@@ -142,7 +143,7 @@ void lcd_enable(bool on)
if (on) {
_display_on();
-// lcd_call_enable_hook();
+ lcd_call_enable_hook();
} else {
/** Off sequence according to datasheet, p. 130 **/
lcd_write_reg(R_FRAME_CYCLE_CONTROL, 0x0002); /* EQ=0, 18 clks/line */
@@ -242,6 +243,13 @@ void lcd_blit_yuv(unsigned char *const src[3],
int src_x, int src_y, int stride,
int x, int y, int width, int height)
{
+ (void) src;
+ (void) src_x;
+ (void) src_y;
+ (void) stride;
+ (void) x;
+ (void) y;
+
if (!display_on)
return;
diff --git a/firmware/target/arm/tcc77x/iaudio7/power-iaudio7.c b/firmware/target/arm/tcc77x/iaudio7/power-iaudio7.c
index ef012cbbdf..ce7175ef55 100644
--- a/firmware/target/arm/tcc77x/iaudio7/power-iaudio7.c
+++ b/firmware/target/arm/tcc77x/iaudio7/power-iaudio7.c
@@ -73,6 +73,7 @@ void power_touch_panel(bool on)
void ide_power_enable(bool on)
{
+ (void) on;
}
bool ide_powered(void)