There is a compile error when enable AB config. The error message is
"error: a label can only be part of a statement and a declaration isnot
a statement". Add brackets to fix this error.
Change-Id: I4ec3af984503e35fc1304d08cd7cd8ab587dfb0a
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Since the stderr is not used in uboot, use printf to print the
message.
Change-Id: Ib522609e783acf8f407e2f9fb3805b553c543cba
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Since atags is passed between so many pre-loader, it's better
add hash check for tag.
It compatibles with legacy code and tag data, because 'hash'
is reserved field in old tag data.
Change-Id: I18b4c46f75b2c5a50194c23576e6f1437c83ccf5
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change the CONFIG_FASTBOOT_BUF_SIZE value to 0x4000000.
Change-Id: Ia591a0daba78330b9c407f6eb473751135fd8cdf
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change the CONFIG_FASTBOOT_BUF_SIZE value to 0x4000000
Change-Id: Ic93057bf55b3ad6825650cd734c64826748e4a97
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The CONFIG_FASTBOOT_BUF_ADDR is 0x800800.
The CONFIG_FASTBOOT_BUF_SIZE is 0x4000000.
Change-Id: Ic70898f61daff16caebdfb94a7e40d45b3bd6359
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Enable gpio irq only when child pin irq is request.
Change-Id: I429839c7dcdcb90cfe58738eeb36c7445fb0152b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Using the same name when write key in new formation and old formation
cause ta parse key data error when use key in old formation
Change-Id: I7f83efc3672e903e608d89f7dc214465dc321502
Signed-off-by: Tony Xu <tony.xu@rock-chips.com>
According to eMMC spec, the resp_type of MMC_CMD_WRITE_MULTIPLE_BLOCK
is MMC_RSP_R1 but not MMC_RSP_R1b.
If use MMC_RSP_R1b, this causes rpmb can not work with sdhci drive.
Change-Id: I02ab825a4a526646079be6a7ae27326d1a3b7acf
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Use the sysmem to test fastboot memory is available or not.
Change-Id: I021152827b6948fabd5ea41e111ea20adf43167f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Forbid reading data beyong addr 32MB to protect user data & firmware. Excess
partial is filled with 0xcc. The addr 32MB is quoted from pre-loader.
Change-Id: I96f4fb3bb0d88a309fef20650863011cd9f0dfd9
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
- using IRQ_X() to print message;
- update some comment;
- rename some function;
- add more strict irq sanity;
Change-Id: If5432818d4bc12fc1aa0b8aca6898bbf79dfa9fb
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
It supports charging and charging-full leds which
depends on soc value.
Change-Id: I6b37919c5bedf9b81d388853996cf83c6f75a73a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Under the charging interface,if the rtc alarm is
triggered, boot on the system.
Change-Id: I6a921bd5c6971c45b02b2be84d9d6d79e9b17a36
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
support rtc alarm interrupt and alarm trigger power up.
Change-Id: I7752f173d524f579b57b862d2788296ab1486c14
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>