Fallback to maskrom download mode if rockusb command failed.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iccfa8745aeac800b1e048e0301147424cd2e9478
Call panic() here since there is not a return value
accepted in the top caller.
Reading rollback index failed is already not allowed.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic5235f01dc7e9791d8ebe546724078dbab91f993
support vendor storage with mtd devices, the mtd partition
name is "vnvm".
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I6a895140df8ba12ef093acf9805f44bb436f7b29
- Call make_fit_args.sh script to process all args.
- Clean up code.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Icfa04c4fc2ab4f64dfd389f71309776d924e9ebd
It's common for all rockchip platform to make its file.
Process args for all rockchip fit generator script, and
providing variables for it's caller.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If9d741d16e397234d265f4ae32739514bfd7a5d1
The high speed spi nor's max frequency is about 133MHz and the
IO interface rate is about 100MHz, so enlarge spi-max-frequency
to 100MHz.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I9ef7e459dece5e70eefd72024264a94a672636d1
None-zero gd->rollback_index value should be written into
trusty.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib964c5883e5083a3f9828415ee05819960d20139
Implement __weak functions in this file.
Move fit_board_verify_required_sigs() to here.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I4d748f7bfe4cbc9a8f2f96f30978d3e64b73b9aa
Being convenient for other functions to be called.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ibfa3f30a50befa8773cc8729a5359f7a36e8180d
Being convenient for other functions to be called.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1a02a150cf66ccf3dfc4be3621ad62829c3e6eb5
If CONFIG_ROCKCHIP_THUNDER_BOOT=y, it will enable ddr fast boot.
Change-Id: Ia43039dd1247ebb937aaa8b6d9a9103df2dfe1f5
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
According to the description of GRF_IO_VSEL, the voltage of
VCCIO6(which is the concern of emmc/flash/sfc controller) will
indicate by GPIO0_B6 or io_vsel6. The SOC defaults use GPIO0_B6
to indicate power supply voltage for VCCIO6 by hardware, then
we can switch to io_vsel6 after system power on, and release
GPIO0_B6 for other usage.
Change-Id: I9c8339e357a7328d9ffeb711ba5d0bdd41971101
Signed-off-by: Liang Chen <cl@rock-chips.com>
The propery is brought by CONFIG_OF_U_BOOT_REMOVE_PROPS
required from GMAC.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib85ec0678a0a0404eb4cda5974c52076bf0a1e37
It's possible that USB is disabled due to developer needs
a critial size of u-boot.bin.
Disabling USB makes vbus can't be detected any more, so that
we add menu key and the events trigger are changed:
- rockusb mode(fallback to bootrom mode):
"recovery key pressed + vbus=1" => "menu key pressed"
- recovery mode:
"recovery key pressed + vbus=0" => "recovery key pressed"
At the most time, USB is enabled and this feature is not applied.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I9da8f17987742cea3267dbb35ee88d57a00c578a
CONFIG_ROCKCHIP_UART_MUX_SEL is used for selecting uart multiplexer
in board_debug_uart_init.
Change-Id: I75fb8eab76e4db8cd171d8d6c4462abe52ed168e
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Add clk_valid() to check for optional clocks are valid.
Call clk_valid() in test/dm/clk.c and add relevant test routine to
sandbox clk tests.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I78b1edea1f8ef54d3aa3f7610d39d79dd994d1bf
Fixes warning from rv1126-usbplug_defconfig:
......
warning: (ROCKCHIP_RV1126) selects ROCKCHIP_GPIO_V2 which has unmet direct dependencies (ROCKCHIP_GPIO)
warning: (ROCKCHIP_RV1126) selects ROCKCHIP_GPIO_V2 which has unmet direct dependencies (ROCKCHIP_GPIO)
......
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2c7d64e9cdd03f3e8dcbbb948d747a67d7dff4da
The v2 gpio controller add write enable bit for some register,
such as data register, data direction register and so on.
This patch support v2 gpio controller by redefine the read and
write operation functions.
Change-Id: I2adbcca06a37c48e6f494b89833cd034ba0dae29
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>