diff mbox series

[2/2] am335x_evm: Allow booting from usb-storage device

Message ID 20200824180033.13681-2-matwey.kornilov@gmail.com
State Accepted
Commit 8c444c184c36dfa314a2a500349785f58c8a8d24
Delegated to: Lokesh Vutla
Headers show
Series [1/2] ti: Use devtype=mmc instead of setenv devtype mmc | expand

Commit Message

Matwey V. Kornilov Aug. 24, 2020, 6 p.m. UTC
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
---
 include/configs/am335x_evm.h | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Matwey V. Kornilov Oct. 4, 2020, 11:23 a.m. UTC | #1
Ping?

пн, 24 авг. 2020 г. в 21:00, Matwey V. Kornilov <matwey.kornilov@gmail.com>:

> Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
> ---
>  include/configs/am335x_evm.h | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
> index 9c4ef369c5..103c046137 100644
> --- a/include/configs/am335x_evm.h
> +++ b/include/configs/am335x_evm.h
> @@ -66,6 +66,12 @@
>  #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
>         #devtypel #instance " "
>
> +#if CONFIG_IS_ENABLED(CMD_USB)
> +# define BOOT_TARGET_USB(func) func(USB, usb, 0)
> +#else
> +# define BOOT_TARGET_USB(func)
> +#endif
> +
>  #if CONFIG_IS_ENABLED(CMD_PXE)
>  # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
>  #else
> @@ -84,6 +90,7 @@
>         func(MMC, mmc, 1) \
>         func(LEGACY_MMC, legacy_mmc, 1) \
>         func(NAND, nand, 0) \
> +       BOOT_TARGET_USB(func) \
>         BOOT_TARGET_PXE(func) \
>         BOOT_TARGET_DHCP(func)
>
> --
> 2.26.2
>
>
Tom Rini Oct. 9, 2020, 1:19 p.m. UTC | #2
On Sun, Oct 04, 2020 at 02:23:21PM +0300, Matwey V. Kornilov wrote:


> Ping?
> 
> пн, 24 авг. 2020 г. в 21:00, Matwey V. Kornilov <matwey.kornilov@gmail.com>:
> 
> > Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
> > ---
> >  include/configs/am335x_evm.h | 7 +++++++
> >  1 file changed, 7 insertions(+)
> >
> > diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
> > index 9c4ef369c5..103c046137 100644
> > --- a/include/configs/am335x_evm.h
> > +++ b/include/configs/am335x_evm.h
> > @@ -66,6 +66,12 @@
> >  #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
> >         #devtypel #instance " "
> >
> > +#if CONFIG_IS_ENABLED(CMD_USB)
> > +# define BOOT_TARGET_USB(func) func(USB, usb, 0)
> > +#else
> > +# define BOOT_TARGET_USB(func)
> > +#endif
> > +
> >  #if CONFIG_IS_ENABLED(CMD_PXE)
> >  # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
> >  #else
> > @@ -84,6 +90,7 @@
> >         func(MMC, mmc, 1) \
> >         func(LEGACY_MMC, legacy_mmc, 1) \
> >         func(NAND, nand, 0) \
> > +       BOOT_TARGET_USB(func) \
> >         BOOT_TARGET_PXE(func) \
> >         BOOT_TARGET_DHCP(func)

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini Oct. 12, 2020, 1:07 p.m. UTC | #3
On Fri, Oct 09, 2020 at 09:19:53AM -0400, Tom Rini wrote:
> On Sun, Oct 04, 2020 at 02:23:21PM +0300, Matwey V. Kornilov wrote:
> 
> 
> > Ping?

and I see this was applied back in September to the -next branch, so
this is in master now.

> > 
> > пн, 24 авг. 2020 г. в 21:00, Matwey V. Kornilov <matwey.kornilov@gmail.com>:
> > 
> > > Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
> > > ---
> > >  include/configs/am335x_evm.h | 7 +++++++
> > >  1 file changed, 7 insertions(+)
> > >
> > > diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
> > > index 9c4ef369c5..103c046137 100644
> > > --- a/include/configs/am335x_evm.h
> > > +++ b/include/configs/am335x_evm.h
> > > @@ -66,6 +66,12 @@
> > >  #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
> > >         #devtypel #instance " "
> > >
> > > +#if CONFIG_IS_ENABLED(CMD_USB)
> > > +# define BOOT_TARGET_USB(func) func(USB, usb, 0)
> > > +#else
> > > +# define BOOT_TARGET_USB(func)
> > > +#endif
> > > +
> > >  #if CONFIG_IS_ENABLED(CMD_PXE)
> > >  # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
> > >  #else
> > > @@ -84,6 +90,7 @@
> > >         func(MMC, mmc, 1) \
> > >         func(LEGACY_MMC, legacy_mmc, 1) \
> > >         func(NAND, nand, 0) \
> > > +       BOOT_TARGET_USB(func) \
> > >         BOOT_TARGET_PXE(func) \
> > >         BOOT_TARGET_DHCP(func)
> 
> Reviewed-by: Tom Rini <trini@konsulko.com>
> 
> -- 
> Tom
Matwey V. Kornilov Oct. 12, 2020, 1:11 p.m. UTC | #4
пн, 12 окт. 2020 г. в 16:07, Tom Rini <trini@konsulko.com>:

> On Fri, Oct 09, 2020 at 09:19:53AM -0400, Tom Rini wrote:
> > On Sun, Oct 04, 2020 at 02:23:21PM +0300, Matwey V. Kornilov wrote:
> >
> >
> > > Ping?
>
> and I see this was applied back in September to the -next branch, so
> this is in master now.
>

Thanks again. I have not seen any reaction here, so I didn't check the
master.


> > >
> > > пн, 24 авг. 2020 г. в 21:00, Matwey V. Kornilov <
> matwey.kornilov@gmail.com>:
> > >
> > > > Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
> > > > ---
> > > >  include/configs/am335x_evm.h | 7 +++++++
> > > >  1 file changed, 7 insertions(+)
> > > >
> > > > diff --git a/include/configs/am335x_evm.h
> b/include/configs/am335x_evm.h
> > > > index 9c4ef369c5..103c046137 100644
> > > > --- a/include/configs/am335x_evm.h
> > > > +++ b/include/configs/am335x_evm.h
> > > > @@ -66,6 +66,12 @@
> > > >  #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
> > > >         #devtypel #instance " "
> > > >
> > > > +#if CONFIG_IS_ENABLED(CMD_USB)
> > > > +# define BOOT_TARGET_USB(func) func(USB, usb, 0)
> > > > +#else
> > > > +# define BOOT_TARGET_USB(func)
> > > > +#endif
> > > > +
> > > >  #if CONFIG_IS_ENABLED(CMD_PXE)
> > > >  # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
> > > >  #else
> > > > @@ -84,6 +90,7 @@
> > > >         func(MMC, mmc, 1) \
> > > >         func(LEGACY_MMC, legacy_mmc, 1) \
> > > >         func(NAND, nand, 0) \
> > > > +       BOOT_TARGET_USB(func) \
> > > >         BOOT_TARGET_PXE(func) \
> > > >         BOOT_TARGET_DHCP(func)
> >
> > Reviewed-by: Tom Rini <trini@konsulko.com>
> >
> > --
> > Tom
>
>
>
> --
> Tom
>
diff mbox series

Patch

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 9c4ef369c5..103c046137 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -66,6 +66,12 @@ 
 #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
 	#devtypel #instance " "
 
+#if CONFIG_IS_ENABLED(CMD_USB)
+# define BOOT_TARGET_USB(func) func(USB, usb, 0)
+#else
+# define BOOT_TARGET_USB(func)
+#endif
+
 #if CONFIG_IS_ENABLED(CMD_PXE)
 # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
@@ -84,6 +90,7 @@ 
 	func(MMC, mmc, 1) \
 	func(LEGACY_MMC, legacy_mmc, 1) \
 	func(NAND, nand, 0) \
+	BOOT_TARGET_USB(func) \
 	BOOT_TARGET_PXE(func) \
 	BOOT_TARGET_DHCP(func)