Add DWC3 device data and gadget download support for RK3328 SoCs.
Change-Id: I034e9838f0f44f24ebb9b9e372039a19e089f3be
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Add basic support for rv1109 evb.
Change-Id: I88bd871880feffbe745e0d5ed22ec7f02e9caa75
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Some rk3128 board like fireprime is using rk818, and it may limit
the current before change the pmic setting, the normal process
need to enable the fuelguage and its dts which is too late,
the U-Boot may HANG at regulator_power_on_init() in board_init().
Change-Id: I7bd058d8bd8fac01377c3cef6b3681c1c6110ee7
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
%s/rkflashtool/rkdeveloptool/
We are using rkdeveloptool not rkflashtool.
Change-Id: Icca82ca411f06d3ec5f578d8e4ac53fbbc486868
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 19ee1fae097325c7af4f18956c903d3ad15b43b7)
return negative erro num makes board_r.c bootflow abort, so that
the adc key driver can not be probe.
Change-Id: I815b16427dc4bf1fdeaab3b75077ed40f5a2beab
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
u-boot.itb will use the same position as uboot.img
Change-Id: I839c947a0221d347e5810d1fc8bbae655aba429b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
On rk3399 board, we need to configure phy interface UTMI+ width
to 16 bits via the property "snps,phyif-utmi-bits" of dwc3 node.
But we can't the get the property from kernel dtb. So this patch
initialize the phy interface UTMI+ width in dwc3 platform data,
and not dependent on the property in dtb.
Change-Id: I3f6b05e0d72806242a128c85f82b260f61ac4f95
Signed-off-by: William Wu <william.wu@rock-chips.com>
Since the common board init do not detect the fastboot key,
we need to add it in gva board init.
Change-Id: I7f5ea5df740e855c1ec4f64092450d028321200b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The RK3308 EVB has two variants: V10 & V11, and V10 bind the
Recovery key on adc channel 0, but V11 bind to channel 1.
Fortunately, the two variants use adc channel 3 to identify
one from another as board id information. So we identify
the board id by adc channel 3, then get the Recovery key
status according to it's corresponding adc channel.
Change-Id: Ib04fb1aad08f69fcdb493258e25c748fb45468d4
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Detail of step by step to bring up the board with OP-TEE support.
Change-Id: I0d0a1ab8cbe720e35959d6611519f4dfcb51b349
Signed-off-by: David Wu <david.wu@rock-chips.com>
The RV1108 EVB switch to spl now, so we need
to update the README.
Change-Id: I1c300a53a8a5c76aafa4857f55956e0203df8634
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
updata the style of reporting sdram capacity to uboot
Change-Id: I6a652f233d8d26e842398edcc184cbbe89099401
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
PX30 is a rockchip evb for px30, including all harware interface
from px30.
Change-Id: I5bac5a7ebf23b5c51b3a01f51fe0404db0a1b5fc
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use common board file and move SoC spec setting into rk3399.c
Change-Id: Ic674cef566b16c33978a1430eadfa9438b2de1db
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use common board file and move SoC spec setting into rk3368.c
Change-Id: I1d5a2b0bae03f89092cc0daf1c52622b3884cc43
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use common board file and move SoC spec setting into rk3328.c
Change-Id: Ia7cf43e0096da980d744260caa61456ddc6b24eb
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use common board file and move SoC spec setting into rk3288.c
Change-Id: Ie17232dd60d2b185b635631ce9373eb59b11c89c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
As part of my usual round of build testing, output about missing
MAINTAINERS information was not logged, and thus often overlooked.
Correct that mistake by ensuring that I log the output of
genboardscfg.py every time. As part of that, address a number of
missing MAINTAINERS entires. In the case of a missing file, I have put
the original submitter down. In the rest of the cases I have added the
config (and sometimes relevant header file) to the existing set of file
globs.
Change-Id: Ic4524445489daba323d638470c369ad914d5bfef
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 79df00fdb40b4584919c8bcef42d323a8d38d0f1)
The later-stage spl_board_init (as opposed to board_init_f) should set
up board-specific details: these differ between the EVB-RK3399 and the
RK3399-Q7 (Puma).
This moves spl_board_init back into the individual boards and removes
the unneeded functionality from Puma.
Change-Id: I36b72844fbd0fd45665608f11e1a9a46168490ab
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
(cherry picked from commit fb7406469c012092d652741f103b0993103cf8e3)
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
After commit d962e5dadc2c("rockchip: mkimage: use spl_boot0 for all Rockchip SoCs"),
the mkimage will not pad the Tag memroy, so we shoud
pass a Taged ddr.bin/spl.bin to it.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
(cherry picked from commit dca4740930c77c465b9645e0a6928c3710b21cdd)
Change-Id: I83e99669e90fda662d176f8f687785609e364312
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
The rk3288-evb-rk1608 is a development/evaluation for RK3288
and RK1608. The RK3288 as Host AP, and the RK1608 as a
Dual-cores DSP coprocessor, it provides high-performance
professional computing capabilities to Host AP.
They communicate with each other through MIPI and SPI. There
is a good host environment on host RK3288, we can easily debug
RK1608.
Also, the rk3288-evb-rk1608 is different with rk3288-evb, so
we need to add a independent BSP configuration for rk3288-evb-rk1608.
Change-Id: I75ec0e14ee88acd9de7f809d7e88bca97a77a5c2
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I6fc41b5480adfbd8456032e844d4f22f30c413a5
Signed-off-by: Francis Fan <francis.fan@rock-chips.com>
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
gva-rk3229 is a som based board design for Android Things project.
Change-Id: I2e054407231a2549573d2302855c09b9795fdddd
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Add a script to generate binaries from bl31.elf, and generate
u-boot.its file for FIT image including u-boot, dtb and atf
binaries.
Change-Id: Ife016da5468b3c618c619354fb280b6951aed94b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
evb-rk3128 is an evb from Rockchip based on rk3128 SoC:
- 2 USB2.0 Host port;
- 1 HDMI port;
- 2 10/100M eth port;
- 2GB ddr;
- 16GB eMMC;
- UART to USB debug port;
Change-Id: Icfc8b74449678e0e2488f7bf394ec217e52c15b6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Detail of step by step to bring up the board with OP-TEE support.
Change-Id: If3156fa3fb3ede6270f871dcf0e518aced202443
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We package U-Boot and OP-TEE into one itb file for SPL,
so that we can support OP-TEE in SPL.
Change-Id: I2c20333d6f3bb11ac1ec4bbb32c901028fb15d64
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Since we support ATF in SPL and add script for it, let's make the
document up to date.
Change-Id: Ic6468825c61a8729ca38f7580dc728f0a753560a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Add a script to generate binaries from bl31.elf, and generate
u-boot.its file for FIT image including u-boot, dtb and atf binaries.
Change-Id: Iad47682119a8e1b382da913069a0771e32f9295d
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Sync the code from puma-rk3399:
8adc9d1 rockchip: board: puma_rk3399: derive ethaddr from cpuid
9415b9a rockchip: board: puma_rk3399: add support for serial# and cpuid#
via efuses
Change-Id: Ib5528d0742b56a0e57431adaa01f411eee7e1ca1
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
In rk3328, some function pin may have more than one choice, and muxed
with more than one IO, for example, the UART2 controller IO,
TX and RX, have 3 choice(setting in com_iomux):
- M0 which mux with GPIO1A0/GPIO1A1
- M1 which mux with GPIO2A0/GPIO2A1
- usb2phy which mux with USB2.0 DP/DM pin.
We should set these IO routing in board file.
Change-Id: If6f6fd890d8e225cdb584a4025aac578198764e6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This patch add board_usb_init() and interrupt callback
for dwc3 gadget.
Change-Id: I1ea19c0ec7d3fd14904e7fcc97c6d19221206762
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We are now using an env_ prefix for environment functions. Rename setenv()
for consistency. Also add function comments in common.h.
Suggested-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
As the debug uart is marked as dm-pre-reloc, the pinctrl driver
will handle the correct iomux setting.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>