forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'platform-drivers-x86-v5.5-2' of git://git.infradead.org/li…
…nux-platform-drivers-x86 Pull x86 platform driver fixes from Andy Shevchenko: "Bucket of fixes for PDx86. Note, that there is no ABI breakage in Mellanox driver because it has been introduced in v5.5-rc1, so we can change it. Summary: - Add support of APUv4 and fix an assignment of simswap GPIO - Add Siemens CONNECT X300 to DMI table to avoid stuck during boot - Correct arguments of WMI call on HP Envy x360 15-cp0xxx model - Fix the mlx-bootctl sysfs attributes to be device related" * tag 'platform-drivers-x86-v5.5-2' of git://git.infradead.org/linux-platform-drivers-x86: platform/x86: pcengines-apuv2: Spelling fixes in the driver platform/x86: pcengines-apuv2: detect apuv4 board platform/x86: pcengines-apuv2: fix simswap GPIO assignment platform/x86: pmc_atom: Add Siemens CONNECT X300 to critclk_systems DMI table platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes platform/mellanox: fix the mlx-bootctl sysfs
- Loading branch information
Showing
5 changed files
with
60 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/lifecycle_state | ||
What: /sys/bus/platform/devices/MLNXBF04:00/lifecycle_state | ||
Date: Oct 2019 | ||
KernelVersion: 5.5 | ||
Contact: "Liming Sun <[email protected]>" | ||
|
@@ -10,7 +10,7 @@ Description: | |
GA Non-Secured - Non-Secure chip and not able to change state | ||
RMA - Return Merchandise Authorization | ||
|
||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/post_reset_wdog | ||
What: /sys/bus/platform/devices/MLNXBF04:00/post_reset_wdog | ||
Date: Oct 2019 | ||
KernelVersion: 5.5 | ||
Contact: "Liming Sun <[email protected]>" | ||
|
@@ -19,7 +19,7 @@ Description: | |
to reboot the chip and recover it to the old state if the new | ||
boot partition fails. | ||
|
||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/reset_action | ||
What: /sys/bus/platform/devices/MLNXBF04:00/reset_action | ||
Date: Oct 2019 | ||
KernelVersion: 5.5 | ||
Contact: "Liming Sun <[email protected]>" | ||
|
@@ -30,7 +30,7 @@ Description: | |
emmc - boot from the onchip eMMC | ||
emmc_legacy - boot from the onchip eMMC in legacy (slow) mode | ||
|
||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/second_reset_action | ||
What: /sys/bus/platform/devices/MLNXBF04:00/second_reset_action | ||
Date: Oct 2019 | ||
KernelVersion: 5.5 | ||
Contact: "Liming Sun <[email protected]>" | ||
|
@@ -44,7 +44,7 @@ Description: | |
swap_emmc - swap the primary / secondary boot partition | ||
none - cancel the action | ||
|
||
What: /sys/bus/platform/devices/MLNXBF04:00/driver/secure_boot_fuse_state | ||
What: /sys/bus/platform/devices/MLNXBF04:00/secure_boot_fuse_state | ||
Date: Oct 2019 | ||
KernelVersion: 5.5 | ||
Contact: "Liming Sun <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
/* | ||
* PC-Engines APUv2/APUv3 board platform driver | ||
* for gpio buttons and LEDs | ||
* for GPIO buttons and LEDs | ||
* | ||
* Copyright (C) 2018 metux IT consult | ||
* Author: Enrico Weigelt <[email protected]> | ||
|
@@ -23,10 +23,10 @@ | |
|
||
/* | ||
* NOTE: this driver only supports APUv2/3 - not APUv1, as this one | ||
* has completely different register layouts | ||
* has completely different register layouts. | ||
*/ | ||
|
||
/* register mappings */ | ||
/* Register mappings */ | ||
#define APU2_GPIO_REG_LED1 AMD_FCH_GPIO_REG_GPIO57 | ||
#define APU2_GPIO_REG_LED2 AMD_FCH_GPIO_REG_GPIO58 | ||
#define APU2_GPIO_REG_LED3 AMD_FCH_GPIO_REG_GPIO59_DEVSLP1 | ||
|
@@ -35,7 +35,7 @@ | |
#define APU2_GPIO_REG_MPCIE2 AMD_FCH_GPIO_REG_GPIO59_DEVSLP0 | ||
#define APU2_GPIO_REG_MPCIE3 AMD_FCH_GPIO_REG_GPIO51 | ||
|
||
/* order in which the gpio lines are defined in the register list */ | ||
/* Order in which the GPIO lines are defined in the register list */ | ||
#define APU2_GPIO_LINE_LED1 0 | ||
#define APU2_GPIO_LINE_LED2 1 | ||
#define APU2_GPIO_LINE_LED3 2 | ||
|
@@ -44,7 +44,7 @@ | |
#define APU2_GPIO_LINE_MPCIE2 5 | ||
#define APU2_GPIO_LINE_MPCIE3 6 | ||
|
||
/* gpio device */ | ||
/* GPIO device */ | ||
|
||
static int apu2_gpio_regs[] = { | ||
[APU2_GPIO_LINE_LED1] = APU2_GPIO_REG_LED1, | ||
|
@@ -72,7 +72,7 @@ static const struct amd_fch_gpio_pdata board_apu2 = { | |
.gpio_names = apu2_gpio_names, | ||
}; | ||
|
||
/* gpio leds device */ | ||
/* GPIO LEDs device */ | ||
|
||
static const struct gpio_led apu2_leds[] = { | ||
{ .name = "apu:green:1" }, | ||
|
@@ -95,12 +95,12 @@ static struct gpiod_lookup_table gpios_led_table = { | |
NULL, 1, GPIO_ACTIVE_LOW), | ||
GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_LED3, | ||
NULL, 2, GPIO_ACTIVE_LOW), | ||
GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_REG_SIMSWAP, | ||
GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_SIMSWAP, | ||
NULL, 3, GPIO_ACTIVE_LOW), | ||
} | ||
}; | ||
|
||
/* gpio keyboard device */ | ||
/* GPIO keyboard device */ | ||
|
||
static struct gpio_keys_button apu2_keys_buttons[] = { | ||
{ | ||
|
@@ -129,12 +129,12 @@ static struct gpiod_lookup_table gpios_key_table = { | |
} | ||
}; | ||
|
||
/* board setup */ | ||
/* Board setup */ | ||
|
||
/* note: matching works on string prefix, so "apu2" must come before "apu" */ | ||
/* Note: matching works on string prefix, so "apu2" must come before "apu" */ | ||
static const struct dmi_system_id apu_gpio_dmi_table[] __initconst = { | ||
|
||
/* APU2 w/ legacy bios < 4.0.8 */ | ||
/* APU2 w/ legacy BIOS < 4.0.8 */ | ||
{ | ||
.ident = "apu2", | ||
.matches = { | ||
|
@@ -143,7 +143,7 @@ static const struct dmi_system_id apu_gpio_dmi_table[] __initconst = { | |
}, | ||
.driver_data = (void *)&board_apu2, | ||
}, | ||
/* APU2 w/ legacy bios >= 4.0.8 */ | ||
/* APU2 w/ legacy BIOS >= 4.0.8 */ | ||
{ | ||
.ident = "apu2", | ||
.matches = { | ||
|
@@ -152,7 +152,7 @@ static const struct dmi_system_id apu_gpio_dmi_table[] __initconst = { | |
}, | ||
.driver_data = (void *)&board_apu2, | ||
}, | ||
/* APU2 w/ maainline bios */ | ||
/* APU2 w/ mainline BIOS */ | ||
{ | ||
.ident = "apu2", | ||
.matches = { | ||
|
@@ -162,7 +162,7 @@ static const struct dmi_system_id apu_gpio_dmi_table[] __initconst = { | |
.driver_data = (void *)&board_apu2, | ||
}, | ||
|
||
/* APU3 w/ legacy bios < 4.0.8 */ | ||
/* APU3 w/ legacy BIOS < 4.0.8 */ | ||
{ | ||
.ident = "apu3", | ||
.matches = { | ||
|
@@ -171,7 +171,7 @@ static const struct dmi_system_id apu_gpio_dmi_table[] __initconst = { | |
}, | ||
.driver_data = (void *)&board_apu2, | ||
}, | ||
/* APU3 w/ legacy bios >= 4.0.8 */ | ||
/* APU3 w/ legacy BIOS >= 4.0.8 */ | ||
{ | ||
.ident = "apu3", | ||
.matches = { | ||
|
@@ -180,7 +180,7 @@ static const struct dmi_system_id apu_gpio_dmi_table[] __initconst = { | |
}, | ||
.driver_data = (void *)&board_apu2, | ||
}, | ||
/* APU3 w/ mainline bios */ | ||
/* APU3 w/ mainline BIOS */ | ||
{ | ||
.ident = "apu3", | ||
.matches = { | ||
|
@@ -189,6 +189,33 @@ static const struct dmi_system_id apu_gpio_dmi_table[] __initconst = { | |
}, | ||
.driver_data = (void *)&board_apu2, | ||
}, | ||
/* APU4 w/ legacy BIOS < 4.0.8 */ | ||
{ | ||
.ident = "apu4", | ||
.matches = { | ||
DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"), | ||
DMI_MATCH(DMI_BOARD_NAME, "APU4") | ||
}, | ||
.driver_data = (void *)&board_apu2, | ||
}, | ||
/* APU4 w/ legacy BIOS >= 4.0.8 */ | ||
{ | ||
.ident = "apu4", | ||
.matches = { | ||
DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"), | ||
DMI_MATCH(DMI_BOARD_NAME, "apu4") | ||
}, | ||
.driver_data = (void *)&board_apu2, | ||
}, | ||
/* APU4 w/ mainline BIOS */ | ||
{ | ||
.ident = "apu4", | ||
.matches = { | ||
DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"), | ||
DMI_MATCH(DMI_BOARD_NAME, "PC Engines apu4") | ||
}, | ||
.driver_data = (void *)&board_apu2, | ||
}, | ||
{} | ||
}; | ||
|
||
|
@@ -223,7 +250,7 @@ static int __init apu_board_init(void) | |
|
||
id = dmi_first_match(apu_gpio_dmi_table); | ||
if (!id) { | ||
pr_err("failed to detect apu board via dmi\n"); | ||
pr_err("failed to detect APU board via DMI\n"); | ||
return -ENODEV; | ||
} | ||
|
||
|
@@ -262,7 +289,7 @@ module_init(apu_board_init); | |
module_exit(apu_board_exit); | ||
|
||
MODULE_AUTHOR("Enrico Weigelt, metux IT consult <[email protected]>"); | ||
MODULE_DESCRIPTION("PC Engines APUv2/APUv3 board GPIO/LED/keys driver"); | ||
MODULE_DESCRIPTION("PC Engines APUv2/APUv3 board GPIO/LEDs/keys driver"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_DEVICE_TABLE(dmi, apu_gpio_dmi_table); | ||
MODULE_ALIAS("platform:pcengines-apuv2"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters