24 Jul, 2017
1 commit
-
commit 6183b29559107650cb38f905e069a93ff9da1d7d upstream
Currently while setting the vsel value for dcdc1 and dcdc2
the driver is wrongly masking the entire 8 bits in the process
clearing PFM (bit7) field as well. Hence describe an appropriate
mask for vsel field and modify only those bits in the vsel
mask.Source: http://www.ti.com/lit/ds/symlink/tps65218.pdf
Signed-off-by: Keerthy
Fixes: 86db550b38 ("power: Add support for the TPS65218 PMIC")
Reviewed-by: Jaehoon Chung
20 Jul, 2017
1 commit
-
The layout of the eMMC has been updated in commit 33348a383808
("ARM: ti: Update layout for MMC and eMMC (env and dfu)"). This patch
updates the GPT table for android to match this new layout for the
following items:
- xloader,
- u-boot
- the u-boot environment variables
- the DTB (aka os args, aka environment)Signed-off-by: Jean-Jacques Hiblot
17 Jul, 2017
1 commit
-
Increase PHY autonegoiate time from current 8 seconds
to 16 seconds. On some Ethernet switches, 2 times out
of 100, the Micrel KSZ9031 PHY on AM572x IDK board seems
to take more than 8 seconds to establish link at gigabit
speeds.Since the timeout is only an upper bound on waiting time
it should not affect users who do not face the same
problem.Signed-off-by: Sekhar Nori
15 Jul, 2017
2 commits
-
The PMMC firmware should be bundled with the FIT image for HS devices,
remove the steps that load and install this firmware outside of FIT.Signed-off-by: Andrew F. Davis
-
Add a new image type representing TI Power Management
Micro-Controller (PMMC) Firmware image type.Signed-off-by: Andrew F. Davis
03 Jul, 2017
1 commit
-
Add ddr voltage rail (dcdc3) configuration. Set the dcdc3
DDR supply to 1.35V.Signed-off-by: Keerthy
27 Jun, 2017
1 commit
-
At present malloc_base/_limit/_ptr are not initialised in spl_init() when
we call spl_init() in board_init_f(). This is due to a recent change aimed
at avoiding overwriting the malloc area set up on some boards by
spl_relocate_stack_gd().However if CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN is not defined, we now
skip setting up the memory area in spl_init() which is obviously wrong.To fix this, add a new function spl_early_init() which can be called in
board_init_f().Fixes: b3d2861e (spl: Remove overwrite of relocated malloc limit)
Signed-off-by: Eddie Cai
Rewrote spl_{,early_}init() to avoid duplicate code:
Rewrite/expand commit message:
Signed-off-by: Simon Glass
Reviewed-by: Eddie Cai
15 Jun, 2017
2 commits
-
commit 7a53a1a8115b upstream
The problems with the current DFU layout are:
MMC: The space allocated for u-boot is too small for the latest u-boot
(>750KB). We need to increase it. eMMC uses a much bigger area (2MB).
eMMC: region "u-boot.img.raw" overlaps the environment area and the region
"spl-os-image.raw".
both: region "spl-os-image.raw" is quite small and can't handle android
kernelsFixing this requires growing some regions and moving others.
Care has been taken to leave some room for further growth of
"spl-os-args.raw".
Also the "env" now appears in the dfu so that it's apparent that the
region is not free space that can be used to grow "u-boot.img.raw".
The MLO region is 0x100 sectors wide but the 0x100 are unused in case the
MLO comes too overflow this areas.
The total space allocated for those raw binaries is 16MB, of which 13+MB
are reserved for the kernel image.Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Sam Protsenko -
On secure devices the initial secure software may install a firewall at
the end of DRAM, define protected RAM to avoid space.Signed-off-by: Andrew F. Davis
07 Jun, 2017
2 commits
-
When fat command is enabled, enable fatwrite too
so U-Boot can create new files too.Signed-off-by: Sekhar Nori
-
As per the datasheet[1] available for DDR2 part on board
the OMAP-L138 LCDK, the tXSNR (exit self refresh to a
non-read command) is 137.5 ns. This corresponds to a
value of 20 to be written to T_XSNR register field of
OMAP-L138's DDR configuration. The DDR2 is at 150 MHz.Fix this. The correct value also appears on the initialization
scripts (called CCS GEL files) available on TI's wiki pages[2][1] http://www.samsung.com/global/business/semiconductor/file/product/ds_k4t1gxx4qf_rev12-0.pdf
[2] http://processors.wiki.ti.com/index.php/L138/C6748_Development_Kit_(LCDK)#CCS_XML_.26_GEL_FilesReviewed-by: Tom Rini
Signed-off-by: Sekhar Nori
24 May, 2017
1 commit
-
Right now the u-boot,dm-pre-reloc flag will make each marked node
always appear in both spl and tpl. But systems needing an additional
tpl might have special constraints for each, like the spl needing to
be very tiny.So introduce two additional flags to mark nodes for only spl or tpl
environments and introduce a function dm_fdt_pre_reloc to automate
the necessary checks in code instances checking for pre-relocation
flags.The behaviour of the original flag stays untouched and still marks
a node for both spl and tpl.Signed-off-by: Heiko Stuebner
Reviewed-by: Simon Glass
Tested-by: Kever Yang
22 May, 2017
2 commits
-
One some keystone2 platforms like K2G ICE, there is an option
to switch between 24MHz or 25MHz as sysclk. But the existing
driver assumes it is always 24MHz. Add support for getting
all reference clocks dynamically by reading boot pins.Signed-off-by: Lokesh Vutla
-
Update MPU frequencies and voltages as per the latest
DM[1] dated: OCT 2011 Revised APRIL 2016, Section 5.4.
Below is the consolidated data:MPU values for PG 2.0 and later(Package ZCZ and ZCE):
-------------------------------------------------------
| | ZCZ | ZCE |
|-------------------------------------------------------|
| | VDD[V] | ARM [MHz] | VDD[V] | ARM [MHz] |
|-------|----------|------------|----------|------------|
| NITRO | 1.325 | 1000 | NA | NA |
|-------|----------|------------|----------|------------|
| TURBO | 1.26 | 800 | NA | NA |
|-------|----------|------------|----------|------------|
|OPP120 | 1.20 | 720 | NA | NA |
|-------|----------|------------|----------|------------|
|OPP100 | 1.10 | 600 | 1.10 | 600 |
|-------|----------|------------|----------|------------|
| OPP50 | 0.95 | 300 | 0.95 | 300 |
-------------------------------------------------------There is no eFuse blown on PG1.0 Silicons due to which there is
no way to detect the maximum frequencies supported. So default
to OPP100 for which both frequency and voltages are common on both
the packages.[1] http://www.ti.com/lit/ds/symlink/am3356.pdf
Signed-off-by: Lokesh Vutla
10 May, 2017
1 commit
-
compile out cli_hush.c for spl/dfu and
use cli_simple_run_command for dfu to
reduce the spl-dfu memory foot print.Adding CONFIG_SPL_DFU_MMC to Kconfig and
use CONFIG_IS_ENABLED(DFU_MMC).Signed-off-by: Ravi Babu
07 May, 2017
1 commit
-
On all other platforms the command 'findfdt' populates the variable
'fdtfile', but on K2G we only populate 'name_fdt'. The generic boot
and automation scripts fail when 'findfdt' is not populated, fix
this for K2G.Signed-off-by: Andrew F. Davis
04 May, 2017
1 commit
-
No reason to use a separate load script for am33xx than using
omap-common load script.Signed-off-by: Lokesh Vutla
21 Apr, 2017
4 commits
-
statistics are kept for read and write transfers.
it contains:
- amount of data transferred
- time taken by the transfers
- number of errors
- number of transfersSigned-off-by: Jean-Jacques Hiblot
-
If the initialization fails when trying to use HS200 or DDR52, then remove
the failing capability for the capabilities supported by the host and
restart the whole initialization process.Signed-off-by: Jean-Jacques Hiblot
-
We first split the CONFIG_BOOTCOMMAND into its components to improve
readability. We then make the following order changes:- Run findfdt first so the fdt name can be used in envboot like OMAP
- Install the boot monitor before running the PMMC so we can make any
needed secure changes before PMMC, do this on both HS and non-HS
- Move set_name_pmmc to just before get_pmmc_${boot}Signed-off-by: Andrew F. Davis
-
The latest PG for K2HK updates the secure ROM so that a common
method to install the secure boot monitor using mon_install
command is now possible across all keystone devices.This patch updates the secure monitor install to use the
mon_install command. This also removes magic values used
previously on secure k2 devices.Signed-off-by: Madan Srinivas
Signed-off-by: Thanh Tran
Signed-off-by: Lokesh Vutla
12 Apr, 2017
1 commit
-
commit 5bb7318f9c9fcaa029718149ad061c6031c81022 upstream.
The env command 'args_fit' does not define a root path, this forces us to
embed the rootfs into the FIT image. FIT images do not need to contain a
rootfs, when they do not the kernel will fall-back to the kernel argument
'root', if this is not defined the kernel will not boot. It is safe to
add this as when we do have the rootfs in FIT this argument is ignored.
As 'loadfit' is only called from the MMC boot path, use 'args_mmc' to
correctly populate 'bootargs'.Signed-off-by: Andrew F. Davis
Reviewed-by: Lokesh Vutla
11 Apr, 2017
3 commits
-
The load address of ramdisk, rdaddr is 0x88080000 and fit_loadaddr
is defined as 0x88000000. This leaves only 512Kbytes for the
fit image. When the FIT images are larger than this, it will
overwite the ramdisk and cause the boot to fail.For eg, The K2 HS fit images are a few MB and end up overwriting
the ramdsk. This patch moves the fit_loadaddr to 0x87000000,
leaving a 16MB window for the fit image. This memory can be
reclaimed once the kernel starts running.Signed-off-by: Madan Srinivas
-
Adds env variables to install secure boot monitor for K2HK HS devices.
Signed-off-by: Madan Srinivas
-
This patch moves u-boot environment variables that can be shared
across K2 devices to a common location, from the k2e specific
file.Acked-by: Andrew F. Davis
Signed-off-by: Madan Srinivas
07 Apr, 2017
5 commits
-
Now that we have common MMC/SD boot environment
variables that can be used across TI platforms,
switch OMAP-L138 LCDK to use them.As a nice side-effect, we get support for using
uEnv.txt on this platform.Signed-off-by: Sekhar Nori
Reviewed-by: Lukasz Majewski
Reviewed-by: Tom Rini -
Introduce include/environment/ti/mmc.h that
consolidates environment variable definitions
for various TI boards that support MMC/SD.This allows reuse of same environment variables
on non-ARMv7 TI platforms like OMAP-L138 for
example.While at it, move DFU-related environment variable
includes to only non-SPL builds for AM335x and
AM437x since they are not really used for SPL
today.Signed-off-by: Sekhar Nori
Reviewed-by: Lukasz Majewski
Reviewed-by: Tom Rini -
Use environment variables for various memory addresses
used on OMAP-L138 LCDK board. This makes it easy to
customize the boot process.Signed-off-by: Sekhar Nori
Reviewed-by: Lukasz Majewski
Reviewed-by: Tom Rini -
Enable some generic filesystem commands as
well as disk partition related commands for
OMAP-L138 LCDK board.These help in booting Linux from MMC/SD, for
example.Signed-off-by: Sekhar Nori
Reviewed-by: Lukasz Majewski
Reviewed-by: Tom Rini -
OMAP-L138 LCDK board does not have a SPI flash.
Remove spiboot related environment variable
definitions.Signed-off-by: Sekhar Nori
Reviewed-by: Lukasz Majewski
Reviewed-by: Tom Rini
22 Mar, 2017
2 commits
-
On am43xx, MMC is always initialized in SPL irrespective of boot mode,
hence, lets keep the environment in MMC (which is default for peripheral
boot modes) for USBETH boot mode as well.
Therefore, don't define CONFIG_ENV_IS_NOWHERE in case of USBETH/RNDIS
boot.Signed-off-by: Vignesh R
-
On am335x, MMC is always initialized in SPL irrespective of boot mode,
hence, lets keep the environment in MMC (which is default for peripheral
boot modes) for USBETH boot mode as well.
Therefore, don't define CONFIG_ENV_IS_NOWHERE in case of USBETH/RNDIS
boot.Signed-off-by: Vignesh R
21 Feb, 2017
1 commit
-
The most common name for a FIT image containing a bootable kernel is
"fitImage", as our builds now use this name also, change this to the
default in our U-Boot environment.Signed-off-by: Andrew F. Davis
16 Feb, 2017
6 commits
-
Add in code to initialize the DWC3 gadget icontroller so that we can do
RNDIS in SPL on these platforms.Signed-off-by: Tom Rini
Signed-off-by: Kishon Vijay Abraham I
Signed-off-by: Mugunthan V N
Reviewed-by: Tom Rini
Signed-off-by: Vignesh R -
CONFIG_SPL_ABORT_ON_RAW_IMAGE causes SPL to abort and move on when it
encounters RAW images, express this same functionality as a positive
option enabling support for RAW images: CONFIG_SPL_RAW_IMAGE_SUPPORTSigned-off-by: Andrew F. Davis
-
Enable ti phy driver dp83867 for k2g based boards.
Signed-off-by: Murali Karicheri
Acked-by: Mugunthan V N
Signed-off-by: Sekhar Nori -
Updates the default u-boot environment variables to support secure
boot. On secure devices, a secure boot monitor (sec-bm) needs to
be installed by u-boot. This sec-bm is installed via a TI
proprietary interface. The environment variables are also updated
to use FIT images while authenticating boot images for secure devices.Signed-off-by: Madan Srinivas
-
The function 'board_fit_image_post_process' is defined only when the
config option CONFIG_FIT_IMAGE_POST_PROCESS is enabled. For secure
systems that do not use SPL but do use FIT kernel images, only
CONFIG_FIT_IMAGE_POST_PROCESS will be defined, which will result in an
implicit declaration of function 'board_fit_image_post_process' warning
while building u-boot. Fix this warning.Signed-off-by: Madan Srinivas
Signed-off-by: Andrew F. Davis
Reviewed-by: Tom Rini -
Tested-by: Sekhar Nori
Signed-off-by: Jean-Jacques Hiblot
15 Feb, 2017
1 commit
-
Enable CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to allow "board_name" to
be set depending on the board it is being ran on.Update findfdt to use this new dynamic board_name value to determine
which dtb should be used.Signed-off-by: Franklin S Cooper Jr