diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-05-03 15:14:52 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-05-03 15:14:52 +0000 |
commit | 5df4405317890cc4a84edcfe827a765b52a712c9 (patch) | |
tree | c4293ce39c1d3e6be351670179b8fac9761391db /firmware/target/arm/imx31/gigabeat-s/system-imx31.c | |
parent | d0e32119f1a639ab372258e4e3dbb5349bb086ec (diff) |
Gigabeat S: Man it's so loud in here. We have SOUND! Someone please make keymaps consistent; it's rather messy atm.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17327 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/system-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/system-imx31.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-imx31.c b/firmware/target/arm/imx31/gigabeat-s/system-imx31.c index da5026a292..ca82a18fbd 100644 --- a/firmware/target/arm/imx31/gigabeat-s/system-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/system-imx31.c @@ -27,6 +27,16 @@ void system_init(void) gpio_init(); } +void imx31_regmod32(volatile uint32_t *reg_p, uint32_t mask, uint32_t value) +{ + value &= mask; + mask = ~mask; + + int oldlevel = disable_interrupt_save(IRQ_FIQ_STATUS); + *reg_p = (*reg_p & mask) | value; + restore_interrupt(oldlevel); +} + #ifdef BOOTLOADER void system_prepare_fw_start(void) { |