diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/imx31/app.lds | 2 | ||||
-rw-r--r-- | firmware/target/arm/imx31/boot.lds | 3 | ||||
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/imx31/sdma_script_code.h | 2 |
4 files changed, 3 insertions, 6 deletions
diff --git a/firmware/target/arm/imx31/app.lds b/firmware/target/arm/imx31/app.lds index ebfd2e9c60..0325f89b66 100644 --- a/firmware/target/arm/imx31/app.lds +++ b/firmware/target/arm/imx31/app.lds | |||
@@ -111,7 +111,7 @@ SECTIONS | |||
111 | . = ALIGN(4); | 111 | . = ALIGN(4); |
112 | _initstart = .; | 112 | _initstart = .; |
113 | *(.init) | 113 | *(.init) |
114 | *(.sdmacode) | 114 | *(.initdata) |
115 | _initend = .; | 115 | _initend = .; |
116 | } > INIT AT> DRAM | 116 | } > INIT AT> DRAM |
117 | 117 | ||
diff --git a/firmware/target/arm/imx31/boot.lds b/firmware/target/arm/imx31/boot.lds index 6030044c85..03b92c8dea 100644 --- a/firmware/target/arm/imx31/boot.lds +++ b/firmware/target/arm/imx31/boot.lds | |||
@@ -53,9 +53,6 @@ SECTIONS | |||
53 | *(.irodata) | 53 | *(.irodata) |
54 | *(.idata) | 54 | *(.idata) |
55 | *(.data*) | 55 | *(.data*) |
56 | . = ALIGN(0x4); | ||
57 | *(.sdmacode) | ||
58 | . = ALIGN(0x4); | ||
59 | _dataend = . ; | 56 | _dataend = . ; |
60 | } > DRAM | 57 | } > DRAM |
61 | 58 | ||
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c index 37491907e3..978c7f77cd 100644 --- a/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c | |||
@@ -139,7 +139,7 @@ void system_exception_wait(void) | |||
139 | 139 | ||
140 | void INIT_ATTR system_init(void) | 140 | void INIT_ATTR system_init(void) |
141 | { | 141 | { |
142 | static const int disable_clocks[] = | 142 | static const enum IMX31_CG_LIST disable_clocks[] INITDATA_ATTR = |
143 | { | 143 | { |
144 | /* CGR0 */ | 144 | /* CGR0 */ |
145 | CG_SD_MMC1, | 145 | CG_SD_MMC1, |
diff --git a/firmware/target/arm/imx31/sdma_script_code.h b/firmware/target/arm/imx31/sdma_script_code.h index 82826e0bce..ee61b2d116 100644 --- a/firmware/target/arm/imx31/sdma_script_code.h +++ b/firmware/target/arm/imx31/sdma_script_code.h | |||
@@ -294,7 +294,7 @@ | |||
294 | /*! | 294 | /*! |
295 | * Code download | 295 | * Code download |
296 | */ | 296 | */ |
297 | static __attribute__((aligned(4), section(".sdmacode"))) | 297 | static __attribute__((aligned(4))) INITDATA_ATTR |
298 | const short sdma_code_2[RAM_CODE_SIZE_2] = | 298 | const short sdma_code_2[RAM_CODE_SIZE_2] = |
299 | { | 299 | { |
300 | 0x0870, 0x0011, 0x5010, 0xc0ec, 0x7d61, 0x5ac0, 0x5bc8, 0x5ef8, | 300 | 0x0870, 0x0011, 0x5010, 0xc0ec, 0x7d61, 0x5ac0, 0x5bc8, 0x5ef8, |