Commit Graph

46910 Commits

Author SHA1 Message Date
Stefano Babic 2fe363eb69 Add target to generate initial environment
The initial environment is linked to the u-boot binary. Modifying the
environment from User Space with the env tools requires that the tools
are always built together with the bootloader to be sure that they
contain the initial environment in case no environment is stored into
persistent storage or when a board boots with just the default
environment. This makes difficult for distros to provide a general
package to access the environment. A simpler way is if the tools are
generic for all boards and a configuration file is given to provide the
initial environment.

The patch just generates the initial environment by extracting it from
the compiled object. This file can then be used for tools in user space
to initialize the environment.

Signed-off-by: Stefano Babic <sbabic@denx.de>
(cherry picked from commit bdaa73a5b3)
2023-08-22 23:03:16 +00:00
Marcel Reichmuth 09c142e273 FIX: [hw14] enable sata power connector on pse boards
BugzId: 82693
2023-03-23 15:24:54 +01:00
Marcel Reichmuth b33dcc1089 FIX: [hw14] pcie clock not working on mc boards >=3.3 and <4.0
BugzId: 80765
2022-07-27 14:40:18 +02:00
Marcel Reichmuth 178cadd53e FIX: [hw14] fix pcie serdes mapping for slot 1
BugzId: 80757
2022-07-27 09:21:44 +02:00
Marcel Reichmuth b5e25ec53c ADD: [hw17] support for USB3.0 on slot 0
BugzId: 79908
2022-06-14 09:17:22 +02:00
Marcel Reichmuth 0d562ef932 FIX: CVE-2022-30790, CVE-2022-30552
BugzId: 80018
BugzId: 80019
2022-06-09 09:32:06 +02:00
Marcel Reichmuth ea62802ceb FIX: [hw14] assert alternate resets of slots 1 & 5 during boot
BugzId: 78363
2022-03-10 10:51:02 +01:00
Marcel Reichmuth 993259da01 ADD: [hw14] release alternate resets an slots 1 & 5 of mc board v5.2
BugzId: 78363
2022-02-25 09:25:44 +01:00
Marcel Reichmuth 8f18c9be41 ADD: [serdes] sanity check for bd serdes configuration
BugzId: 77163
2021-12-14 15:26:07 +01:00
Marcel Reichmuth 6552251ade From b85d84daf03059332a707beaf92db9ff64e23282 Mon Sep 17 00:00:00 2001
From: Stefan Eichenberger <eichest@gmail.com>
Date: Wed, 17 Nov 2021 17:24:56 +0100
Subject: [PATCH 2/2] fix: serdes: a38x, a39x: Improve USB3 electrical
 configuration

This is a backport from Marvell U-Boot:
https://github.com/MarvellEmbeddedProcessors/u-boot-marvell
Commit: 381d029e7a510c91a9ef02afc43f1d0d317e8894

Improves electrical USB3 receiver jitter tolerance test:

- De-Emphasize force, in functional mode the transmitter should always
have 3.5db de-emphasize, so we are forcing it.

- After forcing De-Emphasize, choose 3.5db (After forcing, default is
6dB so need to change it to 3.5dB).

- Align90 set to 0x58 - this is the sample point in the receiver, after
the clock is recovered this sampler samples at the chosen value, usually
it is supposed to be 0x60(which is the center of the eye), but sometimes
after adding jitter and ISI the center of the eye can move slightly and
the sample point is not necessarily the exact center, and after
optimization (searching the middle of the eye manually) it was seen that
the center of the eye is actually 0x58 and not 0x60.

- FFE Res and FFE Cap set to 0xE & 0xF respectively: improves this
settings is adequate according to how the USB3 spec defines the
interconnect, thus improves USB3 jitter tolerance settings.

- Change the resolution of the DFE to 0x3 which is 6mV(highest
resolution) , this avoids the DFE to saturate and cease to work.

- HPF set to 0x3 which is 5Khz high pass filter, the function of the HPF
is to filter the low frequency patterns(below 5Khz) to make sure that
the signal is not a noise, the setting before was 0x1(205Khz), and the
change came since the USB3 CP0 pattern, that is used in the USB3 jitter
tolerance testing, is similar to PRBS15, which has 2^15=32768bits which
is 32768*200ps (200ps is one Unit interval in USB3(5Gbps)) = 6.5us,
which is in frequency terms: 152Khz. since the PRBS15 is a random
pattern and can theoretically have once in a while a pattern that will
be at frequency of 152Khz, hence the previous setting (205khz HPF) can
possibly filter this pattern which can cause to an error in the
receiver, thus this change to avoid such scenarios.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>

BugzId: 75611
2021-11-23 10:25:34 +01:00
Marcel Reichmuth b4fc6086f5 From c1c6d80a1eaa188b58cb0080b2c339a85afc0f22 Mon Sep 17 00:00:00 2001
From: Tom Rini <trini@konsulko.com>
Date: Mon, 15 Nov 2021 11:58:37 -0500
Subject: [PATCH 1/2] arm: mvebu: a38x: serdes: fix serdes config for USB3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The electrical serdes configuration for USB3 expects an array as data
argument. For USB3 the second value is used (see data_arr_idx = USB3 =
1). However, because only one value is inside the array mv_seq_exec is
accessing an invalid element and the serdes is configured wrongly.

This wrong initialization is leading to an unreliable detection
mechanism for some USB3 devices. We were able to reproduce the issue
regularly with an LTE modem from Sierra Wireless (SM7455) where it was
not detected as USB3 device in 1/3 of all tests.

This commit fixes the issue by setting data_arr_idx to 0. This is the
same value as the original U-Boot from Marvell is using. There it is
called FIRST_CELL which is a define for 0.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>
Signed-off-by: René Straub <rene.straub@netmodule.com>

BugzId: 75611
2021-11-23 10:01:04 +01:00
Marcel Reichmuth 17ef82da5a Revert "FIX: use correct usb3 electrical config for serdes lines"
This reverts commit 4c55fbcc78.

Next commit will implement the same in an easier way.
2021-11-23 09:57:47 +01:00
Marcel Reichmuth dd513c23f7 FIX: [hw18] initialize serdes config earlier
BugzId: 75612
2021-11-23 08:54:51 +01:00
Marcel Reichmuth 4c55fbcc78 FIX: use correct usb3 electrical config for serdes lines
BugzId: 75611
2021-11-05 13:41:20 +01:00
Marcel Reichmuth 96716293f1 Fixes for problems identified in review of review
* Handle case where no console should be used at all
* Better handling of buffer length compiler warnings

BugzId: 66150
2021-06-22 13:46:27 +02:00
Moritz Rosenthal 2e581d5211 Fixes based on the code review
* simplify set_console()
* Prevent buffer overflow in fpga_verify()
* Set individual temporary MAC addresses in set_mac_address()
* Check return value of miiphy_get_current_dev()

BugzId: 66150
2021-06-21 09:20:26 +02:00
Marcel Reichmuth 8efea863e6 ADD: added hw17 platform and cleaned up naming of nm boards
BugzId: 70910
2021-03-30 14:08:51 +02:00
Marcel Reichmuth 1ffa09d30f ADD: [hw14] added hw14 platform to support new mc board
BugzId: 66150
2021-03-22 13:10:53 +01:00
Marcel Reichmuth 21fb3f581f ADD: [build] new NRSW_BUILD config option
BugzID: 59974
2019-11-25 10:28:43 +01:00
Marcel Reichmuth 5bd7d2ed0a FIX: [pmic] Use synchronous mode for buck converters
ADD: [watchdog] pass reset reason for pmic watchdog reset to kernel

BugzID: 58022
BugzID: 57672
2019-07-17 16:50:48 +02:00
Marcel Reichmuth 099d95a569 ADD: [nrhw18] added hwreset command for reset button testing
BugzID: 57382
2019-06-13 08:40:51 +02:00
Marcel Reichmuth 489a002d17 CHG: [nbhw18] shutdown second eth phy when not usable
BugzID: 57096
2019-05-17 13:54:35 +02:00
Marcel Reichmuth 432afce850 ADD: [uboot18] support for fpga loading from fit image
BugzID: 56973
2019-05-15 14:22:58 +02:00
Marcel Reichmuth ed5e448eab ADD: [uboot18] added FIT image boot support for FCT
56912
2019-05-06 15:36:32 +02:00
Marcel Reichmuth cfcf5ab0aa ADD: [armada] support for armada 385 rev B0
BugzID: 56175
2019-03-20 14:03:07 +01:00
Marcel Reichmuth 4e828bb447 FIX: [uboot18] wrong definition for wdis pin of first slot
BugzID: 56155
2019-03-14 09:44:11 +01:00
Marcel Reichmuth dd041e1306 ADD: [nrhw18] support for DSA switch on kernel 4.19+
BugzId: 48570
2019-02-15 10:14:51 +01:00
Marcel Reichmuth aa0bf4291a CHG: [nrhw18] increase delay between deactivation of wdis~ signals
BugzID: 55415
2019-01-31 08:49:17 +01:00
Marcel Reichmuth 7235cc2554 ADD: [nrhw18] netmodule password check support
BugzID: 54601
2018-12-06 15:58:08 +01:00
Marcel Reichmuth e0c3093625 ADD: [nrhw18] allow checking for existance of files without getting error message
BugzID: 49311
2018-11-02 08:13:34 +01:00
Marcel Reichmuth f68df0ad00 CHG: [nrhw18] cleanup of dts file and removal of nrhw18-v1 references
BugzID: 50532
2018-11-01 10:03:46 +01:00
Marcel Reichmuth a77a86edfa CHG: [ddr] integrated marvel ddr training v18.09
BugzID: 51168
2018-10-30 09:41:18 +01:00
Marcel Reichmuth ea6fbf94f0 ADD: [nrhw18] configurable voltages for extension slots
BugzID: 53001
2018-10-03 14:22:22 +02:00
Marcel Reichmuth 43d4dc1f12 nbhw18: removed incompatible serdes hack
BugzID: 53370
2018-09-27 16:26:46 +02:00
Marcel Reichmuth f9ad35b73a nbhw18: dynamically enable devices in dts according to current serdes config
BugzID: 52859
2018-08-31 08:56:27 +02:00
Marcel Reichmuth b43929b7e4 nbhw18: fixed sporadic eth link failure
BugzID: 52885
2018-08-28 16:15:04 +02:00
Marcel Reichmuth 68f6e97304 armada: enabled cpu watchdog in u-boot
BugzID: 50909
2018-08-17 18:00:29 +02:00
Marcel Reichmuth 1f108c8856 armada: reset system if ddr3 training fails 2018-08-17 09:44:54 +02:00
Marcel Reichmuth 604408ca95 nbhw18: add support for wdis voltage control and fixed pcie slot control signal sequencing 2018-08-14 10:26:28 +02:00
Marcel Reichmuth f665946cc4 nbhw18: new DDR3 settings from alex 2018-05-04 11:29:06 +02:00
Marcel Reichmuth e970e52ba6 nbhw18: configure second eth phy in u-boot to make it work in linux 2018-04-24 11:59:15 +02:00
Marcel Reichmuth e7738a5f25 nbhw18: load dtb file defined in bd 2018-04-23 16:40:06 +02:00
Marcel Reichmuth 623372a337 nbhw18: added failsafe boot support 2018-04-20 11:51:23 +02:00
Marcel Reichmuth 92905a0893 nbhw18: support for reset button 2018-04-18 09:49:40 +02:00
Marcel Reichmuth be99e710eb ethernet: fixed invalid default mac addresses 2018-04-16 09:08:29 +02:00
Marcel Reichmuth f42dbc4ea6 nbhw18: load bitstream from rootfs 2018-04-11 16:41:54 +02:00
Marcel Reichmuth 0555271312 nbhw18: enable rtc backup charger 2018-04-06 10:22:24 +02:00
user 1229fb25ea nbhw18: new bitstream to enable leds and fix reboot problem 2018-03-29 14:59:11 +02:00
user 9cbe653246 nbhw18: allow use of external serial port 2018-03-29 11:51:03 +02:00
user fa8f4b3a66 nbhw18: fixed pcie module detection 2018-03-28 11:17:45 +02:00