[PATCH 17/18] riscv: defconfig: enable A210 support

Conor Dooley conor at kernel.org
Mon Nov 2 11:11:49 PST 2026


On Mon, Nov 02, 2026 at 10:22:53PM +0800, Han Gao wrote:
> On Thu, 22 Oct 2026 19:50:51 +0100 Conor Dooley <conor at kernel.org> wrote:
> 
> > On Thu, Oct 22, 2026 at 03:53:37AM +0800, Han Gao via B4 Relay wrote:
> > > From: Han Gao <gaohan at iscas.ac.cn>
> > > 
> > > Enable A210 platform drivers and reserve ten 8250 UART ports.
> > > 
> > > Signed-off-by: Han Gao <gaohan at iscas.ac.cn>
> > > ---
> > >  arch/riscv/configs/defconfig | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > > 
> > > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
> > > index 04ae305d5511..b9b3bca12089 100644
> > > --- a/arch/riscv/configs/defconfig
> > > +++ b/arch/riscv/configs/defconfig
> > > @@ -33,6 +33,7 @@ CONFIG_SOC_STARFIVE=y
> > >  CONFIG_ARCH_SUNXI=y
> > >  CONFIG_ARCH_TENSTORRENT=y
> > >  CONFIG_ARCH_THEAD=y
> > > +CONFIG_ARCH_ZHIHE=y
> > >  CONFIG_ARCH_ULTRARISC=y
> > >  CONFIG_ARCH_VIRT=y
> > >  CONFIG_ARCH_CANAAN=y
> > > @@ -149,6 +150,8 @@ CONFIG_KEYBOARD_GPIO=y
> > >  CONFIG_KEYBOARD_SUN4I_LRADC=m
> > >  CONFIG_SERIAL_8250=y
> > >  CONFIG_SERIAL_8250_CONSOLE=y
> > > +CONFIG_SERIAL_8250_NR_UARTS=10
> > > +CONFIG_SERIAL_8250_RUNTIME_UARTS=10
> > 
> > Why are these options needed?
> 
> The A210 has 10 UARTs and the TH1520 has 6. With the default of 4,
> UARTs beyond the 4th don't get a fixed ttyS index and end up in
> whatever slot is free. Raising both to 10 keeps the index stable.

Put this in the commit message please.

> 
> > 
> > >  CONFIG_SERIAL_8250_DW=y
> > >  CONFIG_SERIAL_OF_PLATFORM=y
> > >  CONFIG_SERIAL_EARLYCON_RISCV_SBI=y
> > > @@ -167,6 +170,7 @@ CONFIG_SPI_PL022=m
> > >  CONFIG_SPI_SIFIVE=y
> > >  CONFIG_SPI_SUN6I=y
> > >  # CONFIG_PTP_1588_CLOCK is not set
> > > +CONFIG_PINCTRL_A210=y
> > >  CONFIG_PINCTRL_TH1520=y
> > >  CONFIG_PINCTRL_SOPHGO_CV1800B=y
> > >  CONFIG_PINCTRL_SOPHGO_CV1812H=y
> > > 
> > > -- 
> > > 2.55.0
> > > 
> > > 
> > 
> 
> Sent using hkml (https://github.com/sjp38/hackermail)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20261102/f384a370/attachment.sig>


More information about the linux-riscv mailing list