diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-01-28 16:29:32 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-02-15 08:48:32 +0000 |
commit | 2126aecb320651958dd75753f8c272789360a2a9 (patch) | |
tree | 2b6df044e982e19d0916396263fa223de45a2d8d /src/mainboard/purism | |
parent | d4749184c242114ed2d43b2acdcbce9e568fe920 (diff) |
mb/purism/librem_bdw: Switch to Lynxpoint GPIO macros
Prepare to unify Lynxpoint LP and Broadwell GPIO code.
Tested with BUILD_TIMELESS=1, Purism Librem 13 v1 remains identical.
Change-Id: I573cd439e8284d84036e71615944f7a195155593
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50066
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/purism')
-rw-r--r-- | src/mainboard/purism/librem_bdw/gpio.c | 194 |
1 files changed, 97 insertions, 97 deletions
diff --git a/src/mainboard/purism/librem_bdw/gpio.c b/src/mainboard/purism/librem_bdw/gpio.c index 0e670fedcf..d2994aede9 100644 --- a/src/mainboard/purism/librem_bdw/gpio.c +++ b/src/mainboard/purism/librem_bdw/gpio.c @@ -1,102 +1,102 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include <soc/gpio.h> +#include <southbridge/intel/lynxpoint/lp_gpio.h> const struct pch_lp_gpio_map mainboard_gpio_map[] = { - [0] = PCH_GPIO_INPUT, - [1] = PCH_GPIO_INPUT, - [2] = PCH_GPIO_INPUT, - [3] = PCH_GPIO_INPUT, - [4] = PCH_GPIO_INPUT, - [5] = PCH_GPIO_INPUT, - [6] = PCH_GPIO_INPUT, - [7] = PCH_GPIO_INPUT, - [8] = PCH_GPIO_INPUT, - [9] = PCH_GPIO_INPUT, - [10] = PCH_GPIO_ACPI_SCI, - [11] = PCH_GPIO_INPUT, - [12] = PCH_GPIO_INPUT, - [13] = PCH_GPIO_INPUT, - [14] = PCH_GPIO_INPUT, - [15] = PCH_GPIO_INPUT, - [16] = PCH_GPIO_INPUT, - [17] = PCH_GPIO_INPUT, - [18] = PCH_GPIO_NATIVE, - [19] = PCH_GPIO_NATIVE, - [20] = PCH_GPIO_INPUT, - [21] = PCH_GPIO_INPUT, - [22] = PCH_GPIO_INPUT, - [23] = PCH_GPIO_INPUT, - [24] = PCH_GPIO_INPUT, - [25] = PCH_GPIO_INPUT, - [26] = PCH_GPIO_INPUT, - [27] = PCH_GPIO_INPUT, - [28] = PCH_GPIO_INPUT, - [29] = PCH_GPIO_NATIVE, - [30] = PCH_GPIO_NATIVE, - [31] = PCH_GPIO_NATIVE, - [32] = PCH_GPIO_INPUT, - [33] = PCH_GPIO_INPUT, - [34] = PCH_GPIO_INPUT, - [35] = PCH_GPIO_NATIVE, - [36] = PCH_GPIO_NATIVE, - [37] = PCH_GPIO_NATIVE, - [38] = PCH_GPIO_INPUT, - [39] = PCH_GPIO_NATIVE, - [40] = PCH_GPIO_NATIVE, - [41] = PCH_GPIO_INPUT, - [42] = PCH_GPIO_INPUT, - [43] = PCH_GPIO_INPUT, - [44] = PCH_GPIO_INPUT, - [45] = PCH_GPIO_INPUT, - [46] = PCH_GPIO_INPUT, - [47] = PCH_GPIO_INPUT, - [48] = PCH_GPIO_INPUT, - [49] = PCH_GPIO_INPUT, - [50] = PCH_GPIO_INPUT, - [51] = PCH_GPIO_INPUT, - [52] = PCH_GPIO_INPUT, - [53] = PCH_GPIO_INPUT, - [54] = PCH_GPIO_INPUT, - [55] = PCH_GPIO_INPUT, - [56] = PCH_GPIO_INPUT, - [57] = PCH_GPIO_INPUT, - [58] = PCH_GPIO_INPUT, - [59] = PCH_GPIO_INPUT, - [60] = PCH_GPIO_INPUT, - [61] = PCH_GPIO_NATIVE, - [62] = PCH_GPIO_NATIVE, - [63] = PCH_GPIO_NATIVE, - [64] = PCH_GPIO_INPUT, - [65] = PCH_GPIO_INPUT, - [66] = PCH_GPIO_INPUT, - [67] = PCH_GPIO_INPUT, - [68] = PCH_GPIO_INPUT, - [69] = PCH_GPIO_INPUT, - [70] = PCH_GPIO_INPUT, - [71] = PCH_GPIO_NATIVE, - [72] = PCH_GPIO_NATIVE, - [73] = PCH_GPIO_INPUT, - [74] = PCH_GPIO_NATIVE, - [75] = PCH_GPIO_NATIVE, - [76] = PCH_GPIO_NATIVE, - [77] = PCH_GPIO_INPUT, - [78] = PCH_GPIO_INPUT, - [79] = PCH_GPIO_INPUT, - [80] = PCH_GPIO_INPUT, - [81] = PCH_GPIO_NATIVE, - [82] = PCH_GPIO_NATIVE, - [83] = PCH_GPIO_INPUT, - [84] = PCH_GPIO_INPUT, - [85] = PCH_GPIO_INPUT, - [86] = PCH_GPIO_INPUT, - [87] = PCH_GPIO_INPUT, - [88] = PCH_GPIO_INPUT, - [89] = PCH_GPIO_INPUT, - [90] = PCH_GPIO_INPUT, - [91] = PCH_GPIO_INPUT, - [92] = PCH_GPIO_INPUT, - [93] = PCH_GPIO_INPUT, - [94] = PCH_GPIO_INPUT, - PCH_GPIO_END + [0] = LP_GPIO_INPUT, + [1] = LP_GPIO_INPUT, + [2] = LP_GPIO_INPUT, + [3] = LP_GPIO_INPUT, + [4] = LP_GPIO_INPUT, + [5] = LP_GPIO_INPUT, + [6] = LP_GPIO_INPUT, + [7] = LP_GPIO_INPUT, + [8] = LP_GPIO_INPUT, + [9] = LP_GPIO_INPUT, + [10] = LP_GPIO_ACPI_SCI, + [11] = LP_GPIO_INPUT, + [12] = LP_GPIO_INPUT, + [13] = LP_GPIO_INPUT, + [14] = LP_GPIO_INPUT, + [15] = LP_GPIO_INPUT, + [16] = LP_GPIO_INPUT, + [17] = LP_GPIO_INPUT, + [18] = LP_GPIO_NATIVE, + [19] = LP_GPIO_NATIVE, + [20] = LP_GPIO_INPUT, + [21] = LP_GPIO_INPUT, + [22] = LP_GPIO_INPUT, + [23] = LP_GPIO_INPUT, + [24] = LP_GPIO_INPUT, + [25] = LP_GPIO_INPUT, + [26] = LP_GPIO_INPUT, + [27] = LP_GPIO_INPUT, + [28] = LP_GPIO_INPUT, + [29] = LP_GPIO_NATIVE, + [30] = LP_GPIO_NATIVE, + [31] = LP_GPIO_NATIVE, + [32] = LP_GPIO_INPUT, + [33] = LP_GPIO_INPUT, + [34] = LP_GPIO_INPUT, + [35] = LP_GPIO_NATIVE, + [36] = LP_GPIO_NATIVE, + [37] = LP_GPIO_NATIVE, + [38] = LP_GPIO_INPUT, + [39] = LP_GPIO_NATIVE, + [40] = LP_GPIO_NATIVE, + [41] = LP_GPIO_INPUT, + [42] = LP_GPIO_INPUT, + [43] = LP_GPIO_INPUT, + [44] = LP_GPIO_INPUT, + [45] = LP_GPIO_INPUT, + [46] = LP_GPIO_INPUT, + [47] = LP_GPIO_INPUT, + [48] = LP_GPIO_INPUT, + [49] = LP_GPIO_INPUT, + [50] = LP_GPIO_INPUT, + [51] = LP_GPIO_INPUT, + [52] = LP_GPIO_INPUT, + [53] = LP_GPIO_INPUT, + [54] = LP_GPIO_INPUT, + [55] = LP_GPIO_INPUT, + [56] = LP_GPIO_INPUT, + [57] = LP_GPIO_INPUT, + [58] = LP_GPIO_INPUT, + [59] = LP_GPIO_INPUT, + [60] = LP_GPIO_INPUT, + [61] = LP_GPIO_NATIVE, + [62] = LP_GPIO_NATIVE, + [63] = LP_GPIO_NATIVE, + [64] = LP_GPIO_INPUT, + [65] = LP_GPIO_INPUT, + [66] = LP_GPIO_INPUT, + [67] = LP_GPIO_INPUT, + [68] = LP_GPIO_INPUT, + [69] = LP_GPIO_INPUT, + [70] = LP_GPIO_INPUT, + [71] = LP_GPIO_NATIVE, + [72] = LP_GPIO_NATIVE, + [73] = LP_GPIO_INPUT, + [74] = LP_GPIO_NATIVE, + [75] = LP_GPIO_NATIVE, + [76] = LP_GPIO_NATIVE, + [77] = LP_GPIO_INPUT, + [78] = LP_GPIO_INPUT, + [79] = LP_GPIO_INPUT, + [80] = LP_GPIO_INPUT, + [81] = LP_GPIO_NATIVE, + [82] = LP_GPIO_NATIVE, + [83] = LP_GPIO_INPUT, + [84] = LP_GPIO_INPUT, + [85] = LP_GPIO_INPUT, + [86] = LP_GPIO_INPUT, + [87] = LP_GPIO_INPUT, + [88] = LP_GPIO_INPUT, + [89] = LP_GPIO_INPUT, + [90] = LP_GPIO_INPUT, + [91] = LP_GPIO_INPUT, + [92] = LP_GPIO_INPUT, + [93] = LP_GPIO_INPUT, + [94] = LP_GPIO_INPUT, + LP_GPIO_END }; |