[coreboot-gerrit] Change in coreboot[master]: soc/intel/common/block: Add Intel common SMBus code

Aamir Bohra (Code Review) gerrit at coreboot.org
Thu May 4 16:49:07 CEST 2017


Aamir Bohra has posted comments on this change. ( https://review.coreboot.org/19372 )

Change subject: soc/intel/common/block: Add Intel common SMBus code
......................................................................


Patch Set 8:

(6 comments)

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

Line 20: #define SMBUS_IO_BASE	0xefa0
> This is needed to be exposed because why? Because of the weird split in imp
Ok.Moved SMBUS_IO_BASE ,smbus_read8/smbus_write8 functions to smbuslib.h ,local to common block.


Line 26: void smbus_common_init(void);
> Please provide a comment indicating what the function does, etc.
Done


https://review.coreboot.org/#/c/19372/8/src/soc/intel/common/block/smbus/smbus.c
File src/soc/intel/common/block/smbus/smbus.c:

Line 100: 	0xa123, /* SunRisePoint H */
> Just put these in include/device/pci_ids.h like I noted on the previous CL.
Done


https://review.coreboot.org/#/c/19372/8/src/soc/intel/common/block/smbus/smbuslib.c
File src/soc/intel/common/block/smbus/smbuslib.c:

Line 54: 	inb(0x80);
> Is there a reason we aren't using the normal timer.h APIs?
Revised implementation to use timer APIs from timer.h in PS#9.Please review.


PS8, Line 167: {
> no need for curlies
Done


PS8, Line 181: u32
> It seems you are relying on src/include/device/smbus.h as the common declar
There was difference in declaration(parameter count) between early_smbus.h and device/smbus.h,hence did not pursue to unify it,Also it is being defined at many places in code,would have evolved into bigger change.


-- 
To view, visit https://review.coreboot.org/19372
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I936143a334c31937d557c6828e5876d35b133567
Gerrit-PatchSet: 8
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Aamir Bohra <aamir.bohra at intel.com>
Gerrit-Reviewer: Aamir Bohra <aamir.bohra at intel.com>
Gerrit-Reviewer: Aamir Bohra <aamirbohra at gmail.com>
Gerrit-Reviewer: Aaron Durbin <adurbin at chromium.org>
Gerrit-Reviewer: Arthur Heymans <arthur at aheymans.xyz>
Gerrit-Reviewer: Hannah Williams <hannah.williams at intel.com>
Gerrit-Reviewer: Paul Menzel <paulepanter at users.sourceforge.net>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi at intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik at intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-HasComments: Yes



More information about the coreboot-gerrit mailing list