]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: board: some family check cleanups 24588/head
authorRustam Adilov <adilov@tutamail.com>
Thu, 6 Aug 2026 15:41:58 +0000 (20:41 +0500)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 7 Aug 2026 17:54:49 +0000 (19:54 +0200)
commit29912055552480e5aedc9b81facc82709f1cf7d7
tree3a9f061a8b7daff8e694ecb0f6dd02abe35bbbe2
parent76d124a18c5176cd5f03098091c4e7c4a0c8e338
realtek: board: some family check cleanups

The prom initialization is a bit of a mess now with all these
model and soc family checks. And realtek_read_model() function
is the worst offender of all as it goes through all of the model
info register from different SoCs just to read details from one
of them.

We can make use of the .data property in realtek_of_match to
clean things up so that each soc family has its own way of
initialization and reading model details.

Create a struct that will be used for that and add all of the
soc data structs for all chip families.

With all that, remove realtek_read_model() function and most
of the soc_info.family checks in various functions.

In addition, add the rtl960x compatibles along as well so that
rtl960x model info details has somewhere to be used. RTL8198D
is also added as it is part of RTL9607C family.

Signed-off-by: Rustam Adilov <adilov@tutamail.com>
Link: https://github.com/openwrt/openwrt/pull/24588
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/patches-6.18/300-02-enhance-realtek-board-setup.patch
target/linux/realtek/patches-6.18/300-03-realtek-board-increase-fixup_fdt-buffer-to-32-KiB.patch