public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] dm: ns16550: Allow the driver to be omitted if requested
Date: Mon, 14 Dec 2015 20:53:44 +0800	[thread overview]
Message-ID: <566EBBD8.6070902@wytron.com.tw> (raw)
In-Reply-To: <1450067820-17357-3-git-send-email-sjg@chromium.org>

Hi Simon,

On 2015?12?14? 12:36, Simon Glass wrote:
> Allow the ns16550 debug UART to be used without the full driver.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>   drivers/serial/ns16550.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
> index 3fab3f1..2025423 100644
> --- a/drivers/serial/ns16550.c
> +++ b/drivers/serial/ns16550.c
> @@ -440,6 +440,7 @@ static const struct udevice_id ns16550_serial_ids[] = {
>   };
>   #endif
>
> +#if CONFIG_IS_ENABLED(SERIAL_PRESENT)
>   U_BOOT_DRIVER(ns16550_serial) = {
>   	.name	= "ns16550_serial",
>   	.id	= UCLASS_SERIAL,
> @@ -453,4 +454,5 @@ U_BOOT_DRIVER(ns16550_serial) = {
>   	.ops	= &ns16550_serial_ops,
>   	.flags	= DM_FLAG_PRE_RELOC,
>   };
> +#endif
>   #endif /* CONFIG_DM_SERIAL */
>

Reviewed-by: Thomas Chou <thomas@wytron.com.tw>

  reply	other threads:[~2015-12-14 12:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-14  4:36 [U-Boot] [PATCH 0/3] rockchip: Use the standard debug UART on rockchip Simon Glass
2015-12-14  4:36 ` [U-Boot] [PATCH 1/3] dm: serial: Allow the UART driver to be dropped from the image Simon Glass
2015-12-14 12:53   ` Thomas Chou
2015-12-19 22:23   ` Simon Glass
2015-12-14  4:36 ` [U-Boot] [PATCH 2/3] dm: ns16550: Allow the driver to be omitted if requested Simon Glass
2015-12-14 12:53   ` Thomas Chou [this message]
2015-12-19 22:23     ` Simon Glass
2015-12-14  4:37 ` [U-Boot] [PATCH 3/3] rockchip: Use the debug UART on rk3036 Simon Glass
2015-12-14 12:53   ` Thomas Chou
2015-12-19 22:23     ` Simon Glass
2015-12-14  6:26 ` [U-Boot] [PATCH 0/3] rockchip: Use the standard debug UART on rockchip hl
2015-12-14 22:14   ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566EBBD8.6070902@wytron.com.tw \
    --to=thomas@wytron.com.tw \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox