Commit Graph

47625 Commits

Author SHA1 Message Date
Shunqian Zheng f094cb2954 rockchip: add PX3SE kconfig
PX3SE is a variant of RK3128, especially the loader and trust img.

Change-Id: I91f417957b5f3db503fdaa8f2f6c3271f46094b6
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2018-07-26 15:32:43 +08:00
Jian Qiu 9b95292d1a configs: evb-rk3326: enable CONFIG_FASTBOOT_OEM_UNLOCK
Change-Id: I76bffc998986e5e4bd723b8e9649592f5bc1e63f
Signed-off-by: Jian Qiu <qiujian@rock-chips.com>
2018-07-26 15:30:46 +08:00
Shunqian Zheng ce6becde2e config/dts: px3se: Rockusb mode by Vol+ and reset
Enalbe ADC keys to enter Rockusb mode by holding Vol Up
key and reset.

Change-Id: I2f17fccf890424049aff5946f439016ad76ea52d
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2018-07-26 15:19:59 +08:00
shengfei Xu 8a7ae883f7 fuel gauge: rk817: set different input current when different charger is detected
The four power source types that are detected are:
Standard downstream port (SDP)
– This is a computer USB port capable of 500mA.
Charging downstream port (CDP)
- This is typically a powered USB hub capable of 1500mA.
Dedicated charging port (DCP)
- This is a standard wall charger capable of at least 1500mA.
DCP without shorting D+/D-(FLOATING)
- This is a non-standard wall charger capable of at least 1500mA.

Change-Id: Icb3d3c02d9ef5dfbcabf0232743ad057c578dcf4
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2018-07-25 14:36:15 +08:00
Joseph Chen de440615aa make.sh: support specify table to assign index name of loader/trust ini file
add gva-rk3229_defconfig to specify table

Change-Id: I347b4d43fa241f75f7aa95897369174ec6229e3d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-25 14:28:45 +08:00
YouMin Chen 504e252f28 driver: ram: rockhip: px30: add more sdram print info
Change-Id: Idac5f78aec81c4c4a3e45150bf96e48415a1913b
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-07-25 11:08:25 +08:00
YouMin Chen b68c9a795b rockchip: px30: add setting QOS Priority in TPL
Change-Id: I26cbf7c3cd88c27c81f5bd80657348611857ae8d
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-07-25 11:08:25 +08:00
YouMin Chen ebb6c43980 rockchip: board: compulsory execution board_debug_uart_init
Insure if defined CONFIG_SUPPORT_SPL but not use SPL bin,
board_debug_uart_init still have be called.

Change-Id: I2e8a7bf1cfb4e6ec4a916983eb13652afe8c8af2
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-07-25 11:07:43 +08:00
Joseph Chen ad9ba815b1 rockchip: add rk3128x support
Change-Id: I52193b8f78cfc4b88af7959b74f1c0dedcf75b7c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-24 16:40:40 +08:00
Joseph Chen ce99549180 make.sh: add rk3128x support
Change-Id: I44a409e519c520cb6da5088a45b2ae197cda632d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-24 16:40:40 +08:00
Jason Zhu 60f62d2692 mmc: dw_mmc: print a caution when find ciu-sample fail
BUG: If not find ciu-sample, probe will fail. This make
mmc device unusable.

Change-Id: I86310cd2bc84cea5a81b72d103c8947ed4c1b07b
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-07-24 16:15:37 +08:00
Jason Zhu c30a11ade1 configs: evb-rk3326: enable vendor partition
Change-Id: Icfdad9a26d7179d6f2aa2b1e0b82c94a7962bf8e
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-07-24 10:48:30 +08:00
Xing Zheng ef2fbb3d6d arm: dts: rk3308-evb: remove 'mmc-hs200-1_8v' property
Change-Id: I015b542e751db29278af8f9a485894aef8ccf9d5
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-23 20:43:35 +08:00
Wyon Bi 121de4078f video/drm: edp: Move enable video into config_video()
We need to enable video before analogix_dp_is_video_stream_on(),
so we can get the right video stream status.

Change-Id: I43d28791616d6422a614666fe41e7d3bab528ced
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-07-23 11:34:15 +08:00
Joseph Chen b40c07fc2e test: rockchip: compile depends on dm config
Change-Id: I8e3a7a8dedaa4615426b3d059746d2c080b481c0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-23 10:12:05 +08:00
Jason Zhu 16cc62c811 mmc: dw_mmc: support mmc hs200
we can set mmc-hs200-1_8v to the node of emmc
in the dts to support hs200.

Change-Id: I5fa195505b877449864f294564cfc33bcd4202e5
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-07-23 10:09:03 +08:00
Joseph Chen 68995a9bef dm: key: remove deprecated platform_read_key()
Change-Id: I88af911581b94f59504124786cb1adaa82dae12f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:21:21 +08:00
Joseph Chen fd62311e53 power: charge animation: fix i2c failed issue
i2c maybe interrpted by power key interrupt, so we need to
disable local irq when i2c transfer.

Change-Id: Ifd4c1f15ebab25c7fa54e4386c72e5731bc821b4
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:48 +08:00
Joseph Chen 93aee2d903 power: charge animation: fix auto off and optimise images show
- fix auto off screen issue;
- don't call charge_show_bmp() unless image changed;

Change-Id: I6474c8ef55617883da2ba4abb4da240a770e0d93
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:48 +08:00
Joseph Chen 5e80474146 power: charge animation: add poll time to update fuel gauge
Usually, fuel gauge is a i2c device and we had better set a
poll seconds to update it, which can reduce i2c read/write.

Change-Id: I192e8229d3b6b7f8887a38296314e69b9dc30753
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:48 +08:00
Joseph Chen 787a62ebeb power: charge animation: use read_key() to read power key
Change-Id: Id8218f0aa8d192baaa347d6e76ee2d0f002d9c6b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:48 +08:00
Joseph Chen 8c0a5f1c64 configs: rk3328: enable keys
Change-Id: I07e774f925085359084ded1df1623aba1ad6530d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:48 +08:00
Joseph Chen dfd935fcd3 rockchip: add a generic way to read recovery key
use key_read() interface, provided by dm key.

Change-Id: Ic68186efe2fa5c0e57fcfc166615814755b60cb7
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:47 +08:00
Joseph Chen d240ec0518 test: rockchip: key: use key_read()
key_read() is a new dm key interface.

Change-Id: Idd950353749482a606085728bac2cac44e1bf58d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:47 +08:00
Joseph Chen 64048c537e dm: key: optimise framework and update drivers
1. dm key framework takes over more generic jobs;
2. key drivers remove unused codes and match new framework;
3. only power key is registered as interrupt key;

Change-Id: Icdda86f588af721b685f801ed251581f2fd85793
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 12:20:43 +08:00
Joseph Chen 99b8866017 rockchip: evb_rk3229: remove unused configure
Change-Id: Ifcea5ff63d0a68d3ca6a327bbd216da7e4a7b842
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 11:36:56 +08:00
Joseph Chen 70cdc99019 configs: add rk322x_defconfig
Change-Id: I3ead4f8d9d34aae340973f729aa7caf0054f6500
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-21 11:36:11 +08:00
Zhihuan He ade6d65fa1 rockchip: sdram_common: move BROM_BOOTSOURCE_ID_ADDR to sdram_common.h
Change-Id: I35d33524ffb19da21bf12622b5cbfd9933ea5a49
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2018-07-20 17:39:20 +08:00
Elaine Zhang c6c6283c78 rockchip: clk: rk3399: fix up the hdmi clk error
make the dclk_vop div=1.

Change-Id: I0faedbd557cddd55f93529d66f2f7815ce4c5f9e
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-20 17:38:15 +08:00
Kever Yang c5c7b477df rockchip: dts: update mmc property "ciu-sample"
dts property always use '-' instead of '_' for description

Change-Id: I216549bec2850c614b2173ac4a3bae58da317379
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-07-20 17:37:56 +08:00
Joseph Chen d114ba00ec core: dump: increase info length
Change-Id: Ide57bc45fcdeb5fb158ae67d0c56a9f80ac4d8cf
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-20 11:23:33 +08:00
Joseph Chen 68d7ed5765 rockchip: rk3368: do arch_cpu_init() not only when SPL
Change-Id: I1ee279e0011c566517494de2f9898d6818463edb
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-20 11:23:28 +08:00
Yifeng Zhao 465fe90ad9 drivers: rknand: zftl: fix hynix F16 64Gb NAND multi plane prog error issue
3326: fix hynix F16 64Gb NAND multi plane prog error issue
bug:
[   15.257968] hynix RR 12 row=2000, count 12, status=-1
[   15.257985] flash_complete_page_read 0 2000 error_ecc -1 1
[   15.258000] blk= 20, page=0, ppa = 2000, status = ffffffff

Change-Id: Ic7306aea8a55a06d68c73162676e048ffa02111d
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2018-07-20 09:55:16 +08:00
Joseph Chen 30b27f610b rockchip: rk3399: do arch_cpu_init() not only when SPL
Change-Id: I604bbdcfa65962e506550e6abe43bff0a189da87
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-19 21:34:59 +08:00
Joseph Chen b8f8ff5155 rockchip: rk322x: add RKIMG_DET_BOOTDEV
Change-Id: I92512be99439f926fa86df956e23eae6bce94109
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-19 21:04:18 +08:00
Joseph Chen 65cb013dff rockchip: rk322x: arch_cpu_init: initial SGRF in SPL
Change-Id: Ica512e2a3ca671b989a67b5302d21b701b7747dd
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-19 21:04:18 +08:00
Joseph Chen d54bc4cb37 rockchip: rk322x: fix GPIO1B2_UART21_SIN definition mistake
Change-Id: I0458b9a8242fa5f543c7426a9c8b262b468c4231
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-19 21:04:18 +08:00
Joseph Chen 9bfe736ccb rockchip: rk322x: enable vidconsole
Change-Id: I6ab5fd0232ed61578f958b2371ebef87caa10c5b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-19 21:04:17 +08:00
Joseph Chen 51117ff49b rockchip: rk3328: enable vidconsole
Change-Id: I5eebb1e10fe2fac7c3e0cec1884cd1c121fa9587
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-07-19 20:45:19 +08:00
Tang Yun ping e5bc49ba7a rockchip: sdram_common: fix DDR4 cap calculate
For DDR4 memory size we also need to get bank group by die bw,
8bit DDR4 have 4 bank group, 16bit DDR4 have 2 bank group.

Change-Id: Icea47a01ff6ceec838a91d0bf4152e4b8427a6ac
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2018-07-19 16:14:27 +08:00
Kever Yang 2bbf102863 cmd: mmc: do not force init HW in 'mmc dev' cmd
This is a revert to :
a5710920b7 cmd_mmc: make mmc dev always re-probe the HW

For emmc device, we should not re-init the HW with 'mmc dev' cmd,
please use 'mmc rescan' when need HW re-init.

Change-Id: I994d12beb7215db568e7a0ed58be3e36dfda5744
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-07-19 10:18:48 +08:00
Andy Yan 3d460b4c20 rockchip: rk3308: switch VCCIO3 voltage controlled by io_vsel3
According to the description of GRF_SON_CON0, the voltage of
VCCIO3(which is the concern of emmc/flash/sfc controller) will
indicate by GPIO0_A4 or io_vsel3. The SOC defaults use GPIO0_A4
to indicate power supply voltage for VCCIO3 by hardware, then
we can switch to io_vsel3 after system power on, and release
GPIO0_A4 for other usage.

Change-Id: Ia18617ef765b8ff019748acd30ece0ca8cd51045
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-07-19 10:00:04 +08:00
Dingqiang Lin 5c6b26af20 rockchip: rkflash: fix compile error
Change-Id: Ic545fda80852fd35f513b35f0aadbbf63b489546
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-07-19 09:58:21 +08:00
CanYang He ab83a6fe58 debug_uart: add a printdec() to print decimalism result
some value use decimalism to print is more readable for user, for
example: frequency, capacity

Change-Id: I9fa2a68d30c7694a582167d2d8767e18e28a9e83
Signed-off-by: CanYang He <hcy@rock-chips.com>
2018-07-19 09:57:48 +08:00
Jason Zhu cc527546d3 androidboot: nodify cmd bootavb
1.printf necessary information
2.delete useless function: do_avb_write,
    do_avb_write_ab_metada

Change-Id: I5f932e7774ecf9b383358b3c081369cdc7db0167
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-07-19 09:57:37 +08:00
Jason Zhu d34064effa android: get dev_desc by rockchip_get_bootdev()
Get dev_desc by call rockchip_get_bootdev() but not
default mmc 0.

Change-Id: I78c6760eb6410a14a9f767db2f90902ec97f432f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-07-19 09:57:37 +08:00
Jian Qiu 65413a00f9 fastboot: add FASTBOOT_OEM_UNLOCK option
This enables the following fastboot commands:
  fastboot oem unlock
  fastboot oem unlock_accept
  fastboot oem lock
  fastboot getvar oem-unlock

Android 8.1 need the oem unlock status attach to bootargs on boot.

Change-Id: Icc83451336a4dea2cbcf4927287de23bc8e28cb1
Signed-off-by: Jian Qiu <qiujian@rock-chips.com>
2018-07-19 09:56:14 +08:00
YouMin Chen f6d4196e0f rockchip: px30: enable tpl and spl support
Because px30 sram size is small, so need define CONFIG_TPL_TINY_FRAMEWORK
to reduce TPL size when build TPL firmware.

Change-Id: I5c190946314725e325e14599707a2be5b2e4ec22
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-07-18 18:03:52 +08:00
YouMin Chen 846371a2e8 rockchip: px30: spl: fix spl compile error
fix spl compile error about defined CONFIG_BOOTCOMMAND.

Change-Id: I0a16e50f2f0ea8c283aa43ed78c7264e910ed4a8
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-07-18 18:03:52 +08:00
YouMin Chen 4d65b3b352 rockchip: px30: spl: change CONFIG_SPL_MAX_SIZE to 0x20000
px30 spl size over 0x10000,so set CONFIG_SPL_MAX_SIZE to 0x20000.

Change-Id: I3e9bea5ccb7d4516ecc4881eb2d454e1afdcabb0
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-07-18 18:03:52 +08:00