From b85b6be3aa05510a1aca173a6f5a762c4448fdae Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 15 Oct 2007 21:16:50 +0000 Subject: Coldfire targets: enable buffered writes by default. Speeds up all sorts of I/O that writes to ports: LCD update (except the functions using DMA on H300), ATA writes, .... Some timings had to be adjusted for the new configuration. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15129 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iriver/h100/lcd-as-h100.S | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'firmware/target/coldfire/iriver/h100/lcd-as-h100.S') diff --git a/firmware/target/coldfire/iriver/h100/lcd-as-h100.S b/firmware/target/coldfire/iriver/h100/lcd-as-h100.S index 1605b210c1..c7509871fc 100644 --- a/firmware/target/coldfire/iriver/h100/lcd-as-h100.S +++ b/firmware/target/coldfire/iriver/h100/lcd-as-h100.S @@ -29,8 +29,8 @@ lcd_write_command: move.l (4,%sp),%d0 - lea MBAR2,%a1 - move.l #~8,%d1 + lea MBAR2,%a1 + move.l #~8,%d1 and.l %d1,(0xb4,%a1) move.w %d0,0xf0000000 rts @@ -77,19 +77,19 @@ lcd_write_command_ex: lcd_write_data: move.l (4,%sp),%a0 /* Data pointer */ move.l (8,%sp),%d0 /* Length */ - lea MBAR2,%a1 + lea MBAR2,%a1 moveq #8,%d1 or.l %d1,(0xb4,%a1) lea 0xf0000000,%a1 .loop: - /* When running in IRAM, this loop takes 7 cycles plus the LCD write. - The 7 cycles are necessary to follow the LCD timing specs + /* When running in IRAM, this loop takes 10 cycles plus the LCD write. + The 10 cycles are necessary to follow the LCD timing specs at 140MHz */ + nop /* 3(0/0) */ move.b (%a0)+,%d1 /* 3(1/0) */ move.w %d1,(%a1) /* 1(0/1) */ subq.l #1,%d0 /* 1(0/0) */ - nop /* 1(0/0) */ bne .loop /* 2(0/0) */ rts .wd_end: -- cgit v1.2.3