From: Hans de Goede Date: Sun, 23 Nov 2014 12:42:51 +0100 Subject: [U-Boot] [PATCH 2/2] sunxi: Avoid usb getting scanned twice when using usb kbd + usb boot In-Reply-To: <1416742971-25255-1-git-send-email-hdegoede@redhat.com> References: <1416742971-25255-1-git-send-email-hdegoede@redhat.com> Message-ID: <1416742971-25255-2-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 Use the new BOOTENV_PREBOOT_INITS_USB define to avoid usb being scanned twice when using usb kbd + usb boot. Signed-off-by: Hans de Goede --- include/configs/sunxi-common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 3f890b2..7b958f8 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -302,12 +302,11 @@ func(PXE, pxe, na) \ func(DHCP, dhcp, na) -#include - #ifdef CONFIG_USB_KEYBOARD #define CONSOLE_STDIN_SETTINGS \ "preboot=usb start\0" \ "stdin=serial,usbkbd\0" +#define BOOTENV_PREBOOT_INITS_USB #else #define CONSOLE_STDIN_SETTINGS \ "stdin=serial\0" @@ -327,6 +326,8 @@ CONSOLE_STDIN_SETTINGS \ CONSOLE_STDOUT_SETTINGS +#include + #define CONFIG_EXTRA_ENV_SETTINGS \ CONSOLE_ENV_SETTINGS \ MEM_LAYOUT_ENV_SETTINGS \ -- 2.1.0