This dmc code is prepare for ddr test tool to scanning ddr freq,
normal firmware no need to enable it.
Current version only support PX30/RK3326 and RK3328/RK3228H,
CONFIG_ROCKCHIP_DMC=y to enable it
Change-Id: I25360846bb5af74eb82bdc6e64bdaa2d55ab0f64
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
there is no necessary reason to do uboot relocation, and actually
it brings trouble for our debug at some time, so skip it.
Change-Id: I56567a6ff13c8431e7e1773652826692ec0e6c9e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
If SDMMC0_DET pull low gpio1_d4/d5 mux as sdmmc functions, otherwise
they mux as JTAG or UART. But the jtag_force(grf_cpu_con1[7])
is enable after reset.
This clear force_jtag mode to enable uart4 when SDMMC0_DET is high.
Change-Id: I2a2dadaad7dc2df8de3b43ff47d27d266caca62f
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
It makes rockusb works normally even there is no valid kernel dtb.
Change-Id: Ie7a125450de1b9394ed5c17fc5a0df3239e203d6
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
It makes rockusb works normally even there is no valid kernel dtb.
Change-Id: Ic2996614b9cddc1835b079c2e7ac784daa99ad3e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
According to commit c791e8a8("rockchip: rk3308: set text base to
0x00600000").
Boot aarch64 kernel Image from 0x680000(6M + 512KB) will make
better usage of the ram space.
Load compressed zImage to 0x02480000(36M + 512 KB), then decompress
it to 0x680000.
Change-Id: I08760029ab4daf442ec97b9074db40c54b1413e7
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
dm regulator uclass would verbose this message.
Change-Id: I76c73bdcf6354d7d892f75ad022be416d3ab0c09
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
rockchip platforms support both efi and rkparam partition types,
it helps a lot for debug.
Change-Id: I3ba3fe552ecd99c38112a1417eb6c22721a03242
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This is a debug message to know if we use kernel dtb.
We have already got this info from "DTB: rk-kernel.dtb",
so remove it.
Change-Id: I28e29e43aa818ac61c9864b94bd80ceb85fc9c3a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
It makes rockusb works normally even there is no valid kernel dtb.
Change-Id: I7f17bda7fdd841135d0ab0392db58cfc65cc7f5e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
It makes rockusb works normally even there is no valid kernel dtb.
Change-Id: Icdb2f9611d25525bbe15d4aafb9120e31e749af2
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
this is more flexsible to match regulator type.
Change-Id: I5589b5d1d32d8ac1c6d09d64e680eddd31f2ba90
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
For cpu_vdd default voltage enough to support cpu frequency to 1.2GHz,
so set rk1808 default cpu frequency to 1.2GHz.
Change-Id: Ia8a888ee79ab3ae3868790bcc1851552acf90086
Signed-off-by: Lin Huang <hl@rock-chips.com>
Change-Id: Ibf85312e909e040ef0efb120efe3f48c4a2c6ab9
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Add api soc_is_xxx for soc variants distinguishing.
Most of them borrowed from linux kernel
include/linux/rockchip/cpu.h.
Change-Id: Ifb932c022ffdf001b64979fe2554452f0d480e88
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This reverts commit a1903c18db.
It's really bad idea to add "usb start" in preboot, it will spend
a lot of time to scan usb bus, and most of people do not need this
feature.
Change-Id: Ifbc97320ca786f3c4ba593e415c0b2af2a979c47
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
The output directory is not the same for different build system,
let's get it from environment.
Change-Id: Ifa05c9bc09d5b609d16bcbed767bccd3c2bbaa38
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Split attestation key into AttestationKey.ec and AttestationKey.rsa,
then write to secure storage.
Change-Id: I8e00d602c4174a002e6ecad2e4cfa846f32a681f
Signed-off-by: Tony Xu <tony.xu@rock-chips.com>
We put decompressed kernel image at 0x02080000(32M + 0x80000)
for arm64, so there is very limit space left after 32M offset
for some boards which run with 64M DRAM.
Put compressed kernel image to 24M + 0x8000, then u-boot can
decompresse it to 32M + 0x80000, this make boards with 64M
SDRAM can boot compressed kernel image.
Change-Id: Ifbed027fca1e6dfa420ad52bc903aa770244af2f
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Enable boot_android command to boot Android format image.
Change-Id: Ia516d77af5480608f5d33ae3cdf8f7e69eb307ba
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
In the eMMC spec, “Note that while the actual timing change is done,
the behavior of any command sent command sent (like CMD13) cannot be
guaranteed due to the asynchronous operation. Therefore it is not
recommended to use CMD13 to check the busy completion of the timing
change indication.” indicates that SEND_STATUS can not be send after
set-timing, so delete it.
Test eMMC model:
Manufacturer ID: 45
OEM: 100
Name: DG401
Rd Block Len: 512
MMC version 5.1
Capacity: 14.7 GiB
Change-Id: Idd47461b529f28af649f2275041f36ef998ee404
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The cmd13 can't guarantee the switch command is success even it response
without any error bit assert. So we should wait busy signal to wait the
behaviour of the device is completed.
Change-Id: Ia7e9efc27b5e05a7bcb9b4c98eef1e134efc29e7
Fixes: 55e5defd20 ("mmc: rework mmc_switch for non-send_status scenario")
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
There are some armv7 SoCs like RK3288 have a different SDRAM_BASE,
so we need a script to generate correct BASE, update all SoC configs
to use script.
Change-Id: Ibba2f6adc6b9a104b54bbe9c7feefa92e6efcfe0
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The U-Boot and OP-TEE load&entry address may not the same for
different SoCs, so we need a script to adapt it.
Change-Id: Id5418aa8ac8b35045be9310f317a73e7c24d7518
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The rk3288 TPL is always running in DDR, we do not need a relocate
STACK address.
Change-Id: Ibc4c543ee96f81b407db6374f6293a07928cffda
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>