From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Mon, 9 Nov 2015 17:17:48 +0800 Subject: [U-Boot] [PATCH] serial: serial_x86: add ns16550a compatible ids In-Reply-To: <1447059238-2703-1-git-send-email-thomas@wytron.com.tw> References: <1447059238-2703-1-git-send-email-thomas@wytron.com.tw> Message-ID: <564064BC.10307@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On 2015?11?09? 16:53, Thomas Chou wrote: > Add ns16550a compatible ids, so that other arch may use > this standard driver. > > Signed-off-by: Thomas Chou > --- > drivers/serial/serial_x86.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/serial/serial_x86.c b/drivers/serial/serial_x86.c > index 4bf6062..f378eee 100644 > --- a/drivers/serial/serial_x86.c > +++ b/drivers/serial/serial_x86.c > @@ -14,6 +14,8 @@ DECLARE_GLOBAL_DATA_PTR; > > static const struct udevice_id x86_serial_ids[] = { > { .compatible = "x86-uart" }, > + { .compatible = "ns16550a" }, > + { .compatible = "ns16550" }, > { } > }; I want to use serial_x86.c for nios2. I think there is no need to duplicate another one for altera/nios2. Is there a proper way to change Kconfig/Makefile? Best regards, Thomas