* Copyright (C) 2009 ArcCore AB <contact@arccore.com> \r
*/\r
\r
+#include "Calibration_Settings.h"\r
/* Undef sections/keywords */ \r
#undef PPC\r
\r
. = . + ALIGN(8);\r
__DATA_ROM = .;\r
} > flash\r
-\r
- .calibration : AT(ORIGIN(flash_L1_CALIBRATIONPARAMS)) {\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
-\r
+ __CALIB_ROM_START = ORIGIN(flash_calibration_area_0);\r
+#endif\r
.data : AT(ALIGN(LOADADDR(.sbss2)+SIZEOF(.sbss2),4)) {\r
__DATA_RAM = .; *(.data .data.* .gnu.linkonce.d.* .gnu.linkonce.r.* .eh_frame)\r
} > ram\r
/*__DATA_END = ADDR(.sdata)+SIZEOF(.sdata);*/\r
/*__BSS_START = ADDR(.sbss);*/\r
__BSS_START = ADDR(.sbss);\r
-__CALIB_ROM_START = ORIGIN(flash_L1_CALIBRATIONPARAMS);\r
\r
/* _SDA_BASE_ and _SDA2_BASE_ is defined in e500 ABI\r
* Some of the symbols below is used by eabi() that does interesting.\r
--- /dev/null
+#undef CALIBRATION_ACTIVE\r
\r
/* MPC55xx Reset Control Word(RCW) */\r
rcw : ORIGIN = 0x00000000, LENGTH = 0x8\r
+flash_calibration_area_0(R) : ORIGIN = 0x00004000, LENGTH = 32K\r
flash(R) : ORIGIN = 0x00000008, LENGTH = 1M\r
/* 5516S, 48K\r
* 5517S,5516G,5516E, 64K RAM\r
--- /dev/null
+#undef CALIBRATION_ACTIVE\r
\r
/* MPC55xx Reset Control Word(RCW) */\r
rcw : ORIGIN = 0x00000000, LENGTH = 0x8\r
+flash_calibration_area_0(R) : ORIGIN = 0x00004000, LENGTH = 32K\r
flash(R) : ORIGIN = 0x00000008, LENGTH = 1M\r
/* 5516S, 48K\r
* 5517S,5516G,5516E, 64K RAM\r
--- /dev/null
+#undef CALIBRATION_ACTIVE\r
--- /dev/null
+#undef CALIBRATION_ACTIVE\r
\r
/* MPC55xx Reset Control Word(RCW) */\r
rcw : ORIGIN = 0x00000000, LENGTH = 0x8\r
-flash_L1_CALIBRATIONPARAMS(R) : ORIGIN = 0x00004000, LENGTH = 48K\r
+flash_calibration_area_0(R) : ORIGIN = 0x00004000, LENGTH = 48K\r
flash(R) : ORIGIN = 0x00040000, LENGTH = 2M\r
/* 5516S, 48K\r
* 5517S,5516G,5516E, 64K RAM\r
--- /dev/null
+#undef CALIBRATION_ACTIVE\r
\r
/* MPC55xx Reset Control Word(RCW) */\r
rcw : ORIGIN = 0x00000000, LENGTH = 0x8\r
+flash_calibration_area_0(R) : ORIGIN = 0x00004000, LENGTH = 48K\r
flash(R) : ORIGIN = 0x00000008, LENGTH = 0x100000\r
/* 5516S, 48K\r
* 5517S,5516G,5516E, 64K RAM\r
#ifndef CALIBRATIONDATA_H_\r
#define CALIBRATIONDATA_H_\r
\r
+#include "Calibration_Settings.h"\r
+\r
+#ifdef CALIBRATION_ACTIVE\r
/* Section data from linker script. */\r
extern char __CALIB_RAM_START;\r
extern char __CALIB_RAM_END;\r
extern char __CALIB_ROM_START;\r
-\r
#define ARC_DECLARE_CALIB(type, name) type __attribute__((section (".calibration"))) name\r
+#else\r
+#define ARC_DECLARE_CALIB(type, name) const type name\r
+#endif /* CALIBRATION_ACTIVE */\r
+\r
+\r
\r
#endif /* CALIBRATIONDATA_H_ */\r