[coreboot-gerrit] Change in coreboot[master]: src/soc/intel/apollolake: Add gpio groups for GLK
Bora Guvendik (Code Review)
gerrit at coreboot.org
Fri Jan 5 02:47:02 CET 2018
Bora Guvendik has uploaded this change for review. ( https://review.coreboot.org/23128
Change subject: src/soc/intel/apollolake: Add gpio groups for GLK
......................................................................
src/soc/intel/apollolake: Add gpio groups for GLK
Add the information about groups within each community.
Change-Id: Ie87a363f42858e6168d70b1b817f68b1d0b52bed
Signed-off-by: Bora Guvendik <bora.guvendik at intel.com>
---
M src/soc/intel/apollolake/gpio_glk.c
1 file changed, 36 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/23128/1
diff --git a/src/soc/intel/apollolake/gpio_glk.c b/src/soc/intel/apollolake/gpio_glk.c
index fd73270..3d6759e 100644
--- a/src/soc/intel/apollolake/gpio_glk.c
+++ b/src/soc/intel/apollolake/gpio_glk.c
@@ -21,12 +21,40 @@
#include <soc/pcr_ids.h>
#include <soc/pm.h>
+#define GLK_GPP(s, e) \
+ { \
+ .first_pad = (s), \
+ .size = ((e) - (s) + 1), \
+ }
+
+
static const struct reset_mapping rst_map[] = {
{ .logical = PAD_CFG0_LOGICAL_RESET_PWROK, .chipset = 0U << 30 },
{ .logical = PAD_CFG0_LOGICAL_RESET_DEEP, .chipset = 1U << 30 },
{ .logical = PAD_CFG0_LOGICAL_RESET_PLTRST, .chipset = 2U << 30 },
};
+static const struct pad_group glk_community_audio_groups[] = {
+ GLK_GPP(AUDIO_OFFSET, GPIO_175), /* AUDIO 0 */
+};
+
+static const struct pad_group glk_community_nw_groups[] = {
+ GLK_GPP(NW_OFFSET, GPIO_31), /* NORTHWEST 0 */
+ GLK_GPP(GPIO_32, GPIO_63), /* NORTHWEST 1 */
+ GLK_GPP(GPIO_64, GPIO_214), /* NORTHWEST 2 */
+};
+
+static const struct pad_group glk_community_scc_groups[] = {
+ GLK_GPP(SCC_OFFSET, GPIO_206), /* SCC 0 */
+ GLK_GPP(GPIO_207, GPIO_209), /* SCC 1 */
+};
+
+static const struct pad_group glk_community_n_groups[] = {
+ GLK_GPP(N_OFFSET, GPIO_107), /* NORTH 0 */
+ GLK_GPP(GPIO_108, GPIO_139), /* NORTH 1 */
+ GLK_GPP(GPIO_140, GPIO_155), /* NORTH 2 */
+};
+
static const struct pad_community glk_gpio_communities[] = {
{
.port = PID_GPIO_NW,
@@ -43,6 +71,8 @@
.acpi_path = "\\_SB.GPO0",
.reset_map = rst_map,
.num_reset_vals = ARRAY_SIZE(rst_map),
+ .groups = glk_community_nw_groups,
+ .num_groups = ARRAY_SIZE(glk_community_nw_groups),
}, {
.port = PID_GPIO_N,
.first_pad = N_OFFSET,
@@ -58,6 +88,8 @@
.acpi_path = "\\_SB.GPO1",
.reset_map = rst_map,
.num_reset_vals = ARRAY_SIZE(rst_map),
+ .groups = glk_community_n_groups,
+ .num_groups = ARRAY_SIZE(glk_community_n_groups),
}, {
.port = PID_GPIO_AUDIO,
.first_pad = AUDIO_OFFSET,
@@ -73,6 +105,8 @@
.acpi_path = "\\_SB.GPO2",
.reset_map = rst_map,
.num_reset_vals = ARRAY_SIZE(rst_map),
+ .groups = glk_community_audio_groups,
+ .num_groups = ARRAY_SIZE(glk_community_audio_groups),
}, {
.port = PID_GPIO_SCC,
.first_pad = SCC_OFFSET,
@@ -89,6 +123,8 @@
.acpi_path = "\\_SB.GPO3",
.reset_map = rst_map,
.num_reset_vals = ARRAY_SIZE(rst_map),
+ .groups = glk_community_scc_groups,
+ .num_groups = ARRAY_SIZE(glk_community_scc_groups),
},
};
--
To view, visit https://review.coreboot.org/23128
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie87a363f42858e6168d70b1b817f68b1d0b52bed
Gerrit-Change-Number: 23128
Gerrit-PatchSet: 1
Gerrit-Owner: Bora Guvendik <bora.guvendik at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180105/2582bed7/attachment.html>
More information about the coreboot-gerrit
mailing list