Hi Ivan,
In "arch/arm/mach-mx28/device.c, you can see the DieTempHigh is set as 75. If the die temperature is higher than 75.
the battery charging is stopped. You can get the die temperature of your board with maximum charging current and maximum CPU loading at room temperature and set DieTempHigh as the chapter 11.6 Battery Charger of i.MX28 reference manual.
.u8DieTempHigh = 75, /* deg centigrade */
.u8DieTempLow = 65, /* deg centigrade */
Before i.MX28 release Linux 2.6.35.1.1.0, ddi_power_GetBatteryTemp is not implemented. In Linux 2.6.35.1.1.0 release, ddi_power_GetBatteryTemp is implemented. But it only supports thermistor which is used for external temperature sensing. you can reference MeasureInternalBatteryTemperature in ddi_power_battery.c.
But to protect MX28 chip, we don't suggest to change monitorDieTemp to 0.
Regards,
Grace