Enable the internal thermal monitoring support of AXP20X chips

Hello

The previous patch never detect the enabling of thermal monitoring, this one solve this problem.
Sorry for the resent.

Bests regards

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Solve undefined reference to `memcpy'

Seems to be due to the compiler replacing memcpy with inline code. Patch
from:
http://www.cubieforums.com/index.php/topic,838.msg5065.html#msg5065