Hannah Williams has posted comments on this change. ( https://review.coreboot.org/19759 )
Change subject: soc/intel/common/block/gpio: Port gpio code from Apollolake to common
......................................................................
Patch Set 15:
(1 comment)
https://review.coreboot.org/#/c/19759/15/src/soc/intel/common/block/gpio/gpi...
File src/soc/intel/common/block/gpio/gpio.c:
PS15, Line 68: GPIO_MAX_NUM_PER_GROUP
I'll add this as a field inside the community.
I looked across GPIOs in different SOC EDS.
Although different groups have different pin count - for example, GPA has 24 and GPD has 12 , but as long as they are less than 32 which is the register size, they still will be bit mapped into 1 register. In this function and gpio_configure_owner, the pin parameter passed is the pin offset within this community or group. So I think we can still use the macro GPIO_MAX_NUM_PER_GROUP to get the max number which is 24 in example above and not have a new field added to get this number per group or community.
--
To view, visit
https://review.coreboot.org/19759
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic48401e92103ff0ec278fb69a3d304148a2d79aa
Gerrit-PatchSet: 15
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Hannah Williams
hannah.williams@intel.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Barnali Sarkar
barnali.sarkar@intel.com
Gerrit-Reviewer: Bora Guvendik
bora.guvendik@intel.com
Gerrit-Reviewer: Divya Chellappa
divya.chella@gmail.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Hannah Williams
hannah.williams@intel.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Ravishankar Sarawadi
ravishankar.sarawadi@intel.com
Gerrit-Reviewer: Shaunak Saha
shaunak.saha@intel.com
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: V Sowmya
v.sowmya@intel.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-HasComments: Yes