Commit Graph

50113 Commits

Author SHA1 Message Date
Alexandre Bard a1ba8519f5 Show tag and length of bd fields 2021-05-31 11:38:45 +02:00
Alexandre Bard cc6d8e6e6f More debug 2021-05-31 11:07:29 +02:00
Alexandre Bard cf4bd12eeb debug importdata function 2021-05-31 10:52:08 +02:00
Alexandre Bard 73876e3f86 bd: print debug messages 2021-05-31 10:20:45 +02:00
Alexandre Bard 5cdce0ed93 config: Move CONFIG_OF_BOARD_SETUP to defconfig
Instead of include file

BugzID: 71440
2021-04-30 11:24:12 +02:00
Alexandre Bard d8d15bcfc8 HW23: Add support for reset reason
Part of SSF integration

BugzID: 71440
2021-04-30 11:23:59 +02:00
Alexandre Bard 4a75ab8d4f Backport reset-reason from TI branch
Part of SSF integration

BugzID: 71440
2021-04-30 11:23:48 +02:00
Alexandre Bard 9b969ee22a Update DA9063 driver to use IPC instead of I2C
Getting PMIC status through SCU

BugzID: 71440
2021-04-30 11:23:23 +02:00
Alexandre Bard 77c73457f0 Backports DA9063 driver from TI branch
In order to check reset-reason

BugzID: 71440
2021-04-30 11:22:53 +02:00
Alexandre Bard f08b2bccfc HW23: Print HW variant and version based on BD
BugzID: 58737
2021-02-18 21:08:24 +01:00
Alexandre Bard 2347f046e8 HW23: Set mac address based on board descriptor
BugzID: 70346
2021-02-18 14:46:47 +01:00
Alexandre Bard 7fd795ed3f HW23: Add board descriptor functions
These function allow to read the eeprom and parse the board descriptor.
The goal is then to set the mac address of the ethernet interface.

BugzID: 70346
2021-02-18 14:45:41 +01:00
Alexandre Bard 3e868e8600 netmodule: Add symlink to freescale/common
This symlink is created in yocto but is required to build uboot
properly.

In order to avoid mixing freescale common and netmodule common, it is
better and costs nothing to have it permanent here.

BugzID: 70346
2021-02-18 14:44:25 +01:00
Alexandre Bard ec54da360d HW23: Use new I2C DM interface
With yocto update to dunfell release, this config is not allowed anymore
and the code must use the new I2C DM interface.

BugzID: 69636
2021-01-15 13:43:48 +01:00
Alexandre Bard 14a5c2a688 hw23_defconfig: Fix format
Using savedefconfig instead of manually edited file.
Required for further changes.
Part of upgrade to yocto dunfell.

BugzID: 69636
2021-01-15 13:39:27 +01:00
Andrejs Cainikovs 7f6a031a08 nmhw23: add pxefile_addr_r environment variable
BugzID: 61347
2020-02-25 12:23:40 +01:00
Andrejs Cainikovs 53d4132f91 nmhw23: update default environment
BugzID: 61347
2020-02-24 16:47:14 +01:00
Andrejs Cainikovs f8493eca09 nmhw23: fix phy reset pin config
BugzID: 58757

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2020-02-11 08:33:33 +01:00
Andrejs Cainikovs 4f2f5f805e nmhw23: add led support
BugzID: 59207
2020-02-05 12:35:56 +01:00
Patrick Bruenn 0921091714 dm: led: auto probe() LEDs with "default-state"
To avoid board specificy LED activation code, automatically
activate gpio-leds with "default-state" property during bind().

Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
2020-02-05 12:13:21 +01:00
Patrick Bruenn e0351eaf58 dm: led: Support "default-state" property
Add support for the device tree property "default-state". This feature
might be useful for LEDs indicating "power on" or similar states.

Note: Even with this commit gpio-leds remain in reset state. That's
because the led_gpio is not probed until DM_FLAG_ACTIVATED is set.

Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
2020-02-05 12:13:07 +01:00
Andrejs Cainikovs cbdca4ab79 nmhw23: remove unused gpio init 2020-02-04 14:17:00 +01:00
Andrejs Cainikovs 207a9981df nmhw23: align autoboot stop char with other products
BugzID: 61158
2020-01-24 16:24:37 +01:00
Andrejs Cainikovs e07515cd6c nmhw23: disable uart0 pull-ups
UART0 RX/TX lines already have external pullups.

BugzID: 61158
2020-01-24 16:24:37 +01:00
Alexandre Bard 4677b0c457 hw23: Remove fdt_high address
With fdt_high = 0xffffffffffffffff, the fdt is not relocated and
used "in place" from its location in the fitImage. Since this location
can be overwritten while booting it can be unsafe.

By undefining the variable, the fdt will be relocated at the top of the
memory.

BugzID: 60949
2020-01-12 22:24:52 +01:00
Evan Thompson 631ba313ea ext4fs: Add ext4 extent tree cache
In ext4, the file inode can store up to 4 extents. If a file requires
more (due to size or fragmentation), an extent index tree is used.

Currently, u-boot reads a node from each level of the extent tree
for every block read, which is very inefficient when extent tree
depth is > 0.

This patch adds a cache for the extent tree. We cache the 1
most-recently-seen node at each extent tree level. The typical workload
is sequential block access, so once we leave a given tree node, it will
not be revisited. Therefore, it makes sense to just cache one node
per tree level.

Cached blocks are lazily allocated. The typical case is extent tree
depth = 0, in which case no caching is needed and no allocations will
occur.

For files with extent tree depth = 1, this patch produces a ~10x
improvement in read speed. For deeper extent trees, the improvement is
larger. On my test device, a 3MB file which previously took 9s to read
now takes 150ms.

Cache size is configurable with CONFIG_EXT4_EXTENT_CACHE_SIZE. However
the default of 5 (the maximum depth of well-formed extent trees) is
recommended.

Signed-off-by: Evan Thompson <evan.thompson@flukenetworks.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Cherry-picked-by: Alexandre Bard <alexandre.bard@netmodule.com>

BugzID: 57904
2020-01-12 21:59:54 +01:00
Andrejs Cainikovs c603e3265f nmhw23: adjust/cleanup i2c/eeprom config
BugzID: 58739
2019-08-30 14:26:19 +02:00
Andrejs Cainikovs 90a8e14315 i2c: fix eeprom command for 64bit architectures
BugzID: 58739
2019-08-30 14:25:12 +02:00
Andrejs Cainikovs 9dcd73013e nmhw23: remove mac command
BugzID: 58739
2019-08-29 16:29:46 +02:00
Andrejs Cainikovs 58d0c72309 nmhw23: add EEPROM support
BugzID: 58739
2019-08-29 12:25:28 +02:00
Andrejs Cainikovs 5212243198 nmhw23: refactor device tree
Apply the same style as in kernel
device tree: alphabetic order, etc.
2019-08-28 14:29:38 +02:00
Andrejs Cainikovs 4ea2816a36 imx8: suppress compiler warnings 2019-08-28 13:58:37 +02:00
Andrejs Cainikovs 5d3dfae745 nmhw23: set default client/server IPs
BugzID: 58718
2019-08-28 13:55:32 +02:00
Andrejs Cainikovs 5f9c58a99a nmhw23: add pxe command
BugzID: 58731
2019-08-28 12:07:56 +02:00
Andrejs Cainikovs 65c42a85f2 nmhw23: SCU firmware update
- Use internal PCIe clock

BugzID: 57852
2019-07-12 12:01:57 +02:00
Alexandre Bard 5b716b4e5f HW23: Set environnement to boot from ostree image
BugzID: 57825
2019-07-10 10:20:05 +02:00
Alexandre Bard 0fbd99d1de hw23: Move uboot environnement below first partition
First partition (root) starts at 64k.
Writing the environnement at this place breaks it.
64k is now the top boundary of the environnement.

BugzID: 57825
2019-07-09 16:07:25 +02:00
Ramon Moesching 74585ec488 imx8_nmhw23: enable support for loading fitimage from ext4
Enable ext4 supoort and allow importing existing environment
file from filesystem

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2019-07-02 17:37:40 +02:00
Andrejs Cainikovs 4d207268d5 nmhw23: SCU firmware with new *temporary* PMIC config 2019-06-13 17:26:15 +02:00
Andrejs Cainikovs 87a5d72dbc Update .gitignore: do not track external build tools 2019-06-06 17:05:32 +02:00
Andrejs Cainikovs a352c62e0c nmhw23: skip resource check 2019-06-06 17:04:16 +02:00
Andrejs Cainikovs fead87fe65 Update .gitignore: track firmware files 2019-06-06 12:21:11 +02:00
Andrejs Cainikovs 8ca326d9a4 nmhw23: port changes to NXP branch 2019-06-05 12:26:32 +02:00
Andrejs Cainikovs f3931b64d7 Fix nmhw23 build script 2019-06-04 14:57:07 +02:00
Andrejs Cainikovs 678b917dd3 Update nmhw23 build script 2019-06-04 14:49:02 +02:00
Andrejs Cainikovs 5e66c72de4 nmhw23: support large uncompressed images 2019-06-04 14:28:50 +02:00
Andrejs Cainikovs 7a57d88098 nmhw23: include mtest command
Plus tab fixes in board header file
2019-06-04 14:28:41 +02:00
Andrejs Cainikovs 614105eaa1 nmhw23: add ethernet config 2019-06-04 14:27:26 +02:00
Andrejs Cainikovs b093d301fc nmhw23: add sjainfo command 2019-06-04 14:27:06 +02:00
Andrejs Cainikovs 411c5216d4 nmhw23: add extra clock cycle for spi3 2019-06-04 14:26:57 +02:00