diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-19 15:56:15 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-19 15:56:15 +0000 |
commit | b221d6d4d4d0ade805d249fdd69a8b8b92769268 (patch) | |
tree | 4bf2466a312b51afda062ac1a8c6bbe93619321b /firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c | |
parent | 25491980d6615098bab331fde65006f7c66eadf3 (diff) | |
download | rockbox-b221d6d4d4d0ade805d249fdd69a8b8b92769268.tar.gz rockbox-b221d6d4d4d0ade805d249fdd69a8b8b92769268.zip |
as3525*: use atomic bit manipulation for CCU_IO
fuzev2 button_read_device() runs in interrupt context so writes are atomic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27494 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c index fd6bcb45fc..e87425f762 100644 --- a/firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c +++ b/firmware/target/arm/as3525/sansa-fuzev2/lcd-fuzev2.c | |||
@@ -54,7 +54,7 @@ void lcd_write_reg(int reg, int value) | |||
54 | 54 | ||
55 | static void as3525_dbop_init(void) | 55 | static void as3525_dbop_init(void) |
56 | { | 56 | { |
57 | CCU_IO |= 1<<12; | 57 | bitset32(&CCU_IO, 1<<12); |
58 | CGU_DBOP |= (1<<4) | (1<<3) | AS3525_DBOP_DIV; | 58 | CGU_DBOP |= (1<<4) | (1<<3) | AS3525_DBOP_DIV; |
59 | DBOP_TIMPOL_01 = 0xE12FE12F; | 59 | DBOP_TIMPOL_01 = 0xE12FE12F; |
60 | DBOP_TIMPOL_23 = 0xE12F0036; | 60 | DBOP_TIMPOL_23 = 0xE12F0036; |