cmd depends on DM_CHARGE_DISPLAY and default y.
Change-Id: I5e685e0020c4aa1da80ffc27e5a576bc8969c3be
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
the bmp file has been processed when reserved equals BMP_PROCESSED_FLAG
Change-Id: I793582cdd4ee5ee2a774c7a0dee8d36c81ed4f4c
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
- use standard dm framework to implement all key drivers;
- all key node to be children and attach to key bus;
- dm key uclass takes over most work;
- reduce a lot of driver code size;
Change-Id: I9ea4515249d493eb4434890b90350f694c07404f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- add amp uclass;
- add a simple rockchip amp driver.
An example for amps dts node configure:
amps {
compatible = "uboot,rockchip-amp";
status = "okay";
amp@0 {
description = "mcu-os1";
partition = "mcu1";
cpu = <0x1>; // this is mpidr!
load = <0x800000>;
entry = <0x800000>;
memory = <0x800000 0x400000>;
};
amp@1 {
......
};
......
};
U-Boot loads "mcu-os1" firmware to "0x800000" address from partiton
"mcu1" for cpu[1], the cpu[1] entry address is 0x800000. And
U-Boot reserve memory from 0x800000 with 0x400000 size in order
to make it invisible for kernel.
Please use rockchip tool "mkkrnlimg" to pack firmware binary, example:
./scripts/mkkrnlimg mcu-os1.bin mcu-os1.img
Change-Id: I127d5d9f460ec0c1812a76fb4c3702e82f21c9a6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The under-voltage protection will shutdown the LDO3 and reset the PMIC.
Change-Id: Ic84c7ad1a2eed8c1f983e761988ffb903fc878af
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
The sd card power is enabled when PWREN is set low by rockchip hardware design.
Change-Id: I4fb54235bd5235030146f77be1e07dc4e729ae06
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This adds a simple driver for reading the OTP block of the PX30.
Change-Id: Ic2c0f4b0886808af87c826e8d0045e5d440521f7
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Add function get_cd to detect storage device directly instead of detect
it by mmc command.
Change-Id: I486dee836c62092baabe40fc6de995904849f91d
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
use rockchip_setup_ddr_param to setup ddr parameter.
The dram_init() and dram_init_banksize() make use of
sdram common code.
Change-Id: Icfc6cbef9fcc128e3a835184b46b89b9b22aab16
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
The data layout for rockchip nandc is:
1024 bytes data + 32 obb + 1024 data + 32 obb ...
The system detect bad block flag locate at 2048, 4096, 8192...
The system checks for bad blocks and gets the wrong bad block.
Add a bad block detect api to check the bad block.
Change-Id: I8b0f2907a851d3bbb4d1b9f5daf21319bfb047d9
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
Fix the following compile error:
drivers/mtd/nand/rockchip_nand.c: In function ‘nand_spl_load_image’:
drivers/mtd/nand/rockchip_nand.c:657:39: error: passing argument 3 of
‘nand_read_skip_bad’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
return nand_read_skip_bad(mtd, offs, &size, NULL, size, (u_char
*)dst);
^
In file included from drivers/mtd/nand/rockchip_nand.c:11:0:
include/nand.h:101:5: note: expected ‘size_t * {aka long unsigned int
*}’ but argument is of type ‘unsigned int *’
int nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t
*length,
Change-Id: I44c97f21c2c2d40a7dcbdab7ddb96a1025949ee4
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
When make with rock_defconfig, compile warning for the
following implicitly defined function are raised due to
a missing include directive:
drivers/usb/phy/rockchip_usb2_phy.c: In function ‘otg_phy_parse’:
drivers/usb/phy/rockchip_usb2_phy.c: 102:10: error:
implicit declaration of function ‘fdt_translate_address’ [-Werror=implicit-function-declaration]
addr = fdt_translate_address(blob, node, reg);
^~~~~~~~~~~~~~~~~~~~~
This change fixes this by including <fdt_support.h>.
And this patch also fixes the following compile error:
drivers/usb/phy/rockchip_usb2_phy.c:96:1: error:
label ‘retry’ defined but not used [-Werror=unused-label]
Change-Id: Ia82d0ff02b0f528ddde8a553d457c6c0cb763680
Signed-off-by: William Wu <william.wu@rock-chips.com>
Since we use the pre-loader public key to verify permanent attribute, then
we do not need to write permanent attribute hash to otp & efuse.
Change-Id: Ic5e19fed2fc9405ab5bc7504dd930fd5f02d847c
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Clears the corresponding interrupt bit of the PI_INT_STATUS
parameter before trigger data training.
Change-Id: Ic25c952a19913cb4332b6cd3405f41474585bfb1
Signed-off-by: YouMin Chen <cym@rock-chips.com>
1.increase the number of read retry, Triggered only when the
readout is wrong, so efficiency affects small
2.add nand buildin ecc support
3.skip ECC error block instead of marking as bad block
4.less debug printing
5.adjust the way of building tables to increase ftl init
Change-Id: I9cbc369472740d472dfad29449d1fd6529cd9877
Signed-off-by: Jon Lin <jon.lin@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>
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>
- 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>