diff options
author | zbao <fishbaozi@gmail.com> | 2012-07-02 15:32:58 +0800 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2012-07-03 09:38:55 +0200 |
commit | 2c08f6ade4ac904e9eb762c71f95daa372be0072 (patch) | |
tree | 5ae613c6a0fe7285b6a5129fdc984953c462b801 /src/southbridge/amd | |
parent | 7d94cf93eec15dfb8eef9cd044fe39319d4ee9bc (diff) |
AGESA F15 wrapper for Trinity
The wrapper for Trinity. Support S3. Parme is a example board.
Change-Id: Ib4f653b7562694177683e1e1ffdb27ea176aeaab
Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Signed-off-by: zbao <fishbaozi@gmail.com>
Reviewed-on: http://review.coreboot.org/1156
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/southbridge/amd')
-rw-r--r-- | src/southbridge/amd/cimx/sb800/spi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/southbridge/amd/cimx/sb800/spi.c b/src/southbridge/amd/cimx/sb800/spi.c index b0ef753e10..e1c2ecb2c4 100644 --- a/src/southbridge/amd/cimx/sb800/spi.c +++ b/src/southbridge/amd/cimx/sb800/spi.c @@ -115,6 +115,13 @@ void spi_write_enable(volatile u8 * spi_address) execute_command(spi_address); wait4command_complete(spi_address); } +void spi_write_disable(volatile u8 * spi_address) +{ + *spi_address = 0x04; /* Write Enable */ + *(spi_address + 1) = 0x0; /* RxByte=0, TxByte=0 */ + execute_command(spi_address); + wait4command_complete(spi_address); +} void sector_erase_spi(volatile u8 * spi_address, u32 address) { |