diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-11-01 23:17:37 +0100 |
---|---|---|
committer | Arthur Heymans <arthur@aheymans.xyz> | 2022-11-07 13:56:55 +0000 |
commit | e56f0c7cab77b89a750b4a3f7f380b1a10cd0d1d (patch) | |
tree | 8894438e7c7131dcadb7e01816a628d1e28564f6 /src/mainboard/lenovo/g505s/ec.c | |
parent | 5e8e911b7caee021faff96c4e82a77a42544ea62 (diff) |
mb/*/*: Remove AMD FAMILY15TN boards
These boards use the LEGACY_SMP_INIT which is to be deprecated after
release 4.18.
Change-Id: I9efb5cb1149cc4cf6337c47af8a2f4c4b55f4368
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69111
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/lenovo/g505s/ec.c')
-rw-r--r-- | src/mainboard/lenovo/g505s/ec.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mainboard/lenovo/g505s/ec.c b/src/mainboard/lenovo/g505s/ec.c deleted file mode 100644 index 44eb8cf1c7..0000000000 --- a/src/mainboard/lenovo/g505s/ec.c +++ /dev/null @@ -1,33 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ - -#include "ec.h" -#include <ec/compal/ene932/ec.h> - -/* The keyboard matrix tells the EC how the keyboard is wired internally */ -static void set_keyboard_matrix_us(void) -{ - ec_kbc_write_cmd(0x59); - ec_kbc_write_ib(0xE5); -} - -/* Tell EC to operate in APM mode. Events generate SMIs instead of SCIs */ -static void enter_apm_mode(void) -{ - ec_kbc_write_cmd(0x59); - ec_kbc_write_ib(0xE9); -} - -void lenovo_g505s_ec_init(void) -{ - set_keyboard_matrix_us(); - - /* - * The EC has a special "blinking Caps Lock LED" mode which it normally - * enters when it believes the OS is not responding. It occasionally - * disables battery charging when in this mode, although other - * functionality is unaffected. Although the EC starts in APM mode by - * default, it only leaves the "blinking Caps Lock LED" mode after - * receiving the following command. - */ - enter_apm_mode(); -} |