imx233: print power up source in the bootloader

Change-Id: I9ff4738b7efdb25ab57b0061f60c7fde58b9a0b5
This commit is contained in:
Amaury Pouly 2012-02-28 22:44:57 +01:00
parent c735ff2ac0
commit c4450b9baf
2 changed files with 4 additions and 0 deletions

View file

@ -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)