summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/button-clip.c3
-rw-r--r--firmware/target/arm/as3525/button-e200v2-fuze.c2
-rw-r--r--firmware/target/arm/ata-nand-telechips.c6
-rw-r--r--firmware/target/arm/imx233/adc-imx233.c2
-rw-r--r--firmware/target/arm/imx233/audioout-imx233.c8
-rw-r--r--firmware/target/arm/imx233/button-lradc-imx233.c6
-rw-r--r--firmware/target/arm/imx233/creative-zen/lcd-zen.c3
-rw-r--r--firmware/target/arm/imx233/dcp-imx233.c4
-rw-r--r--firmware/target/arm/imx233/debug-imx233.c2
-rw-r--r--firmware/target/arm/imx233/dma-imx233.c3
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/system-target.h1
-rw-r--r--firmware/target/arm/rk27xx/ma/audio-ma.c3
-rw-r--r--firmware/target/arm/rk27xx/ma/pca9555-ma.c1
-rw-r--r--firmware/target/arm/rk27xx/pcm-rk27xx.c2
-rw-r--r--firmware/target/arm/s3c2440/debug-s3c2440.c1
-rw-r--r--firmware/target/arm/s3c2440/i2c-s3c2440.c2
-rw-r--r--firmware/target/arm/s3c2440/lcd-s3c2440.c2
-rw-r--r--firmware/target/arm/s5l8700/system-target.h1
-rw-r--r--firmware/target/arm/s5l8702/system-target.h1
-rw-r--r--firmware/target/arm/tcc780x/system-target.h1
-rw-r--r--firmware/target/arm/tms320dm320/debug-dm320.c1
-rw-r--r--firmware/target/arm/tms320dm320/i2c-dm320.c3
22 files changed, 47 insertions, 11 deletions
diff --git a/firmware/target/arm/as3525/button-clip.c b/firmware/target/arm/as3525/button-clip.c
index 2bd472c049..35b5e8af5e 100644
--- a/firmware/target/arm/as3525/button-clip.c
+++ b/firmware/target/arm/as3525/button-clip.c
@@ -20,7 +20,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
+#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "button.h"
#include "as3525v2.h"
#ifndef BOOTLOADER
diff --git a/firmware/target/arm/as3525/button-e200v2-fuze.c b/firmware/target/arm/as3525/button-e200v2-fuze.c
index d8bb90ee98..7c29c74861 100644
--- a/firmware/target/arm/as3525/button-e200v2-fuze.c
+++ b/firmware/target/arm/as3525/button-e200v2-fuze.c
@@ -22,6 +22,7 @@
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "button.h"
#include "backlight.h"
#include "dbop-as3525.h"
@@ -122,4 +123,3 @@ int button_read_device(void)
return btn;
}
-
diff --git a/firmware/target/arm/ata-nand-telechips.c b/firmware/target/arm/ata-nand-telechips.c
index fe1314d35a..b8e572068c 100644
--- a/firmware/target/arm/ata-nand-telechips.c
+++ b/firmware/target/arm/ata-nand-telechips.c
@@ -18,10 +18,12 @@
* KIND, either express or implied.
*
****************************************************************************/
+
+#include <string.h>
+#include "system.h"
+#include "kernel.h"
#include "nand.h"
#include "ata-nand-target.h"
-#include "system.h"
-#include <string.h>
#include "led.h"
#include "panic.h"
#include "nand_id.h"
diff --git a/firmware/target/arm/imx233/adc-imx233.c b/firmware/target/arm/imx233/adc-imx233.c
index 36ac0f4eae..f3b7869159 100644
--- a/firmware/target/arm/imx233/adc-imx233.c
+++ b/firmware/target/arm/imx233/adc-imx233.c
@@ -19,8 +19,10 @@
*
****************************************************************************/
+#include "config.h"
#include "adc-target.h"
#include "system.h"
+#include "kernel.h"
#include "powermgmt-target.h"
#include "lradc-imx233.h"
#include "power-imx233.h"
diff --git a/firmware/target/arm/imx233/audioout-imx233.c b/firmware/target/arm/imx233/audioout-imx233.c
index 26a480d05c..c92804c2d4 100644
--- a/firmware/target/arm/imx233/audioout-imx233.c
+++ b/firmware/target/arm/imx233/audioout-imx233.c
@@ -18,11 +18,15 @@
* KIND, either express or implied.
*
****************************************************************************/
+
+#include <string.h>
+
+#include "config.h"
+#include "kernel.h"
#include "audioout-imx233.h"
#include "clkctrl-imx233.h"
#include "rtc-imx233.h"
#include "pcm_sampr.h"
-#include "string.h"
#include "audio-target.h"
#ifndef IMX233_AUDIO_COUPLING_MODE
@@ -294,4 +298,4 @@ struct imx233_audioout_info_t imx233_audioout_get_info(void)
info.dac = !BF_RD(AUDIOOUT_PWRDN, DAC);
info.capless = BF_RD(AUDIOOUT_PWRDN, CAPLESS);
return info;
-} \ No newline at end of file
+}
diff --git a/firmware/target/arm/imx233/button-lradc-imx233.c b/firmware/target/arm/imx233/button-lradc-imx233.c
index 5e3b7165a6..6bb7f9babe 100644
--- a/firmware/target/arm/imx233/button-lradc-imx233.c
+++ b/firmware/target/arm/imx233/button-lradc-imx233.c
@@ -18,8 +18,12 @@
* KIND, either express or implied.
*
****************************************************************************/
+
+#include <stdlib.h>
+
+#include "cpu.h"
+#include "kernel.h"
#include "button-lradc-imx233.h"
-#include "stdlib.h"
#include "lradc-imx233.h"
#include "pinctrl-imx233.h"
diff --git a/firmware/target/arm/imx233/creative-zen/lcd-zen.c b/firmware/target/arm/imx233/creative-zen/lcd-zen.c
index 7e9e98271c..c653b54848 100644
--- a/firmware/target/arm/imx233/creative-zen/lcd-zen.c
+++ b/firmware/target/arm/imx233/creative-zen/lcd-zen.c
@@ -18,10 +18,12 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include <sys/types.h> /* off_t */
#include <string.h>
#include "cpu.h"
#include "system.h"
+#include "kernel.h"
#include "backlight-target.h"
#include "lcd.h"
#include "lcdif-imx233.h"
@@ -346,4 +348,3 @@ void lcd_update_rect(int x, int y, int w, int h)
}
}
}
-
diff --git a/firmware/target/arm/imx233/dcp-imx233.c b/firmware/target/arm/imx233/dcp-imx233.c
index 8c0c1c4592..c800d890d3 100644
--- a/firmware/target/arm/imx233/dcp-imx233.c
+++ b/firmware/target/arm/imx233/dcp-imx233.c
@@ -18,8 +18,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "dcp-imx233.h"
#include "string.h"
#include "kernel-imx233.h"
@@ -247,4 +249,4 @@ struct imx233_dcp_info_t imx233_dcp_get_info(unsigned flags)
info.csc.enable = HW_DCP_CSCCTRL0 & HW_DCP_CSCCTRL0__ENABLE;
}
return info;
-} \ No newline at end of file
+}
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c
index 55dbe183b4..6fe59cad20 100644
--- a/firmware/target/arm/imx233/debug-imx233.c
+++ b/firmware/target/arm/imx233/debug-imx233.c
@@ -19,7 +19,9 @@
*
****************************************************************************/
+#include "cpu.h"
#include "system.h"
+#include "kernel.h"
#include "dma-imx233.h"
#include "lcd.h"
#include "font.h"
diff --git a/firmware/target/arm/imx233/dma-imx233.c b/firmware/target/arm/imx233/dma-imx233.c
index 81ae5aeb72..6727e9b95b 100644
--- a/firmware/target/arm/imx233/dma-imx233.c
+++ b/firmware/target/arm/imx233/dma-imx233.c
@@ -18,8 +18,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "dma-imx233.h"
#include "lcd.h"
#include "string.h"
@@ -287,4 +289,3 @@ struct imx233_dma_info_t imx233_dma_get_info(unsigned chan, unsigned flags)
s.nr_unaligned = apb_nr_unaligned[chan];
return s;
}
-
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-target.h b/firmware/target/arm/imx31/gigabeat-s/system-target.h
index b12ca13bb5..c08b3acfed 100644
--- a/firmware/target/arm/imx31/gigabeat-s/system-target.h
+++ b/firmware/target/arm/imx31/gigabeat-s/system-target.h
@@ -23,6 +23,7 @@
#include "system-arm.h"
#include "mmu-arm.h"
+#include "kernel.h"
/* High enough for most tasks but low enough for reduced voltage */
#define CPUFREQ_DEFAULT 264000000
diff --git a/firmware/target/arm/rk27xx/ma/audio-ma.c b/firmware/target/arm/rk27xx/ma/audio-ma.c
index f842824c26..6a4da1a4f3 100644
--- a/firmware/target/arm/rk27xx/ma/audio-ma.c
+++ b/firmware/target/arm/rk27xx/ma/audio-ma.c
@@ -19,11 +19,12 @@
*
****************************************************************************/
+#include "system.h"
+#include "kernel.h"
#include "audiohw.h"
#include "df1704.h"
#include "pca9555.h"
#include "i2c-rk27xx.h"
-#include "system.h"
void df1704_set_ml_dir(const int dir)
{
diff --git a/firmware/target/arm/rk27xx/ma/pca9555-ma.c b/firmware/target/arm/rk27xx/ma/pca9555-ma.c
index 328a87e8ca..bec2fb17fa 100644
--- a/firmware/target/arm/rk27xx/ma/pca9555-ma.c
+++ b/firmware/target/arm/rk27xx/ma/pca9555-ma.c
@@ -20,6 +20,7 @@
****************************************************************************/
#include "system.h"
+#include "kernel.h"
#include "i2c-rk27xx.h"
#include "pca9555.h"
diff --git a/firmware/target/arm/rk27xx/pcm-rk27xx.c b/firmware/target/arm/rk27xx/pcm-rk27xx.c
index 4e6b8fe6b6..21feaf6cc4 100644
--- a/firmware/target/arm/rk27xx/pcm-rk27xx.c
+++ b/firmware/target/arm/rk27xx/pcm-rk27xx.c
@@ -19,7 +19,9 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "system.h"
+#include "kernel.h"
#include "audio.h"
#include "string.h"
#include "panic.h"
diff --git a/firmware/target/arm/s3c2440/debug-s3c2440.c b/firmware/target/arm/s3c2440/debug-s3c2440.c
index dcdea65011..de06a43bb9 100644
--- a/firmware/target/arm/s3c2440/debug-s3c2440.c
+++ b/firmware/target/arm/s3c2440/debug-s3c2440.c
@@ -22,6 +22,7 @@
#include "config.h"
#include "cpu.h"
#include "system.h"
+#include "kernel.h"
#include "string.h"
#include <stdbool.h>
#include "button.h"
diff --git a/firmware/target/arm/s3c2440/i2c-s3c2440.c b/firmware/target/arm/s3c2440/i2c-s3c2440.c
index 33c4e3180a..b8fbb19003 100644
--- a/firmware/target/arm/s3c2440/i2c-s3c2440.c
+++ b/firmware/target/arm/s3c2440/i2c-s3c2440.c
@@ -18,7 +18,9 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "system.h"
+#include "kernel.h"
#include "i2c-s3c2440.h"
static struct semaphore i2c_complete; /* Transfer completion signal */
diff --git a/firmware/target/arm/s3c2440/lcd-s3c2440.c b/firmware/target/arm/s3c2440/lcd-s3c2440.c
index 1631e350f3..55e151376b 100644
--- a/firmware/target/arm/s3c2440/lcd-s3c2440.c
+++ b/firmware/target/arm/s3c2440/lcd-s3c2440.c
@@ -19,8 +19,10 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "lcd.h"
#include "lcd-target.h"
diff --git a/firmware/target/arm/s5l8700/system-target.h b/firmware/target/arm/s5l8700/system-target.h
index 170794a999..efd66fe43b 100644
--- a/firmware/target/arm/s5l8700/system-target.h
+++ b/firmware/target/arm/s5l8700/system-target.h
@@ -23,6 +23,7 @@
#include "system-arm.h"
#include "mmu-arm.h"
+#include "kernel.h"
#define CPUFREQ_SLEEP 32768
#define CPUFREQ_MAX (1843200 * 4 * 26 / 1) /* 191692800 Hz */
diff --git a/firmware/target/arm/s5l8702/system-target.h b/firmware/target/arm/s5l8702/system-target.h
index ba05c2f6fb..202ac83051 100644
--- a/firmware/target/arm/s5l8702/system-target.h
+++ b/firmware/target/arm/s5l8702/system-target.h
@@ -23,6 +23,7 @@
#include "system-arm.h"
#include "mmu-arm.h"
+#include "kernel.h"
#define CPUFREQ_SLEEP 32768
#define CPUFREQ_MAX 216000000
diff --git a/firmware/target/arm/tcc780x/system-target.h b/firmware/target/arm/tcc780x/system-target.h
index fe66a6eb68..a369c2fb9a 100644
--- a/firmware/target/arm/tcc780x/system-target.h
+++ b/firmware/target/arm/tcc780x/system-target.h
@@ -23,6 +23,7 @@
#include "system-arm.h"
#include "mmu-arm.h"
+#include "kernel.h" /* TIME_BEFORE */
#define CPUFREQ_DEFAULT 32000000
#define CPUFREQ_NORMAL 48000000
diff --git a/firmware/target/arm/tms320dm320/debug-dm320.c b/firmware/target/arm/tms320dm320/debug-dm320.c
index 89d8d506b3..37e48d16a2 100644
--- a/firmware/target/arm/tms320dm320/debug-dm320.c
+++ b/firmware/target/arm/tms320dm320/debug-dm320.c
@@ -23,6 +23,7 @@
#include "config.h"
#include "cpu.h"
#include "system.h"
+#include "kernel.h"
#include "string.h"
#include <stdbool.h>
#include "button.h"
diff --git a/firmware/target/arm/tms320dm320/i2c-dm320.c b/firmware/target/arm/tms320dm320/i2c-dm320.c
index c2010199e1..629dae394c 100644
--- a/firmware/target/arm/tms320dm320/i2c-dm320.c
+++ b/firmware/target/arm/tms320dm320/i2c-dm320.c
@@ -21,8 +21,9 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "system.h"
-#include "thread.h"
+#include "kernel.h"
#include "i2c-dm320.h"
#ifdef HAVE_SOFTWARE_I2C