openwrt/target/linux/ramips
Michael Pratt 2216b10ebb ramips: lzma-loader: use proper register names
Before this was reworked, in the file for mt7621 subtarget
(target/linux/ramips/image/lzma-loader/src/board-mt7621.c)
the "Transmitter shift register empty" bit TEMT was used instead of
the "Transmitter holding register empty" bit THRE,
but after the rework, this value was labeled as the THRE bit instead.

Functionally there is no difference, but this is confusing to read,
as it suggests that the subtargets have different bits for the same
register in UART when in reality they are exactly the same.

One can use either bit, or both, at user's descretion
in order to determine whether the UART TX buffer is ready.
The generic kernel early-printk uses both,
(arch/mips/kernel/early_printk_8250.c)
while the ralink-specific early-printk uses only THRE,
(arch/mips/ralink/early_printk.c).

Define both bits and rewrite macros for readability,
keep the same values, as changing which to use should be tested first.

Ref: c31319b66 ("ramips: lzma-loader: Refactor loader")
Signed-off-by: Michael Pratt <mcpratt@pm.me>

(cherry picked from commit 2e47913c64)
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
2024-01-05 23:32:59 +01:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: dts: mt7628an: reset FE and ESW cores together 2024-01-05 23:32:59 +01:00
files/drivers raimps: mtk_eth_soc: drop rst_esw from ESW driver 2024-01-05 23:32:59 +01:00
image ramips: lzma-loader: use proper register names 2024-01-05 23:32:59 +01:00
mt76x8 ramips: enable variable sector size erasure for all subtarget 2023-05-18 16:46:16 +02:00
mt7620 ramips: add support for Sercomm CPJ routers 2023-11-27 02:02:35 +01:00
mt7621 ramips: add support for Rostelecom RT-FE-1A 2024-01-04 21:45:04 +01:00
patches-5.15 kernel: bump 5.15 to 5.15.132 2023-09-25 23:04:37 +02:00
rt288x ramips: enable variable sector size erasure for all subtarget 2023-05-18 16:46:16 +02:00
rt305x ramips: enable variable sector size erasure for all subtarget 2023-05-18 16:46:16 +02:00
rt3883 ramips: enable variable sector size erasure for all subtarget 2023-05-18 16:46:16 +02:00
Makefile ramips: Switch default kernel to 5.15 2023-02-17 16:31:53 +02:00
modules.mk ramips: rename mtk-hsdma to hsdma-mt7621 2021-03-04 23:43:02 -10:00