diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2011-05-04 18:00:22 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2011-05-04 18:00:22 +0000 |
commit | ffee0b5e94e565f94b7a312bcbee12d932b6e332 (patch) | |
tree | 11bcea325aba3ff18613db58ddf8f3831cfd878e /firmware/target/arm/imx233/system-imx233.c | |
parent | 37a9a200b2ab93f02b8085e78aac91b8ff68419c (diff) | |
download | rockbox-ffee0b5e94e565f94b7a312bcbee12d932b6e332.tar.gz rockbox-ffee0b5e94e565f94b7a312bcbee12d932b6e332.zip |
fuze+: move defines from .c to .h; implement button reading for volume up/down and power
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29822 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/system-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/system-imx233.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c index bcccce194c..aedffd1cf6 100644 --- a/firmware/target/arm/imx233/system-imx233.c +++ b/firmware/target/arm/imx233/system-imx233.c | |||
@@ -30,30 +30,6 @@ | |||
30 | #include "lcd.h" | 30 | #include "lcd.h" |
31 | #include "backlight-target.h" | 31 | #include "backlight-target.h" |
32 | 32 | ||
33 | #define HW_POWER_BASE 0x80044000 | ||
34 | |||
35 | #define HW_POWER_RESET (*(volatile uint32_t *)(HW_POWER_BASE + 0x100)) | ||
36 | #define HW_POWER_RESET__UNLOCK 0x3E770000 | ||
37 | #define HW_POWER_RESET__PWD 0x1 | ||
38 | |||
39 | #define HW_ICOLL_BASE 0x80000000 | ||
40 | |||
41 | #define HW_ICOLL_VECTOR (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x0)) | ||
42 | |||
43 | #define HW_ICOLL_LEVELACK (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x10)) | ||
44 | #define HW_ICOLL_LEVELACK__LEVEL0 0x1 | ||
45 | |||
46 | #define HW_ICOLL_CTRL (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x20)) | ||
47 | #define HW_ICOLL_CTRL__IRQ_FINAL_ENABLE (1 << 16) | ||
48 | #define HW_ICOLL_CTRL__ARM_RSE_MODE (1 << 18) | ||
49 | |||
50 | #define HW_ICOLL_VBASE (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x40)) | ||
51 | #define HW_ICOLL_INTERRUPT(i) (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x120 + (i) * 0x10)) | ||
52 | #define HW_ICOLL_INTERRUPT__PRIORITY_BM 0x3 | ||
53 | #define HW_ICOLL_INTERRUPT__ENABLE 0x4 | ||
54 | #define HW_ICOLL_INTERRUPT__SOFTIRQ 0x8 | ||
55 | #define HW_ICOLL_INTERRUPT__ENFIQ 0x10 | ||
56 | |||
57 | #define default_interrupt(name) \ | 33 | #define default_interrupt(name) \ |
58 | extern __attribute__((weak, alias("UIRQ"))) void name(void) | 34 | extern __attribute__((weak, alias("UIRQ"))) void name(void) |
59 | 35 | ||