summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/system-imx31.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/system-imx31.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/system-imx31.c10
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 d62b31d58f..a8af583212 100644
--- a/firmware/target/arm/imx31/gigabeat-s/system-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/system-imx31.c
@@ -115,6 +115,16 @@ void imx31_regmod32(volatile uint32_t *reg_p, uint32_t value, uint32_t mask)
115 restore_interrupt(oldlevel); 115 restore_interrupt(oldlevel);
116} 116}
117 117
118void imx31_regset32(volatile uint32_t *reg_p, uint32_t mask)
119{
120 imx31_regmod32(reg_p, mask, mask);
121}
122
123void imx31_regclr32(volatile uint32_t *reg_p, uint32_t mask)
124{
125 imx31_regmod32(reg_p, 0, mask);
126}
127
118#ifdef BOOTLOADER 128#ifdef BOOTLOADER
119void system_prepare_fw_start(void) 129void system_prepare_fw_start(void)
120{ 130{