diff mbox

[U-Boot,3/6] am43xx_evm.h: : switch to CONFIG_OMAP_SERIAL for non-SPL DM_SERIAL

Message ID 1443437272-1939-4-git-send-email-mugunthanvnm@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Mugunthan V N Sept. 28, 2015, 10:47 a.m. UTC
Tested on am437x gp evm and am437x sk evm

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 include/configs/am43xx_evm.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Lokesh Vutla Sept. 28, 2015, 10:55 a.m. UTC | #1
On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote:
> Tested on am437x gp evm and am437x sk evm
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> ---
>  include/configs/am43xx_evm.h | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
> index d868442..03713e3 100644
> --- a/include/configs/am43xx_evm.h
> +++ b/include/configs/am43xx_evm.h
> @@ -23,9 +23,13 @@
>  
>  /* NS16550 Configuration */
>  #define CONFIG_SYS_NS16550
> +#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_DM_SERIAL)
>  #define CONFIG_SYS_NS16550_SERIAL
> -#define CONFIG_SYS_NS16550_REG_SIZE	(-4)
>  #define CONFIG_SYS_NS16550_CLK		48000000
> +#define CONFIG_SYS_NS16550_REG_SIZE	(-4)
You are deleting and adding the same line under if. Is this really
necessary?

Rest looks good to me.

Thanks and regards,
Lokesh
Mugunthan V N Sept. 28, 2015, 11:07 a.m. UTC | #2
On Monday 28 September 2015 04:25 PM, Lokesh Vutla wrote:
> 
> On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote:
>> > Tested on am437x gp evm and am437x sk evm
>> > 
>> > Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
>> > ---
>> >  include/configs/am43xx_evm.h | 6 +++++-
>> >  1 file changed, 5 insertions(+), 1 deletion(-)
>> > 
>> > diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
>> > index d868442..03713e3 100644
>> > --- a/include/configs/am43xx_evm.h
>> > +++ b/include/configs/am43xx_evm.h
>> > @@ -23,9 +23,13 @@
>> >  
>> >  /* NS16550 Configuration */
>> >  #define CONFIG_SYS_NS16550
>> > +#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_DM_SERIAL)
>> >  #define CONFIG_SYS_NS16550_SERIAL
>> > -#define CONFIG_SYS_NS16550_REG_SIZE	(-4)
>> >  #define CONFIG_SYS_NS16550_CLK		48000000
>> > +#define CONFIG_SYS_NS16550_REG_SIZE	(-4)
> You are deleting and adding the same line under if. Is this really
> necessary?
> 
> Rest looks good to me.

Oops, thats not needed, Copy paste error (was playing with serial clock
during debug). Will fix in v2.

Regards
Mugunthan V N
Tom Rini Oct. 22, 2015, 9:23 p.m. UTC | #3
On Mon, Sep 28, 2015 at 04:17:49PM +0530, Mugunthan V N wrote:

> Tested on am437x gp evm and am437x sk evm
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index d868442..03713e3 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -23,9 +23,13 @@ 
 
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550
+#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_DM_SERIAL)
 #define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE	(-4)
 #define CONFIG_SYS_NS16550_CLK		48000000
+#define CONFIG_SYS_NS16550_REG_SIZE	(-4)
+#else
+#define CONFIG_OMAP_SERIAL
+#endif
 
 /* I2C Configuration */
 #define CONFIG_CMD_EEPROM