openwrt/target/linux/realtek
Markus Stockhausen a8e3bff523
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
realtek: convert access to RTL931x "even CMU" serdes pages
Currently the calculation for the CMU (even) SerDes works similar
to this pseudo code.

analog_backend_serdes = get_analog_serdes(frontend_serdes);
even_backend_serdes = analog_backend_serdes & ~1;
write_to(even_backend_serdes);

Because of the SerDes layout and frontend/backend mapping this can
be swapped to the following order with the same resulting Serdes.

even_frontend_serdes = frontend_serdes ~1;
analog_backend_serdes = get_analog_serdes(even_frontend_serdes);
write_to(analog_backed_serdes);

In the later example the frontend/backend mapping code is already
in our new functions. So swap the calculation logic and use the
new access functions. This allows to finally drop the old access
functions without mapping.

From now on all RTL931x SerDes functions will use a consistent
frontend view.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19873
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-09-02 00:51:43 +02:00
..
base-files realtek: rtl930x: Add support for Plasma Cloud PSX10 Switch 2025-08-28 21:07:57 +02:00
dts realtek: correct whitespace in hp dts files 2025-08-31 13:19:50 +02:00
files/firmware/rtl838x_phy
files-6.12 realtek: convert access to RTL931x "even CMU" serdes pages 2025-09-02 00:51:43 +02:00
image realtek: rtl930x: Add support for Plasma Cloud PSX10 Switch 2025-08-28 21:07:57 +02:00
patches-6.12 realtek: rtl8231-aux: add RTL931x support 2025-08-17 17:31:22 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
rtl839x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
rtl930x realtek: rtl930x: Enable parsing of u-boot nvmem layouts 2025-08-28 21:07:57 +02:00
rtl930x_nand realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00
rtl931x realtek: add RTL8231 driver configuration to kernel build 2025-08-17 17:31:24 +02:00
rtl931x_nand realtek: add RTL8231 driver configuration to kernel build 2025-08-17 17:31:24 +02:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00