i82801gx: Don't set I/O base address to static value
authorSven Schnelle <svens@stackframe.org>
Sun, 23 Oct 2011 13:30:29 +0000 (15:30 +0200)
committerRudolf Marek <r.marek@assembler.cz>
Sun, 23 Oct 2011 21:05:44 +0000 (23:05 +0200)
commit3c976791b06c75e8983266b3551f133d89924376
tree5e2cd87c53a493eb69e57d503cb1a5dd46503588
parentfc204c5a72c41e3e435a3e93b1d7a5e352018221
i82801gx: Don't set I/O base address to static value

Doing it this way will break all subsequent smbus calls, because
the smbus code still uses res->base, which points to the old base
address. Fix this by allocating a proper resource.

Change-Id: I0f3d8fba5f8e2db7fe4ca991ef2c345aff436ea4
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/325
Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
Tested-by: build bot (Jenkins)
src/southbridge/intel/i82801gx/smbus.c