Commit Graph

47859 Commits

Author SHA1 Message Date
Kever Yang cab28f403d tool: rkcommon: add support for px30
PX30 have 10K sram available.

Change-Id: I67c565c84d00bc0141d79c437035993746ea9245
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-09-27 17:07:56 +08:00
YouMin Chen f588f59eac driver: ram: rockhip: px30: fix lpddr2 bug
set lpddr2 detect max row = 15 to match lpddr2 inc file

Change-Id: I8fd57984331d35bafaf263829760204c582d120d
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-09-27 16:05:16 +08:00
Kever Yang ca0ddd934d rockchip: bootrom: update support for back to brom via boot_mode reg
We should clear that the purpose is enter maskrom and get into USB boot:
1. set the bootmode reg to bootrom mode in U-Boot/Kernel by cmd or Tool;
2. Get back to bootrom with non-zero return value if not boot from USB;
3. Clean the tag if already enter USB boot.

Change-Id: I1127357c3b2f499519387880830b2b382f46af10
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-09-27 15:43:43 +08:00
Kever Yang 2daa9732c0 rockchip: move BROM_BOOTSOURCE_ID_ADDR to bootrom.h
The macro BROM_BOOTSOURCE_ID_ADDR does not belong to sdram_common.h

Change-Id: I0490ff10b08287d71e3231baa999d3f096068c7c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-09-27 15:43:43 +08:00
Tang Yun ping cf41a383b3 rockchip: ram: using common code for rk chip dmc probe
Include rk1808, rk3036, rk3308 and rk3326/px30 use this common
rockchip_sdram.c

Change-Id: Iee3e100992b07027c05f132fa536504ecc02f11f
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2018-09-26 17:36:23 +08:00
Sugar Zhang b615ccb084 configs: px30: enable rk809/rk817 sound support
Change-Id: I4deae9b8e5a101c7b37e18d998e800da405726c0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-09-25 19:33:21 +08:00
Sugar Zhang 75958dd45d configs: px30: update by make savedefconfig
Change-Id: I44d3afebe124096676af6cb448d4ea45406dd6c4
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-09-25 19:33:09 +08:00
Sugar Zhang 5b9c2cccdf sound: rockchip: add driver support for simple card
This patch adds driver support for rockchip simple card.

Change-Id: If6b0e2c8d5bbe5dff268d2b5abbdce5f3528282b
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-09-25 19:32:33 +08:00
Sugar Zhang 4afb7f9c57 sound: rockchip: add driver support for rk809/rk817
This patch adds driver support for rockchip rk809/rk817.

Change-Id: I0e8355fa6dffb23d8413c0b3a198757aa2d2360c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-09-25 19:32:33 +08:00
Sugar Zhang 7a5efcbd67 power: pmic: rk8xx: bind codec for rk809/rk817
Change-Id: I600f49799dde318d46e349264f568e38225a6414
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-09-25 19:32:33 +08:00
Sugar Zhang 69ab2873d7 sound: rockchip: add support for i2s
This patch add driver support for rockchip i2s bus.

Change-Id: I2c7f2b46d628706fa000055f7962ba6b4ff6d0b6
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-09-25 19:32:33 +08:00
Sugar Zhang 95f2641240 clk: rockchip: px30: add support clock for SCLK_I2S1
Change-Id: Iaaacd6fdabe2c702202ffe09dc95cd6d648597d6
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-09-25 19:32:33 +08:00
Jianqun Xu a2a3fc8f3a pinctrl: rockchip: Add pinctrl support for rk1808
Change-Id: Ia60accc1940ed5cb0fa04f017fa97e34dff480cb
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2018-09-25 14:11:09 +08:00
Joseph Chen 72c44abc76 rk3399: decrease 16KB from BSS section
the 16KB size is used for SPL code, it fixes compile issue:

section .bss VMA [00000000ff8e0000,00000000ff8e01bf] overlaps
section .u_boot_list VMA [00000000ff8df450,00000000ff8e0bf7]

Change-Id: I05b5b9c8b05825835d7d80f843c590d390abe482
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-25 14:08:22 +08:00
Joseph Chen f561125910 configs: lion-rk3368: increase TPL size to 32KB
it fixes TPL size overflow compile issue.

Change-Id: I5c936d2c170f34bc820ecc4630d061d0c9af8705
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-25 11:52:46 +08:00
Tang Yun ping 71e299d362 rockchip: dts: rk1808: add dmc node
Change-Id: I4c4b26ec8889ad44bb70ebcbe771682894052bc0
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2018-09-25 10:01:14 +08:00
Tang Yun ping f1fc975dac drivers: ram: rockchip: add rk1808 sdram support
Change-Id: I8dc6eaaf6bb9460ed05d4bda1658fc859bb522af
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2018-09-25 10:01:14 +08:00
Tang Yun ping a28d53bfbf rockchip: rk_atags: add memset/memcpy for TINY TPL
For some TPL with TINY mode didn't define LIBGENERIC_SUPPORT,
need to realize memset/memcpy for rk_atags whit TPL.

Change-Id: I9c7a343836592aa03fcee910404fb2f1e37a4989
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
2018-09-25 10:01:14 +08:00
Joseph Chen 58d85a144d armv8: dump SP content when system crash
Change-Id: I8f1d068f10eddf467413fb459934b1cb85481bb0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-20 11:03:44 +08:00
Joseph Chen 2897464340 rockchip: rk3036: adjust U-Boot text base and init sp
- set text base to 2MB offset;
- set init sp to 4MB offset;

Change-Id: I3d1ad775b5d3de2af50276dd93c233220e692408
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-20 10:37:42 +08:00
Joseph Chen 895938f1d4 rockchip: rk3188: adjust U-Boot text base and init sp
- set text base to 2MB offset;
- set init sp to 4MB offset;

Change-Id: I6e2e164ea9f77a7955a935b1a9f6aee7dd248768
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-20 10:37:26 +08:00
Joseph Chen 50f3250a1d rockchip: rk322x: adjust U-Boot text base and init sp
- set text base to 2MB offset;
- set init sp to 4MB offset;

Change-Id: I4a482d854bc00e1592f5877cf7f3217b8752c81c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-20 10:37:04 +08:00
Joseph Chen e36a441356 rockchip: rk3288: adjust U-Boot text base and init sp
- set text base to 2MB offset;
- set init sp to 4MB offset;

Change-Id: I9f250c3561cbe8c0b4ee1c9da625766f7306c2f2
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-20 10:35:32 +08:00
Joseph Chen 3776a9bd6f make.sh: add rk399pro-npu build
Change-Id: I96c8dd6dc07c65549860631ecd70416f8f2f492e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 10:04:17 +08:00
Joseph Chen b9578fc8d6 configs: add rk3399pro-npu_defconfig
Change-Id: I547f744fcbf2a89584fa487bcd76101f916e40a6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 10:04:17 +08:00
Joseph Chen 2aa1fe7705 rockchip: kconfig: add CONFIG_COPROCESSOR_RK1808
This indicates the RK1808 is working as a coprocessor for
another more powerful SoC.

Change-Id: Id843495de2acfa03508b9a378e9a48eedc3a7c62
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:44:34 +08:00
Joseph Chen db58bbb1c1 arm: dts: add rk3399pro-npu-evb.dts
Change-Id: Ib5a74849fcc0939e1be7ca481a58bfd1ac2e7c94
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:37:48 +08:00
Joseph Chen bf6219b03b rockchip: rk1808: set ramdisk as devtype when DM_RAMDISK enabled
Change-Id: I6162c5bf2db963101215c3f7e2f2cc190663d779
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Joseph Chen 225168aa83 rockchip: rk1808: set CONFIG_SYS_TEXT_BASE to 6MB offset
Memory layout:
    0 ~ 2M: ATF;
    2 ~ 6M: OP-TEE;
    6 ~ 7M: U-Boot;

Change-Id: I1eb7517f62151041f11ba80a84fc12649654aa69
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Joseph Chen b15a0aa284 rockchip: resource: add CONFIG_ADC for rockchip_read_dtb_by_adc()
Change-Id: I77ccb8b7a18995e913e69fea2eba955ef0ae848c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Joseph Chen da73406544 arm: rockchip: select DM_MMC if !DM_RAMDISK
Change-Id: I1bf3af449d9bf9551de06763d10dba0c0910fdb7
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Joseph Chen 98ff9f07f8 rockchip: add IF_TYPE_RAMDISK support
Change-Id: I505606516bf186d8e869702c77f563d5cf0d6f37
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Joseph Chen a3fec70d49 dm: blk: add ramdisk uclass support
- Use ram as a disk which appears as block devices.
- Provide a read only ramdisk driver.

Change-Id: Ie6dc1a036c8a2841cacd0d467599c11b74b4ad77
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Joseph Chen c7e2486eb2 disk: rkparam: support get partition info from atags
- for some platform without storage, pre-loader passes partition info by atags.
- search order: mmc/nand -> atags

Change-Id: Ie2699e217999e4772168c96de3b16c084241891e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Joseph Chen 7e1a37f59e rockchip: atags: add atags_stat()
Change-Id: I3ab086747cb9232118fd4e4f131648c242574309
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Joseph Chen 0e9918bc21 rockchip: atags: add ram partition support
Maybe there is no flash storage for some SoC which is used
as coprocessor, preloader will load images for U-Boot and
pass partition info by atags.

Change-Id: Ieb6efff80cb615b3b5a7bcd51c672649f3c97115
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-17 09:32:28 +08:00
Wyon Bi 6b93bf2ba9 video/drm: rgb: Fix output mode setting
Change-Id: I1adf38aa6262e889cc518c07325d6aeeb730f874
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-09-14 10:39:32 +08:00
Frank Wang 8659d08d2b usb: dwc2: amend the maximum request length
Amend the maximum request length equate to the maximum transfer
size of endpoind.

Change-Id: I926c23ddf347f33cf166c51c80d099441978ca7e
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2018-09-12 17:36:57 +08:00
Frank Wang 5b2bcb4f48 usb: dwc2: fix the maximum dieptsizn/doeptsizn
The maximum transfer size supported should be 2^19 bytes
from Table 5-79 (P372) of the DWC OTG Databook V3.10.

Change-Id: I258b6c2119270fa2f31453af86f7eb179359e171
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2018-09-12 17:36:57 +08:00
Jason Zhu 812df22a14 dm: mmc: add trim erase mode
BUG: If erase is set as MMC_ERASE_ARG, the erase command
perform an erase on erase group(s). If so, when the start
address is close to the next partition address and the
blkcnt is less than erase group size, the mmc_berase()
will recalculate the end address and may exceed the next
partition start address. This will erase the other partition
useful data.

Solve: Set erase mode as trim, the erase command perform an
erase on the sector(s).

The erase command of SD card perform an erase on the sector(s).
We can just send the start and end address to erase SD card
and send CMD38 with argument MMC_ERASE_ARG.

Change-Id: Ic4251b77e9f9feb6a087324c0241625ff013a0a0
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2018-09-12 17:26:13 +08:00
Joseph Chen f680c019e6 clk: rockchip: add debug info for waiting pll
On FPGA, PLL is fake and can't give a lock state which causes
dead waiting, so that adding a debug message to easily notice
this situation.

Change-Id: Ic7dccedb3d7e5c7588da85bb4c4552b924f60e43
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-12 15:51:10 +08:00
Joseph Chen b8412744f4 rockchip: rv1808: set init sp address backward
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.

Change-Id: I971c4fd63175137968430b130c25da03709d26e4
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-11 16:29:44 +08:00
Joseph Chen 954fa96c83 rockchip: rk3368: set init sp address backward
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.

Change-Id: Ib137428bb5fa10ee5b30b79a2623a016ecfc19e3
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-11 16:29:30 +08:00
Joseph Chen f3ed57b767 rockchip: rk3328: set init sp address backward
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.

Change-Id: I572e5edb26e2f7430c89fd057761ddc9abf077c6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-11 16:29:11 +08:00
Joseph Chen 2a864b7a80 rockchip: rk3399: set init sp address backward
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.

Change-Id: I4e17b934dc3dd19f66bda374263dcb674c53b057
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-11 16:28:47 +08:00
Joseph Chen a25a7031bc rockchip: rk3308: set init sp address backward
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.

Change-Id: Ie3bdadd58da954bff3de182725d28cfb6877e672
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-11 16:28:25 +08:00
Joseph Chen 6cfe5b317b rockchip: rk1808: set init sp address backward
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.

Change-Id: Ia310eda1317ae65aa374dca9294114813a645315
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-11 16:28:02 +08:00
Joseph Chen aacf8d54f1 rockchip: px30: set init sp address backward
U-Boot max size is default 1MB, so that if init sp starts
from the tail of 1M, it overrides the U-Boot images which
causes a relocation failure.

Change-Id: I0209a4294f9b85e89ce22a3a5c1e1b79a0ff37aa
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-11 16:25:01 +08:00
Hao Xiaowei 3680acb5fc configs: rk3126 rockchip: rk3128: enable avb for Android P
Change-Id: I94ff27757b59343dac38d938f45c3b5b0fff6557
Signed-off-by: Hao Xiaowei <hxw@rock-chips.com>
2018-09-11 09:51:22 +08:00
Hisping Lin bdf50261ca lib: optee_client: search security partition once
Change-Id: I4f3fbdb1e319e5b200225353a2d945bebd888f8c
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2018-09-11 09:52:43 +08:00