southbridge/amd: Change #if defined to #if IS_ENABLED
commit9b800ae9547ed5890773fd6e12781a49cf3fcfc4
authorDave Frodin <dave.frodin@se-eng.com>
Wed, 11 Jun 2014 19:15:56 +0000 (11 13:15 -0600)
committerDave Frodin <dave.frodin@se-eng.com>
Thu, 12 Jun 2014 18:13:21 +0000 (12 20:13 +0200)
tree38c1b0ec3009d7c28e664c569cb10e758ea12e27
parent41ea7230f7c8a94d20d8eefc908e250b359b7cf0
southbridge/amd: Change #if defined to #if IS_ENABLED

The IMC functions were being called and timing out when the
CONFIG_SB800_IMC_FWM/CONFIG_HUDSON_IMC_FWM were defined as 0.
Changing to a IS_ENABLED will keep the IMC handshake from
occuring if the IMC firmware isn't running.

Tested on a Persimmon platform which makes three calls to
spi_claim_bus() with each call timing out after 500ms.

Change-Id: I5d4bbcecf003b93704553b495a16bcd15f66763b
Signed-off-by: Dave Frodin <dave.frodin@se-eng.com>
Reviewed-on: http://review.coreboot.org/5974
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
src/southbridge/amd/agesa/hudson/spi.c
src/southbridge/amd/cimx/sb800/spi.c