[PATCH] sun50i: a64: A64-Teres-I board detect builtin keyboard
authorJonas Smedegaard <dr@jones.dk>
Wed, 5 Aug 2020 23:09:12 +0000 (01:09 +0200)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 5 Jan 2021 03:59:11 +0000 (03:59 +0000)
A64-Teres-I board is a laptop which comes with a builtin keyboard.
The keyboard+trackpad controller pauses for 2 seconds at a firmware
prompt before loading its HID interface.

U-Boot needs to wait equally long to reliably enable the keyboard.

Signed-off-by: Jonas Smedegaard <dr@jones.dk>
Reviewed-by: Tom Rini <trini@konsulko.com>
Series-Cc: Jagan Teki <jagan@amarulasolutions.com>
Series-Cc: Lukasz Majewski <lukma@denx.de>
Series-Cc: Andre Przywara <andre.przywara@arm.com>

Gbp-Pq: Topic teres-i
Gbp-Pq: Name 0001-sun50i-a64-A64-Teres-I-board-detect-builtin-keyboard.patch

configs/teres_i_defconfig

index 1eba20e5f5d0964859f5b77ad5c76a940d17595a..ee07f86f64026c658a06c969a2d532b2a953e5b0 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_DRAM_ZQ=3881949
 CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 CONFIG_USB1_VBUS_PIN="PL7"
 CONFIG_I2C0_ENABLE=y
+CONFIG_PREBOOT="setenv usb_pgood_delay 2000; usb start"
 CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-teres-i"
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y