From: Hans de Goede Date: Sun, 23 Nov 2014 12:42:50 +0100 Subject: [U-Boot] [PATCH 1/2] config_distro_bootcmd.h: Allow user to indicate that usb is inited in preboot Message-ID: <1416742971-25255-1-git-send-email-hdegoede@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When using usb-keyboard support, typically usb will already get started from preboot. In this case doing it again in the bootcmd is undesirable. Allow the user of config_distro_bootcmd to indicate that usb is inited in preboot through the user setting BOOTENV_PREBOOT_INITS_USB. Signed-off-by: Hans de Goede --- include/config_distro_bootcmd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index be616e8..fd01a34 100644 --- a/include/config_distro_bootcmd.h +++ b/include/config_distro_bootcmd.h @@ -91,7 +91,11 @@ #ifdef CONFIG_CMD_USB #define BOOTENV_RUN_USB_INIT "run usb_init; " +#ifndef BOOTENV_PREBOOT_INITS_USB #define BOOTENV_SET_USB_NEED_INIT "setenv usb_need_init; " +#else +#define BOOTENV_SET_USB_NEED_INIT "setenv usb_need_init false; " +#endif #define BOOTENV_SHARED_USB \ "usb_init=" \ "if ${usb_need_init}; then " \ -- 2.1.0