Age | Commit message (Collapse) | Author |
|
Update setup_board_eeprom_env() to choose the right board name
for am69-sk.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
|
|
Enable configs for building multiple dtbs into a single fit image and load the
appropriate dtb for next stage. Add k3-am69-sk dtb along with the evm dtb. This
facilitates the use of common defconfig for both EVM and SK.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
|
|
Enable configs for building multiple dtbs into a single fit image
and load the appropriate dtb for next stage. This facilitates the use of
common defconfig for both EVM and SK.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
|
|
In J784S4 EVM, EEPROM is interfaced to wkup_i2c0. Enable wkup i2c0
to enable access to EEPROM.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
|
|
The serial number of the board is programmed in the EEPROM. Add support
for setup_serial() to read the serial number from EEPROM and update the
serial environmental variable with the same.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
|
|
The board name is programmed in the EEPROM. Add support for board
detection and choose the right dtb based on the board name read
from EEPROM.
The J784S4/AM69 has two platforms naming J784S4-EVM and AM69-SK. The
J784S4 has EEPROM populated at 0x50. AM69 SK has EEPROM
populated at next address 0x51. So start looking for TI specific EEPROM
at 0x50, if not found look for EEPROM at 0x51.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
|
|
The u-boot ums command models the EVM as a card reader and shows the SD
Card latched on the evm as a memory device in the host PC. The Type - C
dual role port should be used for this functionality. This helps in
automating the linux debugging process.
Enable this command in the defconfig.
Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com>
Signed-off-by: Jai Luthra <j-luthra@ti.com>
|
|
The u-boot ums command models the EVM as a card reader and shows the SD
Card latched on the evm as a memory device in the host PC. The Type - C
dual role port should be used for this functionality. This helps in
automating the linux debugging process.
Enable this command in the defconfig.
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Jai Luthra <j-luthra@ti.com>
|
|
The u-boot ums command models the EVM as a card reader and shows the SD
Card latched on the evm as a memory device in the host PC. The Type - C
dual role port should be used for this functionality. This helps in
automating the linux debugging process.
Enable this command in the defconfig.
Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com>
Signed-off-by: Jai Luthra <j-luthra@ti.com>
|
|
Add new R5 defconfig for USB MSC boot support based on usbdfu_defconfig
and add USB host and storage options A53 defconfig.
USB Host boot is supported only from USB0 port. By default USB0
is configured in peripheral mode to support DFU. Inorder to support
USB Host boot, "dr_mode" property needs to be changed from "peripheral"
to "host" in the device tree.
Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
|
|
Add new R5 defconfig for USB MSC boot support based on usbdfu_defconfig
and add USB host and storage options A53 defconfig
USB Host boot is supported only from USB0 port. By default USB0
is configured in peripheral mode to support DFU. Inorder to support
USB Host boot, "dr_mode" property needs to be changed from "peripheral"
to "host" in the device tree.
Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
|
|
This virtual clock mux configuration enables the use of dynamic frequency
scaling on A72 clock ID 202 by setting up the required register.
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
|
|
This virtual clock mux configuration enables the use of dynamic frequency
scaling on A72 clock ID 202 by setting up the required register.
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
|
|
In order for the Cortex-A72s to operate at different frequencies other
than the default 2GHz, add in a new 'virtual' mux (a mux that does not
physically exist in the clock tree) that can be selected.
CC: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Bryan Brattlof <bb@ti.com>
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
|
|
Current stack usage of AM62Ax seems to be at least 16.5K, set the stack
limit at 17K.
Reported-by: Kamlesh Gurudasani <kamlesh@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
If early stack usage is exactly same as SIZE_LIMIT_PROVIDE_STACK, then
its most likely to have overflowed beyond this limit and corrupted any
regions beyond stack. Warn about this to the user.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
On few k3 platforms, due to load ordering of remote fw Linux kernel
is getting hang.
As WA, doremoteproc variable set to be 1 in u-boot.
This patch change default value of doremoteproc 1 for jacinto devices.
Cc: Manorit Chawdhry <m-chawdhry@ti.com>
Cc: Neha Francis <n-francis@ti.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Apurva Nandan <a-nandan@ti.com>
Cc: Hari Nagalla <hnagalla@ti.com>
Cc: Minas Hambardzumyan <minas@ti.com>
Signed-off-by: Udit Kumar <u-kumar1@ti.com>
Tested-by: Neha Malcom Francis <n-francis@ti.com>
|
|
The default U-Boot environment variables and design are all set up for
both the MAIN R5FSS clusters to be in Split-mode.
The mode for both the R5 clusters is defaulted to cluster mode. This
throws the following failure messages when early-booting the cores using
default env variables.
Error log:
k3_r5f_rproc r5f@5d00000: Invalid op: Trying to start secondary core 7 in lockstep mode
Load Remote Processor 3 with data@addr=0x82000000 322476 bytes: Failed!
Fix this by updating both the clusters to Split-mode in the u-boot specific
dtsi, to avoid this sync overrides in the future.
Reported-by: Shyam Jagannathan <shyam.jagannathan@ti.com>
Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
Signed-off-by: Rahul T R <r-ravikumar@ti.com>
Reviewed-by: Apurva Nandan <a-nandan@ti.com>
|
|
The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't
sufficient to load the new tispl.bin to
enable loading of tispl.bin the size is increased by 256KB to 1.25MB.
Cc: Apurva Nandan <a-nandan@ti.com>
Cc: Neha Francis <n-francis@ti.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Nikhil M Jain <n-jain1@ti.com>
Cc: Kamlesh Gurudasani <kamlesh@ti.com>
Signed-off-by: Udit Kumar <u-kumar1@ti.com>
|
|
The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't
sufficient to load the new tispl.bin to
enable loading of tispl.bin the size is increased by 256KB to 1.25MB.
Cc: Manorit Chawdhry <m-chawdhry@ti.com>
Cc: Neha Francis <n-francis@ti.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Nikhil M Jain <n-jain1@ti.com>
Cc: Kamlesh Gurudasani <kamlesh@ti.com>
Signed-off-by: Udit Kumar <u-kumar1@ti.com>
|
|
This allows to toggle GPIOs for debug and testing.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Sync AM62 SK and AM62 LP SK defconfigs for feature parity.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Enable required SD card IO voltage regulators to support SD UHS modes at
A53 SPL stage.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Move nodes shared between AM62 SK and AM62 LP SK board to
k3-am62x-sk-common-u-boot.dtsi to avoid duplication. This fixes broken
Ethernet support on LP SK.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
|
|
Switch to binman for building bootloader images. Reuse
k3-am625-sk-binman and override the dtb names to that of AM62 LP SK
board.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Similar to get_fdt_mmc make get_overlays_mmc look at /boot/dtb/* path
for overlay files.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
All K3 SoCs use same set of args to load kernel for MMC. So move this to
common place to avoid duplication.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Add main_uart2 clocks in clk-data.c for J721E. Now,
main_uart2 clocks will be set up while booting the J721E SoC.
Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
|
|
Add device data for main_uart2 in dev-data.c for J721E. Now,
main_uart2 will be powered on while booting the J721E SoC.
Signed-off-by: Bhavya Kapoor <b-kapoor@ti.com>
|
|
Add CMD_TIME, CMD_CLK and CMD_EXT4_WRITE for MMC performance
monitoring. Use CMD_DM to verify driver setup.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Add CMD_TIME, CMD_CLK and CMD_EXT4_WRITE for MMC performance
monitoring. Use CMD_DM to verify driver setup.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
This board[0] is similar as AM62-SKEVM with additional EVM fixes and lack
on board wifi chip
[0] https://www.ti.com/tool/SK-AM62B
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
DTB files are under ti/ directory, update name_fdt to match the same
while detecting SK vs LP SK
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Try regular Image boot from boot media and use distroboot as fallback.
This maintains compatibility with regular SDK flow while providing
option to use distroboot
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Add options needed for distroboot similar to other K3 SoCs.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
|
|
Enable configs required to add support of HS200 at U-Boot Stage
Signed-off-by: Nitin Yadav <n-yadav@ti.com>
|
|
Enable configs required to add support of HS200 at U-Boot Stage
for AM62x LP SK.
Signed-off-by: Nitin Yadav <n-yadav@ti.com>
|
|
After performing DFS on A72, the clk-k3 driver causes the reboot to fail
due to fault clock re-initialization
The clk-k3.c driver performs PLL setup based on the difference between
the requested clock rate and current clock rate. If the difference is
found to be more that 50%, in that case it recurses to the clock's parent
for changing its frequency and setting up the PLL. If the difference is
found to be less than that, it assumes that it is a rounding error in the
divider and tries to accommodate for that without touching the parent
clocks.
So, 5% to 50% difference, it assumes it to be a rounding error. From 50%
difference onward it treats it as a HSDIV+PLL configuration case and
sets everything correctly.
So when a fresh boot happens, the A72 clock frequency is found to be at
19.2MHz, which is way less than 2GHz and hence it crosses 50% barrier and
gets properly setup. But when we change the A72 frequency to 1.5 GHz
through DFS, the difference is only of 25% (<50%). So, when we do a
reboot, it doesn't configure the parent clocks and PLLs, it just tries to
make the value close to 2GHz, but that doesn't work.
So, reduce the threshold from 50% to 12.5%, to reconfigure the clocks
correctly at reboot, allowing to boot up after a DFS operation.
Also, check if the parent pll rate is indeed set to target rate, if not
fallback adjusting dividers to get within 5% of requested rate.
This is required to set correct rate for DDR PLLs on AM62A resulting in
lower DDR bandwidth when measured with lmbench (bw_mem)
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
|
|
During config rename and moveconfig some of the necessary
configs required for OSPI functionality was removed, Add
necessary OSPI configs amd drop MTDPART and MTDIDS configs
as the flash partitions are now described through device
tree.
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
Describe flash partition information in device tree for J721E EVM
and SK, this helps to remove the legacy mtdparts configuration and
also helps to keep Kernel and U-boot DT in sync. Also enable OSPI PHY
calibration pattern partition during SPL stage.
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
MTD subsystem has support for parsing partitions from device
tree, thus drop the MTDPARTS configs and enable CONFIG_SPI_FLASH_MTD.
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
Describe flash partition information in device tree, this helps
to remove the legacy mtdparts configuration and also helps to keep
Kernel and U-boot DT in sync.
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
Describe flash partition information in device tree, this helps
to remove the legacy mtdparts configuration and also helps to keep
Kernel and U-boot DT in sync.
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
MTD subsystem has support for parsing partitions from device
tree, thus drop the MTDPARTS configs and enable CONFIG_SPI_FLASH_MTD.
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
MTD subsystem has support for parsing partitions from device
tree, thus drop the MTDPARTS configs, also for cadence QSPI,
the REF_CLK is fetched from device tree thus remove that also
from the configs
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
Describe flash partition information in device tree, this helps
to remove the legacy mtdparts configuration and also helps to keep
Kernel and U-boot DT in sync. Also enable OSPI PHY calibration pattern
partition during SPL stage.
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
MTD subsystem has support for parsing partitions from device
tree, thus drop the MTDPARTS configs, also for cadence QSPI,
the REF_CLK is fetched from device tree thus remove that also
from the configs
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
Implement overrides for spl_spi_boot_bus() lookup function
according to bootmode selection, so as to support both QSPI
and OSPI boot using the same build.
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
Implement overrides for spl_spi_boot_bus() lookup function
according to bootmode selection, so as to support both QSPI
and OSPI boot using the same build.
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|
|
J784S4 has an OSPI NOR flash on its SOM connected the OSPI0 instance and a
QSPI NOR flash on the common processor board connected to the OSPI1
instance. Add support for the same and enabled them in SPL and U-Boot.
Signed-off-by: Hari Nagalla <hnagalla@ti.com>
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
|