[coreboot-gerrit] Change in coreboot[master]: soc/intel/common/block/gpio: Port gpio code from Apollolake ...

Hannah Williams (Code Review) gerrit at coreboot.org
Wed May 24 21:18:13 CEST 2017


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 into common gpio
......................................................................


Patch Set 9:

(5 comments)

https://review.coreboot.org/#/c/19759/8/src/soc/intel/common/block/include/intelblocks/gpio.h
File src/soc/intel/common/block/include/intelblocks/gpio.h:

Line 35: };
> Presumably this has to increase if the number dwX registers increases per p
We should be able to extend this when needed and add the new ones inside a CONFIG flag which should get initialized using new macros


PS8, Line 38: 	gpio_t		first_pad;   /* first pad in community */
            : 	gpio_t		last_pad;    /* last pad in community */
            : 	uint8_t		port;
            : 	size_t		num_gpi_regs;/* number of gpi registers in community */
            : 	uint8_t		gpi_offset;  /* specifies offset in struct gpi_status */
            : 	const char	*name;
> Please rearrange these to make the size the smallest.
I missed to address this in patchset 9 - will fix


Line 56: const struct pad_community *gpio_get_community(gpio_t pad);
> Does this need to be exposed globally?
Yes this will be used from SOC dir


PS8, Line 87:  Returns the gpio group number
> From what? PMC route settings? If it's pmc it should be specified in the co
I missed to address this in patch set 9 - will fix


https://review.coreboot.org/#/c/19759/8/src/soc/intel/common/block/include/intelblocks/gpio_defs.h
File src/soc/intel/common/block/include/intelblocks/gpio_defs.h:

PS8, Line 65: #define  PAD_CFG0_RESET_RSMRST		(3 << 30)
> I'm not sure where this originally came from but it's right for APL.
This does have a conflict for SKL but it is not used in SKL code


-- 
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: 9
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Hannah Williams <hannah.williams at intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin at chromium.org>
Gerrit-Reviewer: Barnali Sarkar <barnali.sarkar at intel.com>
Gerrit-Reviewer: Divya Chellappa <divya.chella at gmail.com>
Gerrit-Reviewer: Furquan Shaikh <furquan at google.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams at intel.com>
Gerrit-Reviewer: Martin Roth <martinroth at google.com>
Gerrit-Reviewer: Nico Huber <nico.h at gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter at users.sourceforge.net>
Gerrit-Reviewer: Ravishankar Sarawadi <ravishankar.sarawadi at intel.com>
Gerrit-Reviewer: Shaunak Saha <shaunak.saha at intel.com>
Gerrit-Reviewer: V Sowmya <v.sowmya at intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-HasComments: Yes



More information about the coreboot-gerrit mailing list