diff mbox

[U-Boot,14/14] dm: am33xx: Move to driver model for GPIO and serial

Message ID 1411400934-7754-15-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Sept. 22, 2014, 3:48 p.m. UTC
Adjust the configuration for the am33xx boards, including beaglebone black
to use driver model.

This can be extended to other OMAP boards once platform data is provided
for them.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/ti_am335x_common.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Tom Rini Oct. 22, 2014, 4 p.m. UTC | #1
On Mon, Sep 22, 2014 at 09:48:54AM -0600, Simon Glass wrote:

> Adjust the configuration for the am33xx boards, including beaglebone black
> to use driver model.
> 
> This can be extended to other OMAP boards once platform data is provided
> for them.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

What's missing for doing this in SPL as well?
Simon Glass Oct. 22, 2014, 4:14 p.m. UTC | #2
Hi Tom,

On 22 October 2014 10:00, Tom Rini <trini@ti.com> wrote:
> On Mon, Sep 22, 2014 at 09:48:54AM -0600, Simon Glass wrote:
>
>> Adjust the configuration for the am33xx boards, including beaglebone black
>> to use driver model.
>>
>> This can be extended to other OMAP boards once platform data is provided
>> for them.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>
> What's missing for doing this in SPL as well?

The SPL series has been sent but not enabled for OMAP yet. I'll need
to look at it, but it should be minor.

Regards,
Simon
Tom Rini Oct. 22, 2014, 4:26 p.m. UTC | #3
On Wed, Oct 22, 2014 at 10:14:39AM -0600, Simon Glass wrote:
> Hi Tom,
> 
> On 22 October 2014 10:00, Tom Rini <trini@ti.com> wrote:
> > On Mon, Sep 22, 2014 at 09:48:54AM -0600, Simon Glass wrote:
> >
> >> Adjust the configuration for the am33xx boards, including beaglebone black
> >> to use driver model.
> >>
> >> This can be extended to other OMAP boards once platform data is provided
> >> for them.
> >>
> >> Signed-off-by: Simon Glass <sjg@chromium.org>
> >
> > What's missing for doing this in SPL as well?
> 
> The SPL series has been sent but not enabled for OMAP yet. I'll need
> to look at it, but it should be minor.

OK, thanks.

Acked-by: Tom Rini <trini@ti.com>
diff mbox

Patch

diff --git a/include/configs/ti_am335x_common.h b/include/configs/ti_am335x_common.h
index 80976e7..5ed86d9 100644
--- a/include/configs/ti_am335x_common.h
+++ b/include/configs/ti_am335x_common.h
@@ -19,12 +19,23 @@ 
 #define CONFIG_SYS_TIMERBASE		0x48040000	/* Use Timer2 */
 #define CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC
 
+#ifndef CONFIG_SPL_BUILD
+# define CONFIG_DM
+# define CONFIG_CMD_DM
+# define CONFIG_DM_GPIO
+# define CONFIG_DM_SERIAL
+# define CONFIG_OMAP_SERIAL
+# define CONFIG_SYS_MALLOC_F_LEN	(1 << 10)
+#endif
+
 #include <asm/arch/omap.h>
 
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550
+#ifdef CONFIG_SPL_BUILD
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE	(-4)
+#endif
 #define CONFIG_SYS_NS16550_CLK		48000000
 
 /* Network defines. */