]> rtime.felk.cvut.cz Git - arc.git/commitdiff
calibration parameter support
authorNiclas <devnull@localhost>
Mon, 29 Nov 2010 12:39:22 +0000 (13:39 +0100)
committerNiclas <devnull@localhost>
Mon, 29 Nov 2010 12:39:22 +0000 (13:39 +0100)
arch/arm/arm_cr4/scripts/linkscript_gcc.ldf
boards/ti_tms570ls/config/Calibration_Settings.h [new file with mode: 0644]
boards/ti_tms570ls/memory.ldf

index 874accbf39bf36dc3047ffd5e1858ef351f2c6d8..6bb18ea73547af1d17f956b1ec7f2866d0bccaf8 100644 (file)
@@ -14,6 +14,8 @@ OUTPUT_FORMAT("elf32-bigarm")
 OUTPUT_ARCH(arm)\r
 ENTRY(Reset_Handler)\r
 \r
+#include "Calibration_Settings.h"\r
+\r
 MEMORY\r
 {\r
 #include "memory.ldf"\r
@@ -66,7 +68,14 @@ SECTIONS
        .cio ALIGN(0x10) : {\r
        \r
        } > ram\r
-\r
+#ifdef CALIBRATION_ACTIVE\r
+       .calibration : AT(ORIGIN(flash_calibration_area_0)) {\r
+               __CALIB_RAM_START = .;\r
+               *(.calibration)\r
+               __CALIB_RAM_END = .;\r
+       } > ram\r
+       __CALIB_ROM_START       = ORIGIN(flash_calibration_area_0);\r
+#endif\r
        .data : AT(ALIGN(LOADADDR(.rodata)+SIZEOF(.rodata),4)) {\r
                _sdata = ALIGN(.,4); \r
                *(.data .data.* .gnu.linkonce.d.* .gnu.linkonce.r.* .eh_frame)\r
diff --git a/boards/ti_tms570ls/config/Calibration_Settings.h b/boards/ti_tms570ls/config/Calibration_Settings.h
new file mode 100644 (file)
index 0000000..90384a0
--- /dev/null
@@ -0,0 +1 @@
+#undef CALIBRATION_ACTIVE\r
index 8746a0333546fd9289d05ec7b8bb72ff59bc010d..4425e0d55c37cbb98e309eb30f3fe04a26dac3b1 100644 (file)
@@ -2,3 +2,4 @@
 intvecs(R) : ORIGIN = 0x0000000, LENGTH = 0x60\r
 flash(R) : ORIGIN = 0x00000060, LENGTH = 2M\r
 ram(RW)  : ORIGIN = 0x08000000, LENGTH = 160K\r
+flash_calibration_area_0(R)    :       ORIGIN = 0x00004000, LENGTH = 48K
\ No newline at end of file