irqchip/aspeed-scu-ic: Refactor driver to support variant-based initialization
authorRyan Chen <ryan_chen@aspeedtech.com>
Mon, 8 Sep 2025 01:18:09 +0000 (09:18 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Sep 2025 10:23:28 +0000 (12:23 +0200)
commit86cd4301c285b5e48f6bb0c1b9eb3bfcaf7315a6
tree8c19a9b71e45e065aae6aae85a7c17fcb8cf7b33
parenta186120c780e21e4cfd186a925e34f718e30de88
irqchip/aspeed-scu-ic: Refactor driver to support variant-based initialization

The SCU IC driver handles each AST2600 instance with separate
initialization functions and hardcoded register definitions, which is
inflexible and creates duplicated code.

Consolidate the implementation by introducing a variant-based structure,
selected via compatible string, and use a unified init path and MMIO access
via of_iomap().  This simplifies the code and prepares for upcoming SoCs
like AST2700, which require split register handling.

[ tglx: Cleaned up coding style and massaged change log ]

Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250908011812.1033858-2-ryan_chen@aspeedtech.com
drivers/irqchip/irq-aspeed-scu-ic.c