summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/power-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-02-28 22:44:57 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-02-28 22:45:30 +0100
commitc4450b9baf0b09d1da054f282603573547b7ad14 (patch)
tree2f489e6f7441dd5c36abbf778d5dcbf325ec7357 /firmware/target/arm/imx233/power-imx233.h
parentc735ff2ac0972a9f7563ed68192c41dbe3bbbea4 (diff)
downloadrockbox-c4450b9baf0b09d1da054f282603573547b7ad14.tar.gz
rockbox-c4450b9baf0b09d1da054f282603573547b7ad14.tar.bz2
rockbox-c4450b9baf0b09d1da054f282603573547b7ad14.zip
imx233: print power up source in the bootloader
Change-Id: I9ff4738b7efdb25ab57b0061f60c7fde58b9a0b5
Diffstat (limited to 'firmware/target/arm/imx233/power-imx233.h')
-rw-r--r--firmware/target/arm/imx233/power-imx233.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/power-imx233.h b/firmware/target/arm/imx233/power-imx233.h
index 3a2452ce19..b38f9e576b 100644
--- a/firmware/target/arm/imx233/power-imx233.h
+++ b/firmware/target/arm/imx233/power-imx233.h
@@ -157,6 +157,8 @@
#define HW_POWER_STS__CHRGSTS (1 << 11)
#define HW_POWER_STS__PSWITCH_BP 20
#define HW_POWER_STS__PSWITCH_BM (3 << 20)
+#define HW_POWER_STS__PWRUP_SOURCE_BP 24
+#define HW_POWER_STS__PWRUP_SOURCE_BM (0x3f << 24)
#define HW_POWER_BATTMONITOR (*(volatile uint32_t *)(HW_POWER_BASE + 0xe0))
#define HW_POWER_BATTMONITOR__ENBATADJ (1 << 10)