modify u_qe_init to upload QE firmware from SD card when it is SD
boot
Signed-off-by: Zhao Qiang
---
Changes for v2:
- fix issue of memory leak
Changes for v3:
- add CONFIG_SYS_QE_FMAN_FW_IN_NOR to ls1021a
Changes for v4:
- rebase due to memory-mapping
Adjust the order to make it clear that *devp is set to NULL by default.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/lists.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Applied to u-boot-dm
Hi Tom,
This is the first two of the livetree series as well as some
driver-model adjustments for MMC.
It's up to you if you want to take this now, or wait. I will send a
new version of the 3rd livetree series later by early next week and am
happy to do this all at once if you prefer. On the
Update this driver to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/power/pmic/i2c_pmic_emul.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
Applied to u-boot-dm
The of_ prefix conflicts with the livetree version of this function.
Rename it to avoid problems when we add livetree support.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/device.c | 2 +-
drivers/firmware/psci.c
It is common to read a device-tree property from the node associated with
a device. Add convenience functions to do this so that drivers do not need
to deal with accessing the ofnode from the device.
These functions all start with 'dev_read_' to provide consistent naming
for all functions which
Since U-Boot supports both a live tree and a flat tree, we need an easy
way to access the tree without worrying about which is currently active.
To support this, U-Boot has the concept of an ofnode, which can refer
either to a live tree node or a flat tree node.
For the live tree, the reference
Adjust this function to work with livetree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/uclass.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Applied to u-boot-dm
___
U-Boot
Update the i2c uclass to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/i2c/i2c-uclass.c | 28 +---
include/i2c.h| 3 +--
2 files changed, 14 insertions(+), 17 deletions(-)
Running a new test should reset the sandbox state to avoid tests
interferring with each other. Move the existing state-reset code into a
function so it can be used from tests.
Also update the code to reset the SPI devices and adjust the test code to
call it.
Signed-off-by: Simon Glass
Add support for requesting GPIOs with a live device tree.
This involves adjusting the function signature for the legacy function
gpio_request_by_name_nodev(), so fix up all callers.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
Add a Kconfig option to enable a live device tree, built at run time from
the flat tree. Also add structure definitions and a root node.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
dts/Kconfig | 11
Add an implementation of strcspn() which returns the number of initial
characters that do not match any in a rejection list.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/linux/string.h | 15 +++
lib/string.c | 24
When a live tree is being used we need to record the node that was used to
create the device. Update device_bind_with_driver_data() to support this.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/device.c| 18 --
The standard sandbox board cannot run the of-platdata test since it needs
SPL. Also, we should test the flat tree version of sandbox.
Add these tests to the default test script.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
test/run | 8 +++-
1
Update the usb uclass to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/usb/host/usb-uclass.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
Applied to u-boot-dm
Update the fixed-rate clock driver to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/clk/clk_fixed_rate.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Applied to u-boot-dm
We want to run the same test on flat and live trees. In preparation for
this, create a new function which handles running a test.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
test/dm/test-main.c | 56
Add a basic assortment of functions to access the live device tree. These
come from Linux v4.9 and are modified for U-Boot to the minimum extent
possible. While these functions are now very stable in Linux, it will be
possible to merge in fixes if needed.
Signed-off-by: Simon Glass
Show the filename of the test being run. Skip the path and show just the
base name.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/test/test.h | 2 ++
test/dm/test-main.c | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
Applied to
Modify regmap to support livetree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/regmap.c | 37 ++---
1 file changed, 22 insertions(+), 15 deletions(-)
Applied to u-boot-dm
Add functions to access addresses in the device tree. These are brought
in from Linux 4.10.
Also fix up the header guard for fdtaddr.h to avoid confusion.
Signed-off-by: Simon Glass
---
Changes in v3:
- Fix up the fdtaddr.h header guard to avoid conflicts
Changes in v2:
It is useful to run the driver model tests with both livetree and flat
tree in case something is different between the two. Add this feature to
the test runner.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
test/dm/test-main.c | 23
In linux v4.9 this returns a value. This saves checking the warning
condition twice in some code.
Update the U-Boot version to do this also.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/linux/compat.h | 8 ++--
1 file changed, 6
Use the new dev_read...() functions to access the device tree, so that a
live tree can be used.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/gpio/sandbox.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
Applied to u-boot-dm
Adjust this function to use an ofnode instead of an offset, so it can be
used with livetree. This involves updating all callers.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/lists.c | 12 ++--
drivers/core/root.c
Update this driver to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/power/regulator/fixed.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
Applied to u-boot-dm
When starting up driver model with a live tree we need to scan the tree
for devices. Add code to handle this.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/root.c | 58 +
Move the main part of the GPIO request function into a separate function
so that it can be used by the live tree function when added. Update the
xlate method to use a node reference.
Update all GPIO drivers to handle the modified xlate() method.
Signed-off-by: Simon Glass
---
Add a function which looks up a device by its node (either in live tree
or flat tree).
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/uclass.c| 37 +
include/dm/uclass-internal.h | 18
This function does not change the device tree so adjust it to use const
for this parameter.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
common/fdt_support.c | 2 +-
include/fdt_support.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Add a sandbox board to test the non-livetree build (i.e. with
CONFIG_OF_FLAT disabled). This increases our build and test coverage.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
board/sandbox/MAINTAINERS | 7 ++
Some functions deal with structured data rather than simple data types.
It makes sense to have these in their own file. For now this just has a
function to read a flashmap entry. Move the data types also.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
This function converts the flat device tree into a hierarchical one with
C structures and pointers. This is easier to access.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/of_live.h | 24
lib/Makefile | 1 +
lib/of_live.c |
Hi Tom,
This incorporates the v2 patch for 'fdt: Build the new python libfdt
module' which should fix the problem with the original pull request.
The following changes since commit be62fbf376261ab3a4ed5db3bf54d5df9e216d9f:
Merge branch 'rmobile' of git://git.denx.de/u-boot-sh (2017-05-23
Update this driver and key_matrix to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/input/cros_ec_keyb.c | 24
drivers/input/key_matrix.c | 19 +--
Add some definitions and helpers for livetree in the main of.h header
file. These include:
- reading multi-cell integers
- default number of address/size cells
- functions for comparing names
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
This prints out the wrong pointers. Fix it.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/misc/cros_ec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Applied to u-boot-dm
___
U-Boot
Update the pmic uclass and all pmics to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/power/pmic/act8846.c | 8 +++-
drivers/power/pmic/lp873x.c | 12 +---
drivers/power/pmic/max77686.c|
Update the power domain uclass to support livetree. Fix the xlate() method
which has no callers.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/power/domain/power-domain-uclass.c | 19 ---
include/power-domain-uclass.h
If enabled, build a live device tree after relocation. This can then be
used by driver model.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
common/board_r.c | 12
1 file changed, 12 insertions(+)
Applied to u-boot-dm
These two functions have an of_ prefix which conflicts with naming used
in of_addr. Rename them:
fdt_read_number
fdt_support_bus_default_count_cells
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
arch/arm/cpu/armv8/fsl-layerscape/fdt.c| 4
Update the PCI uclass to support livetree. This mostly involves fixing
the address decoding from the device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/pci/pci-uclass.c | 26 --
1 file changed, 12
Convert this driver to support the live device tree and remove the old
fdtdec support.
The keyboard is not yet converted.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/misc/cros_ec.c | 33 ++---
Modify simple-bus to support livetree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/simple-bus.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Applied to u-boot-dm
___
U-Boot
Add functions to add addresses in the device tree using ofnode references.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/ofnode.c | 27 +++
include/dm/ofnode.h | 23 ++-
2 files changed, 49
Some tests require either livetree or flat tree. Add flags to allow the
tests to specify this. Adjust the test runner to run with livetree (if
supported) and then flat tree.
Some video tests are quite slow and running on flat tree adds little extra
test value, so run these on livetree only.
Update this driver so that it works with livetree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/misc/i2c_eeprom_emul.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
Applied to u-boot-dm
Use ut_asserteq() to test equality since this gives a better error message
on failure. Also make a few of the tests more specific.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
test/dm/phy.c | 15 +--
1 file changed, 9 insertions(+), 6
This is not needed. Drop it.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/asm-generic/gpio.h | 1 -
1 file changed, 1 deletion(-)
Applied to u-boot-dm
___
U-Boot mailing list
U-Boot@lists.denx.de
Update the regulator uclass to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/power/regulator/regulator-uclass.c | 39 --
1 file changed, 16 insertions(+), 23 deletions(-)
Applied to
This functions works like strchr() but returns the end of the string if
the character is not found. Add an implementation of this.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/linux/string.h | 13 +
lib/string.c | 8
Adjust this function to us an ofnode instead of an offset, so it can be
used with livetree. This involves updating all callers.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/clk/at91/pmc.c | 2 +-
drivers/core/lists.c
Update the sandbox phy driver to support livetree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/phy/sandbox-phy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Applied to u-boot-dm
___
When the live tree is supported some functions need to change a little.
Add an implementation which is used when not inlining these functions.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/core/Makefile | 3 +
drivers/core/read.c | 140
Hi Eddie,
On 23 May 2017 at 19:43, Eddie Cai wrote:
> 2017-05-24 8:44 GMT+08:00 Simon Glass :
>> Hi Eddie,
>>
>> On 22 May 2017 at 00:43, Eddie Cai wrote:
>>> this patch enable rockusb support on rk3288 based device.
>>>
Update the sandbox flash and hub USB emulators to support a live device
tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/usb/emul/sandbox_flash.c | 4 +---
drivers/usb/emul/sandbox_hub.c | 3 +--
2 files changed, 2 insertions(+), 5
We should not be including a PMIC header file in the board config. Move it
to a C file.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add new patch to move pmic header out of config file
Changes in v2: None
board/samsung/common/misc.c | 1 +
include/configs/trats2.h|
Update the mailbox uclass to support livetree. Fix the xlate() method
in all callers.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/mailbox/mailbox-uclass.c | 20
drivers/mailbox/tegra-hsp.c | 2 +-
Update the adc uclass to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/adc/adc-uclass.c | 14 ++
1 file changed, 6 insertions(+), 8 deletions(-)
Applied to u-boot-dm
Update the clk uclass to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/clk/clk-uclass.c | 17 +++--
1 file changed, 7 insertions(+), 10 deletions(-)
Applied to u-boot-dm
Update the xlate() method to use ofnode_phandle_args instead of the fdtdec
variant. This will allow drivers to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/clk/at91/pmc.c| 2 +-
drivers/clk/at91/pmc.h| 2
Update the reset domain uclass to support livetree. Fix the xlate() method
which has no callers.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/reset/reset-uclass.c | 21 ++---
include/reset-uclass.h | 4 ++--
2 files
Update the mmc uclass to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/mmc/mmc-uclass.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Applied to u-boot-dm
___
Update the phy uclass to support livetree. Fix the xlate() method
which has no callers.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/phy/phy-uclass.c | 21 +
include/generic-phy.h| 3 +--
2 files changed, 10
We cannot access the device tree via an offset when running in livetree
mode. Separate out that part of the bus' children tests and mark it as
for the flat tree only.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
test/dm/bus.c | 16 +++-
We cannot run this test with livetree since it uses device tree offsets.
Mark it as flat tree only.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
test/dm/test-fdt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Applied to u-boot-dm
This is not needed in this driver. Drop it.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/i2c/sandbox_i2c.c | 1 -
1 file changed, 1 deletion(-)
Applied to u-boot-dm
___
U-Boot mailing list
Update this driver to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/mtd/spi/sandbox.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
Applied to u-boot-dm
This is not needed in this driver. Drop it.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/rtc/i2c_rtc_emul.c | 1 -
1 file changed, 1 deletion(-)
Applied to u-boot-dm
___
U-Boot mailing list
Update the SPI uclass to support a live device tree. Also adjust
spi_slave_ofdata_to_platdata() to accept a device instead of a blob and
offset.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/spi/spi-uclass.c | 31
Update the SPI flash uclass to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/mtd/spi/spi_flash.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
Applied to u-boot-dm
Update this driver to support a live device tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/sysreset/sysreset_sandbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-dm
Line up this backslash with all the others.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/test/ut.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-dm
___
U-Boot mailing
This updates sandbox to use a live device tree. This means that after
relocation (from board_init_r() onwards) it no-longer uses flat device
tree.
Signed-off-by: Simon Glass
---
Changes in v3: None
Changes in v2:
- Rewrite based on testing and refining the v1 series
- Convert
On Wed, May 24, 2017 at 09:39:04PM +, york sun wrote:
> Tom,
>
> I am trying up update my test servers. You have been changing code to
> make gcc-6 happy. Can you share where to get prebuilt (prefer
> maintained) toolchain packages?
Yes. For travis-ci, I have the Linaro 2017.02 gcc-6.3.1
Tom,
I am trying up update my test servers. You have been changing code to
make gcc-6 happy. Can you share where to get prebuilt (prefer
maintained) toolchain packages?
York
___
U-Boot mailing list
U-Boot@lists.denx.de
On Wed, May 24, 2017 at 5:56 PM, Fabio Estevam wrote:
> Then pass 'earyprintk' in the kernel command line as well.
I meant "earlyprintk".
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
Hi Fausto,
Please do not top post in mailing lists.
On Wed, May 24, 2017 at 1:29 PM, Fausto Sessego
wrote
>
>
> I tried many procedures but i did'nt found any solution.
>
Try to do:
make menuconfig
Kernel hacking --->
[*] Kernel low-level debugging functions (read
Hi Tom,
On Wed, 2017-05-24 at 11:04 -0400, Tom Rini wrote:
> We only want to apply files such as 'omap5-u-boot.dtsi', which resides
> in arch/arm/dts/ to other files in arch/arm/dts/ and not say
> test/overlay/. Rework the make logic to check for -u-boot.dtsi files in
> the same directory as
Hi Phil,
> -Original Message-
> From: Phil Edworthy [mailto:phil.edwor...@renesas.com]
> Sent: Wednesday, May 24, 2017 7:34 AM
> To: Albert Aribaud
> Cc: Tom Rini ; Vikas MANOCHA ;
> Kamil Lulko
Previous to MC v10.x, port mac address was specified via DPL. Since
newer MC versions are compatible with old style DPLs, make the u-boot
env mac addresses visible there. This applies only to DPLs that have an
older version.
DPLs use 32 bit values for specifying MAC addresses. U-boot environment
DPAA2 platforms boot the Management Complex based on the u-boot env
variable "mcinitcmd". Instead of doing this step on each platform
individually, define a single mc_env_boot function in the MC driver,
since it's semantically tied to it.
Call the function in a per-board reset_phy hook, as it
Ok.
The Kernel doesn't start.
U-Boot 2016.07 (May 24 2017 - 17:11:18 +0200)
CPU: Freescale i.MX6Q rev1.2 at 792MHz
CPU: Industrial temperature grade (-40C to 105C) at 20C
Reset cause: POR
Board: i.MX6Q TIBIDABO
Support: http://www.infomob.it/
I2C: ready
DRAM: gd->ram_size: 2147483648
2017-05-19 21:24 GMT+09:00 Masahiro Yamada :
> The MMC framework in U-Boot does not support a systematic API for
> timing switch like mmc_set_timing() in Linux.
>
> U-Boot just provides a hook to change the clock frequency via
> mmc_set_clock(). It is up to drivers
Adding the unit address to the memory node was causing the below error:
Warning (reg_format): "reg" property in /memory has invalid length
(8 bytes) (#address-cells == 2, #size-cells == 2)
Further debugging showed that this was due to the memory node added by
default to skeleton.dtsi which was
Add basic DT support for K2G ICE evm. Only minimal peripherals are
supported to allow console output and MMC boot.
Signed-off-by: Franklin S Cooper Jr
---
Version 2 changes:
Updated the dts to mimic version accepted into the Linux kernel.
arch/arm/dts/Makefile
Now with support for U-boot runtime dtb selection each board needs to
define board_fit_config_name_match so U-boot can determine what the
correct dtb is within the FIT blob.
Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Tom Rini
---
u-boot.bin is a copy of:
u-boot-fit-dtb.bin if CONFIG_FIT_EMBED is enabled,
u-boot-dtb.bin if CONFIG_OF_SEPARATE is enabled,
u-boot-nodtb.bin if DT is not enabled.
So, use u-boot.bin to to generate keystone images instead of
u-boot-dtb.bin
Signed-off-by: Franklin S Cooper Jr
Some code doesn't apply to K2G ICE evm. Therefore, use board detection to
wrap these calls.
Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Tom Rini
---
board/ti/ks2_evm/board.c | 14 +-
1 file changed, 9 insertions(+), 5 deletions(-)
diff
Different K2G evms may need to program the various
KS2_DDRPHY_DATX8_X_OFFSET registers in different ways. Therefore, use
the mask and val registers for each KS2_DDRPHY_DATAX_X_OFFSET to
properly program the register.
Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Tom Rini
Add a function that can be used to determine if the board being ran on is
a K2G Industrial Communication Engine EVM or K2G General Purpose EVM based
on values programmed on the EEPROM.
Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Tom Rini
---
Add configuration settings used by the K2G ICE evm. Also use board
detection to determine which DDR3 configuration to use.
Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Tom Rini
---
board/ti/ks2_evm/ddr3_k2g.c | 62
For K2G, runtime DTB selection utilizes the embedded_dtb_select function.
Therefore, define the function which will perform a EEPROM read and then
retries selecting the correct dtb now that it can detect which board its
on. For other Keystone devices use an empty function since they will still
use
Certain peripherals used by K2G GP aren't used on K2G ICE evm. Or
configuration is slightly different. Therefore, use board detection to
deal with these variations.
Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Tom Rini
---
board/ti/ks2_evm/board_k2g.c |
When the EEPROM is first read its contents are stored in memory as a
cache to avoid further I2C operations. To determine if the EEPROM was
previously read the easiest way is to check the memory to see if the
EEPROM's magic header value is set. Create a new function that can
determine if the EEPROM
Include K2G ICE to OF_LIST so it can be used for runtime board
detection.
Signed-off-by: Franklin S Cooper Jr
---
configs/k2g_evm_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/k2g_evm_defconfig b/configs/k2g_evm_defconfig
index
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
Reviewed-by: Tom Rini
Enable various config options to allow U-boot at runtime to select the
proper dtb to use from the list of dtb's within the FIT image.
Signed-off-by: Franklin S Cooper Jr
Reviewed-by: Tom Rini
---
configs/k2e_evm_defconfig | 3 +++
configs/k2g_evm_defconfig
Disable netcp by default like all other peripherals in the dtsi file.
Enable the peripheral explicitly in the board specific dts file.
Signed-off-by: Franklin S Cooper Jr
---
arch/arm/dts/keystone-k2g-evm.dts| 4
arch/arm/dts/keystone-k2g-netcp.dtsi | 1 +
2 files
1 - 100 of 166 matches
Mail list logo