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

Subrata Banik (Code Review) gerrit at coreboot.org
Thu Apr 20 16:03:59 CEST 2017


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

Change subject: soc/intel/common/block: [WIP]Add Intel common smbus code
......................................................................


Patch Set 2:

(4 comments)

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

Line 36: #define SMBUS_TIMEOUT	(10 * 1000 * 100)
please comment out delay value


PS2, Line 79: inb
can't we use ioread? just a thought


PS2, Line 95: outb
same


PS2, Line 180: #if !ENV_RAMSTAGE
             : 
             : u8 smbus_read_byte(u32 smbus_dev, u8 addr, u8 offset)
             : {
             : 	return do_smbus_read_byte(SMBUS_IO_BASE, addr, offset);
             : }
             : 
             : u8 smbus_write_byte(u32 smbus_dev, u8 addr, u8 offset, u8 value)
             : {
             : 	return do_smbus_write_byte(SMBUS_IO_BASE, addr, offset, value);
             : }
             : #endif
u don't want to include this 2 function in ramstage?


-- 
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: 2
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Aamir Bohra <aamir.bohra at intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin at chromium.org>
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)
Gerrit-HasComments: Yes



More information about the coreboot-gerrit mailing list