Commit Graph

86 Commits

Author SHA1 Message Date
钦峰
cefbf1d0ea 1:fix compile warning 2:add aon set magic
Change-Id: I511dc51ff71ae9567dcc0b6b91f6bcac1ae61f3b
2024-05-29 16:21:44 +08:00
Han Gao
c7e455caf5 th1520: SPL_TEXT_BASE=0xffe0000000 for nosign spl
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-05-29 16:21:44 +08:00
Han Gao
905fa2e762 sync config
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-05-29 16:21:44 +08:00
thead_admin
2674ac70e4 Linux_SDK_V1.5.4
Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
2024-05-29 16:21:44 +08:00
Han Gao
e0247b8a62 fix: run gpt_partition failed
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
20240328
2024-03-28 11:00:40 +00:00
Haaland Chen
2fc52cbb27 include: light-c910.h: add fdtoverlay_addr_r
Signed-off-by: Haaland Chen <haaland@milkv.io>
2024-03-27 04:06:40 -05:00
Han Gao
ce1890d0dc fix: remove find partuuid
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
20240324
2024-03-24 06:57:04 -05:00
Han Gao
9893f1a2c0 feat: add sdcard boot first
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-03-24 06:57:04 -05:00
Haaland Chen
f80c918aa2 configs: meles: use new fdt default name
Since T-HEAD Linux SDK V1.4.2, modified the kernel device tree
naming rules, starting with th1520.

Signed-off-by: Haaland Chen <haaland@milkv.io>
2024-03-21 04:16:26 -05:00
Han Gao
69d7d3cda0 feat: add format swap partition for resume
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
20240131
2024-01-31 20:52:36 +08:00
Han Gao
4529d8d50f Revert "fix(c9xx): don't flush dcache when invalidating"
This reverts commit adec30ace4.
2024-01-31 16:19:17 +08:00
Han Gao
74eca2553e feat: enable load str firmware
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-01-31 16:19:17 +08:00
Han Gao
f14addebf4 Add tag publish firmware
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
20240127
2024-01-27 11:11:02 +00:00
Han Gao
9d7cb33654 fix error to written eth1addr
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-01-24 00:15:25 +08:00
Han Gao
5dd8bce935 ci: add lc4a mainline dt name support
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-01-24 00:00:18 +08:00
Han Gao
de8dcffdd9 ci: add mainline dt name support
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-01-24 00:00:18 +08:00
Han Gao
0060af48c1 workaround: add delay
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-01-22 15:55:16 +08:00
Han Gao
6935c50d54 config: enable BOARD_RNG_SEED
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-01-22 15:55:16 +08:00
Han Gao
5bd86ffd9d config: update ROW16 to DDP
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2024-01-22 15:55:16 +08:00
thead_admin
abe41ba65e Linux_SDK_V1.4.2
Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
2024-01-22 15:55:16 +08:00
thead_admin
3e564f9f0c Linux_SDK_V1.3.3
Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
2024-01-22 15:55:16 +08:00
Han Gao
34dd739d4c ci: add build for lcon4a & lc4a
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2023-12-26 17:08:20 +08:00
Lu Hui
1f45edb0fc defconfig: add light_lpi4a_[cluster|console]_defconfig 2023-12-26 17:08:20 +08:00
Lu Hui
f79d320ffa drivers: video: ilitek-ili9881c.c: add long delay panel reset 2023-12-26 17:08:20 +08:00
Lu Hui
e66283f0d5 arch: dts: light-lpi4a: allow pane0 ref by other dts 2023-12-26 17:08:20 +08:00
Lu Hui
d43b44b9a0 drivers: panel: add panel-mingjun-070bi30ia2 2023-12-26 17:08:20 +08:00
Han Gao
a455494040 ci: update toolchains
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2023-12-15 23:35:53 +08:00
Gilbert Gilb's
adec30ace4 fix(c9xx): don't flush dcache when invalidating
The data cache invalidation function for c9xx CPUs uses `dcache.cipa`
instruction. According to T-Head extension specification[1] section
3.1.5, this instruction also performs a cache clean along with the
invalidation.

On top of being incorrect, this leads to a serious issue on the
designware ethernet driver, where stalled cache may get flushed each
time we handle a new received packet[2]. As a result, received packet
are randomly corrupted with old cached data. This can easily be
reproduced by sending an ARP request to the device during a TFTP
transfer. The last TFTP block is treated as the ARP reply we just sent,
which makes U-Boot hang on the block.

Always use `dcache.ipa` instruction to invalidate dcache. Replace
existing usages of `dcache.ipa` with our implementation.

Note that this fix is slightly intrusive as it changes the cache
invalidation behavior in all drivers. However, I have not noticed any
side-effect during my tests.

[1] https://github.com/T-head-Semi/thead-extension-spec/releases/download/2.3.0/xthead-2023-11-10-2.3.0.pdf

[2] 918a8c89e0/drivers/net/designware.c (L475)
2023-12-15 23:35:31 +08:00
Haaland Chen
7632089652 board: light-c910: update milkv meles iopin initialization status
Signed-off-by: Haaland Chen <haaland@milkv.io>
2023-12-13 14:04:27 +08:00
Han Gao
e76acfd716 ci: enable ci for meles 4g/8g
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2023-12-03 11:32:41 +08:00
Han Gao
0e64ba274e fix: set fdt_default_name for meles 4g/8g
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2023-12-03 11:32:41 +08:00
Haaland Chen
119bb8eaed configs: add milkv-meles singlerank ddr and dualrank ddr defconfig
Signed-off-by: Haaland Chen <haaland@milkv.io>
2023-12-03 11:32:41 +08:00
Haaland Chen
078bfd152e riscv: dts: milkv-meles: turn on blue user led
Signed-off-by: Haaland Chen <haaland@milkv.io>
2023-12-03 11:32:41 +08:00
Haaland Chen
b604779862 light-c910: set CONFIG_MISC_INIT_R
Signed-off-by: Haaland Chen <haaland@milkv.io>
2023-12-03 11:32:41 +08:00
Haaland Chen
253adbc8e9 board: light-c910: add function light_c910_set_gpio_output_high
Signed-off-by: Haaland Chen <haaland@milkv.io>
2023-12-03 11:32:41 +08:00
Haaland Chen
985e884b0b add Milk-V Meles board
Signed-off-by: Haaland Chen <haaland@milkv.io>
2023-12-03 11:32:41 +08:00
Han Gao
918a8c89e0 configs: fix default dtb file name
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2023-10-26 02:52:22 +08:00
Han Gao
79454e91bc chore: enable ci for beagle-ahead
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2023-10-20 13:38:37 +08:00
Han Gao
491776f3c1 chore: sync lpi4a config
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2023-10-20 13:38:37 +08:00
Deepak Khatri
24498fc55d Update cape header GPIO pinmuxing 2023-10-20 13:38:37 +08:00
Baozhu Zuo
146c2c2031 Modify GPIO default status for Beagle Bluetooth uart4 module 2023-10-20 13:38:37 +08:00
Deepak Khatri
bb72cf3a29 Fix SD boot button issue 2023-10-20 13:38:37 +08:00
Deepak Khatri
b24d63765c Update default mikroBus pinmuxing 2023-10-20 13:38:37 +08:00
Deepak Khatri
c7f2155100 Update debug port pinmux
To check if low drive strength is causing problem.
2023-10-20 13:38:37 +08:00
Deepak Khatri
3e7fb26cb0 Pinmux update: PullDown pins 2023-10-20 13:38:37 +08:00
Deepak Khatri
ce871ac516 Update BeagleV Ahead pinmuxing 2023-10-20 13:38:37 +08:00
Robert Nelson
798af1f1c5 backport of: [PATCH] cmd: pxe: add support for FDT overlays
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
2023-10-20 13:38:37 +08:00
Kory Maincent
cccf006cae pytest: add sandbox test for "extension" command
This commit extends the sandbox to implement a dummy
extension_board_scan() function and enables the extension command in
the sandbox configuration. It then adds a test that checks the proper
functionality of the extension command by applying two Device Tree
overlays to the sandbox Device Tree.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
[trini: Limit to running on sandbox]
Signed-off-by: Tom Rini <trini@konsulko.com>
2023-10-20 13:38:37 +08:00
Kory Maincent
c86cc5402a cmd: add support for a new "extension" command
This patch adds a new "extension" command, which aims at detecting
extension boards connected to the hardware platform, and apply the
Device Tree overlays that describe the hardware present on those
extension boards.

In order to enable this mechanism, board-specific code must implement
the extension_board_scan() function that fills in a linked list of
"struct extension", each describing one extension board. In addition,
the board-specific code must select the SUPPORT_EXTENSION_SCAN Kconfig
boolean.

Based on this:

 - "extension scan" makes the generic code call the board-specific
   extension_board_scan() function to retrieve the list of detected
   extension boards.

 - "extension list" allows to list the detected extension boards.

 - "extension apply <number>|all" allows to apply the Device Tree
   overlay(s) corresponding to one, or all, extension boards

The latter requires two environment variables to exist and set one variable
to run:

 - extension_overlay_addr: the RAM address where to load the Device
   Tree overlays

 - extension_overlay_cmd: the U-Boot command to load one overlay.
   Indeed, the location and mechanism to load DT overlays is very setup
   specific.

 - extension_overlay_name: set by the command: the name of the DT which
   will be load during the execution.

When calling the command described in the extension_overlay_cmd
variable, the variable extension_overlay_name will be defined. So a
typical extension_overlay_cmd will look like this:

  extension_overlay_cmd=load mmc 0:1 $extension_overlay_addr /boot/$extension_overlay_name

Here is an example on how to use it:
=> run loadfdt
=> fdt addr $fdtaddr
=> setenv extension_overlay_addr 0x1000
=> setenv extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr} /boot/${extension_overlay_name}'
=> extension scan
Found 1 extension board(s).
=> extension apply 0
519 bytes read in 3 ms (168.9 KiB/s)

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
2023-10-20 13:38:37 +08:00
Kory Maincent
5468ecbaf0 fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c
Move the fdt_valid function to fdt_support.
This changes allow to be able to test the validity of a devicetree in
other c files.

Update code syntax.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
2023-10-20 13:38:37 +08:00