diff options
Diffstat (limited to 'arch/cris/arch-v32/boot/compressed/head.S')
| -rw-r--r-- | arch/cris/arch-v32/boot/compressed/head.S | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/arch/cris/arch-v32/boot/compressed/head.S b/arch/cris/arch-v32/boot/compressed/head.S index f86208caf32d..a4a65c5c669e 100644 --- a/arch/cris/arch-v32/boot/compressed/head.S +++ b/arch/cris/arch-v32/boot/compressed/head.S | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | #define ASSEMBLER_MACROS_ONLY | 8 | #define ASSEMBLER_MACROS_ONLY |
| 9 | #include <hwregs/asm/reg_map_asm.h> | 9 | #include <hwregs/asm/reg_map_asm.h> |
| 10 | #include <asm/arch/mach/startup.inc> | 10 | #include <mach/startup.inc> |
| 11 | 11 | ||
| 12 | #define RAM_INIT_MAGIC 0x56902387 | 12 | #define RAM_INIT_MAGIC 0x56902387 |
| 13 | #define COMMAND_LINE_MAGIC 0x87109563 | 13 | #define COMMAND_LINE_MAGIC 0x87109563 |
| @@ -17,7 +17,7 @@ | |||
| 17 | .globl input_data | 17 | .globl input_data |
| 18 | 18 | ||
| 19 | .text | 19 | .text |
| 20 | start: | 20 | _start: |
| 21 | di | 21 | di |
| 22 | 22 | ||
| 23 | ;; Start clocks for used blocks. | 23 | ;; Start clocks for used blocks. |
| @@ -28,7 +28,13 @@ start: | |||
| 28 | beq dram_init_finished | 28 | beq dram_init_finished |
| 29 | nop | 29 | nop |
| 30 | 30 | ||
| 31 | #include "../../mach/dram_init.S" | 31 | #if defined CONFIG_ETRAXFS |
| 32 | #include "../../mach-fs/dram_init.S" | ||
| 33 | #elif defined CONFIG_CRIS_MACH_ARTPEC3 | ||
| 34 | #include "../../mach-a3/dram_init.S" | ||
| 35 | #else | ||
| 36 | #error Only ETRAXFS and ARTPEC-3 supported! | ||
| 37 | #endif | ||
| 32 | 38 | ||
| 33 | dram_init_finished: | 39 | dram_init_finished: |
| 34 | 40 | ||
| @@ -130,4 +136,10 @@ _cmd_line_addr: | |||
| 130 | _boot_source: | 136 | _boot_source: |
| 131 | .dword 0 | 137 | .dword 0 |
| 132 | 138 | ||
| 133 | #include "../../mach/hw_settings.S" | 139 | #if defined CONFIG_ETRAXFS |
| 140 | #include "../../mach-fs/hw_settings.S" | ||
| 141 | #elif defined CONFIG_CRIS_MACH_ARTPEC3 | ||
| 142 | #include "../../mach-a3/hw_settings.S" | ||
| 143 | #else | ||
| 144 | #error Only ETRAXFS and ARTPEC-3 supported! | ||
| 145 | #endif | ||
