From: Yoichi Yuasa <tripeaks@gmail.com>
To: Florian Fainelli <florian@openwrt.org>
Cc: tripeaks@gmail.com, "linux-mips" <linux-mips@linux-mips.org>,
ralf@linux-mips.org
Subject: Re: [PATCH] cobalt: group UART definition into header
Date: Thu, 21 Aug 2008 22:45:52 +0900 [thread overview]
Message-ID: <48ad7195.c505be0a.3500.4a15@mx.google.com> (raw)
In-Reply-To: <200808211303.44865.florian@openwrt.org>
Hi,
On Thu, 21 Aug 2008 13:03:44 +0200
Florian Fainelli <florian@openwrt.org> wrote:
> This patch groups the UART base address definition into
> the cobalt.h header file making it easier to reuse
> this code.
>
> Signed-off-by: Florian Fainelli <florian@openwrt.org>
> ---
> diff --git a/arch/mips/cobalt/console.c b/arch/mips/cobalt/console.c
> index d1ba701..48e2094 100644
> --- a/arch/mips/cobalt/console.c
> +++ b/arch/mips/cobalt/console.c
> @@ -6,7 +6,7 @@
>
> #include <cobalt.h>
>
> -#define UART_BASE ((void __iomem *)CKSEG1ADDR(0x1c800000))
> +#define UART_BASE ((void __iomem *)CKSEG1ADDR(COBALT_UART_ADDR))
>
> void prom_putchar(char c)
> {
> diff --git a/arch/mips/cobalt/serial.c b/arch/mips/cobalt/serial.c
> index 53b8d0d..d12202e 100644
> --- a/arch/mips/cobalt/serial.c
> +++ b/arch/mips/cobalt/serial.c
> @@ -28,8 +28,8 @@
>
> static struct resource cobalt_uart_resource[] __initdata = {
> {
> - .start = 0x1c800000,
> - .end = 0x1c800007,
> + .start = COBALT_UART_ADDR,
> + .end = COBALT_UART_ADDR + 0x7,
> .flags = IORESOURCE_MEM,
> },
> {
> @@ -45,7 +45,7 @@ static struct plat_serial8250_port cobalt_serial8250_port[] = {
> .uartclk = 18432000,
> .iotype = UPIO_MEM,
> .flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
> - .mapbase = 0x1c800000,
> + .mapbase = COBALT_UART_ADDR,
> },
> {},
> };
> diff --git a/include/asm-mips/mach-cobalt/cobalt.h b/include/asm-mips/mach-cobalt/cobalt.h
> index 5b9fce7..9bf9e94 100644
> --- a/include/asm-mips/mach-cobalt/cobalt.h
> +++ b/include/asm-mips/mach-cobalt/cobalt.h
> @@ -19,4 +19,6 @@ extern int cobalt_board_id;
> #define COBALT_BRD_ID_QUBE2 0x5
> #define COBALT_BRD_ID_RAQ2 0x6
>
> +#define COBALT_UART_ADDR 0x1c800000
> +
NAK
This value is only used in serial.c.
Please define in serial.c.
Yoichi
next prev parent reply other threads:[~2008-08-21 13:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 11:03 [PATCH] cobalt: group UART definition into header Florian Fainelli
2008-08-21 13:45 ` Yoichi Yuasa [this message]
2008-08-21 13:55 ` Florian Fainelli
2008-08-21 14:16 ` Yoichi Yuasa
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=48ad7195.c505be0a.3500.4a15@mx.google.com \
--to=tripeaks@gmail.com \
--cc=florian@openwrt.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.