On Fri, 14 Nov 2025 at 11:52, Biju <biju.das.au@gmail.com> wrote:
> From: Biju Das <biju.das.jz@bp.renesas.com>
>
> Drop the unused TDR register-related macros.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> --- a/drivers/tty/serial/rsci.c
> +++ b/drivers/tty/serial/rsci.c
> @@ -35,12 +35,6 @@ MODULE_IMPORT_NS("SH_SCI");
> #define RDR_FPER BIT(11) /* FIFO Parity Error */
> #define RDR_RDAT_MSK GENMASK(8, 0)
>
> -/* TDR (Transmit Data Register) */
> -#define TDR_MPBT BIT(9) /* Multiprocessor Transfer */
Might be useful, one day. But all other bits do not have defines yet anyway.
> -#define TDR_TDAT_9BIT_LSHIFT 0
> -#define TDR_TDAT_9BIT_VAL 0x1FF
> -#define TDR_TDAT_9BIT_MSK (TDR_TDAT_9BIT_VAL << TDR_TDAT_9BIT_LSHIFT)
I agree this is rather useless.
> -
> /* CCR0 (Common Control Register 0) */
> #define CCR0_SSE BIT(24) /* SSn# Pin Function Enable */
> #define CCR0_TEIE BIT(21) /* Transmit End Interrupt Enable */
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds