public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Joonyoung Shim <dofmind@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] s5p6442: Support serial driver
Date: Tue, 30 Mar 2010 19:21:31 +0900	[thread overview]
Message-ID: <4e1455be1003300321h6dc48251v6fca224cd522dbbb@mail.gmail.com> (raw)
In-Reply-To: <1f3430fb1003282315r2d54a17cw2c7df1beecfd9997@mail.gmail.com>

2010/3/29 Minkyu Kang <promsoft@gmail.com>:
> Dear Joonyoung Shim,
>
> On 29 March 2010 11:56, Joonyoung Shim <jy0922.shim@samsung.com> wrote:
>> This patch is for serial support of s5p6442 SoC.
>>
>> Cc: Minkyu Kang <mk7.kang@samsung.com>
>> Cc: Kyungmin Park <kyungmin.park@samsung.com>
>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
>> ---
>> ?common/serial.c ? ? ? ? ? ? | ? ?2 +-
>> ?drivers/serial/Makefile ? ? | ? ?1 +
>> ?drivers/serial/serial_s5p.c | ? ?5 +++++
>> ?include/serial.h ? ? ? ? ? ?| ? ?2 +-
>> ?4 files changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/common/serial.c b/common/serial.c
>> index 94e1921..385c42b 100644
>> --- a/common/serial.c
>> +++ b/common/serial.c
>> @@ -69,7 +69,7 @@ struct serial_device *__default_serial_console (void)
>> ?#else
>> ?#error "CONFIG_SERIAL? missing."
>> ?#endif
>> -#elif defined(CONFIG_S5PC1XX)
>> +#elif defined(CONFIG_S5PC1XX) || defined(CONFIG_S5P64XX)
>> ?#if defined(CONFIG_SERIAL0)
>> ? ? ? ?return &s5p_serial0_device;
>> ?#elif defined(CONFIG_SERIAL1)
>> diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
>> index 71392e6..110b7e1 100644
>> --- a/drivers/serial/Makefile
>> +++ b/drivers/serial/Makefile
>> @@ -34,6 +34,7 @@ COBJS-$(CONFIG_SYS_NS16550) += ns16550.o
>> ?COBJS-$(CONFIG_DRIVER_S3C4510_UART) += s3c4510b_uart.o
>> ?COBJS-$(CONFIG_S3C64XX) += s3c64xx.o
>> ?COBJS-$(CONFIG_S5PC1XX) += serial_s5p.o
>> +COBJS-$(CONFIG_S5P64XX) += serial_s5p.o
>> ?COBJS-$(CONFIG_SYS_NS16550_SERIAL) += serial.o
>> ?COBJS-$(CONFIG_CLPS7111_SERIAL) += serial_clps7111.o
>> ?COBJS-$(CONFIG_IMX_SERIAL) += serial_imx.o
>> diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
>> index 68b8d01..1e7426d 100644
>> --- a/drivers/serial/serial_s5p.c
>> +++ b/drivers/serial/serial_s5p.c
>> @@ -31,10 +31,15 @@ static inline struct s5p_uart *s5p_get_base_uart(int dev_index)
>> ?{
>> ? ? ? ?u32 offset = dev_index * sizeof(struct s5p_uart);
>>
>> +#ifdef CONFIG_S5PC1XX
>> ? ? ? ?if (cpu_is_s5pc100())
>> ? ? ? ? ? ? ? ?return (struct s5p_uart *)(S5PC100_UART_BASE + offset);
>> ? ? ? ?else
>> ? ? ? ? ? ? ? ?return (struct s5p_uart *)(S5PC110_UART_BASE + offset);
>> +#elif CONFIG_S5P64XX
>> + ? ? ? if (cpu_is_s5p6442())
>> + ? ? ? ? ? ? ? return (struct s5p_uart *)(S5P6442_UART_BASE + offset);
>
> need else or return.
>

Right. I will add return NULL.

Thanks.

-- 
- Joonyoung Shim

      reply	other threads:[~2010-03-30 10:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29  2:56 [U-Boot] [PATCH 3/4] s5p6442: Support serial driver Joonyoung Shim
2010-03-29  6:15 ` Minkyu Kang
2010-03-30 10:21   ` Joonyoung Shim [this message]

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=4e1455be1003300321h6dc48251v6fca224cd522dbbb@mail.gmail.com \
    --to=dofmind@gmail.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