From: Heinrich Schuchardt Date: Sat, 24 Feb 2018 12:46:15 +0100 Subject: [U-Boot] [PATCH 2/2] usb: kbd: implement special keys In-Reply-To: References: <20180222120418.12832-1-xypron.glpk@gmx.de> <20180222120418.12832-3-xypron.glpk@gmx.de> Message-ID: <239dbfd9-c01e-b04a-35ff-88e752be5ef4@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On 02/23/2018 09:59 PM, Simon Glass wrote: > Hi Heinrich, >=20 > On 22 February 2018 at 05:04, Heinrich Schuchardt wr= ote: >> Correct support for arrow keys: use the standard xterm escape sequences. >> >> Provide support for F1-F12, Insert, Delete, Home, End, Page Up, Page Dow= n. >> >> Signed-off-by: Heinrich Schuchardt >> --- >> common/usb_kbd.c | 121 +++++++++++++++++++++++++++++++++++++++++------= -------- >> 1 file changed, 90 insertions(+), 31 deletions(-) >> >=20 > Is there any way this code could be shared with input.c? It has > translation tables. Hello Simon, input.c seems to be another incomplete implementation of a keyboard=20 driver. Yes it would make sense to avoid duplicating code. But=20 unfortunately input.c lacks any documentation. As maintainer I hope you can answer the following: When configuring a German keyboard and typing Right-Alt + M the output=20 is 0xE6. This is mju (=C2=B5) in code page 437. Wouldn't we always use UTF-= 8=20 in U-Boot? The scan codes for PS/2 serial keyboards and USB keyboards differ (cf.=20 "USB HID to PS/2 Scan Code Translation Table"=20 http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143= f3456c/translate.pdf).=20 Is input.c meant to handle PS/2 scan codes or USB scan codes? Regards Heinrich