From: Alex Hornung <alex@alexhornung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] nios2-generic: Fix logic around choosing UART
Date: Mon, 20 Feb 2012 07:45:34 +0000 [thread overview]
Message-ID: <4F41FA1E.3000701@alexhornung.com> (raw)
In-Reply-To: <1329723235-11978-1-git-send-email-alex@alexhornung.com>
On 20/02/12 07:33, Alex Hornung wrote:
> * Before, the normal altera UART driver was compiled in unconditionally
> and the JTAG UART was missed out.
>
> * Work around this by conditionalizing the driver to use based on the
> UART choice in the user's custom FPGA header file. If both were to be
> present, the JTAG UART would have preference.
>
> Signed-off-by: Alex Hornung <alex@alexhornung.com>
> ---
> include/configs/nios2-generic.h | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h
> index 9ba35e8..765b169 100644
> --- a/include/configs/nios2-generic.h
> +++ b/include/configs/nios2-generic.h
> @@ -36,10 +36,11 @@
> /*
> * SERIAL
> */
> -#define CONFIG_ALTERA_UART
> #if defined(CONFIG_ALTERA_JTAG_UART)
> +# define CONFIG_ALTERA_JTAG_UART
> # define CONFIG_SYS_NIOS_CONSOLE CONFIG_SYS_JTAG_UART_BASE
> #else
> +# define CONFIG_ALTERA_UART
> # define CONFIG_SYS_NIOS_CONSOLE CONFIG_SYS_UART_BASE
> #endif
>
I'm sorry, I just messed this one up submitting a previous version that
wasn't ready.
Below is a new one:
next prev parent reply other threads:[~2012-02-20 7:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-20 7:33 [U-Boot] [PATCH 1/2] nios2-generic: Fix logic around choosing UART Alex Hornung
2012-02-20 7:45 ` Alex Hornung [this message]
2012-02-24 1:49 ` Thomas Chou
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=4F41FA1E.3000701@alexhornung.com \
--to=alex@alexhornung.com \
--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