X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Finput%2Finput.c;h=4f514dba56d578605c880e44f43299b0d10d0d16;hb=985ca3945fa3cbb2933d1be9d72022c0ac4d3da9;hp=011667fedda4269a26dedfa8b1f83a9486086519;hpb=c1924d85af4a07dc70aef1ef95c48b54a136733f;p=oweals%2Fu-boot.git diff --git a/drivers/input/input.c b/drivers/input/input.c index 011667fedd..4f514dba56 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Translate key codes into ASCII * * Copyright (c) 2011 The Chromium OS Authors. * (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, wd@denx.de - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -83,6 +82,9 @@ static unsigned char kbd_ctrl_xlate[] = { '\r', 0xff, '/', '*', }; +/* + * German keymap. Special letters are mapped according to code page 437. + */ static const uchar kbd_plain_xlate_german[] = { 0xff, 0x1b, '1', '2', '3', '4', '5', '6', /* scan 00-07 */ '7', '8', '9', '0', 0xe1, '\'', 0x08, '\t', /* scan 08-0F */ @@ -124,7 +126,7 @@ static unsigned char kbd_shift_xlate_german[] = { }; static unsigned char kbd_right_alt_xlate_german[] = { - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* scan 00-07 */ + 0xff, 0xff, 0xff, 0xfd, 0xff, 0xff, 0xff, 0xff, /* scan 00-07 */ '{', '[', ']', '}', '\\', 0xff, 0xff, 0xff, /* scan 08-0F */ '@', 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* scan 10-17 */ 0xff, 0xff, 0xff, '~', 0xff, 0xff, 0xff, 0xff, /* scan 18-1F */ @@ -650,14 +652,17 @@ int input_stdio_register(struct stdio_dev *dev) int error; error = stdio_register(dev); - +#if !defined(CONFIG_SPL_BUILD) || CONFIG_IS_ENABLED(ENV_SUPPORT) /* check if this is the standard input device */ - if (!error && strcmp(getenv("stdin"), dev->name) == 0) { + if (!error && strcmp(env_get("stdin"), dev->name) == 0) { /* reassign the console */ if (OVERWRITE_CONSOLE || console_assign(stdin, dev->name)) return -1; } +#else + error = error; +#endif return 0; }