AGESA fam12 fam14 fam15: Sanitize BiosCallOuts headers
Change-Id: Ic08f1f2fdbcf6164eb1a0330f9134da3fdb978d7 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7114 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
a1ebbc42ad
commit
50c9637e15
@ -29,18 +29,6 @@
|
|||||||
|
|
||||||
#include <southbridge/amd/cimx/sb700/smbus_spd.h>
|
#include <southbridge/amd/cimx/sb700/smbus_spd.h>
|
||||||
|
|
||||||
#ifndef SB_GPIO_REG01
|
|
||||||
#define SB_GPIO_REG01 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SB_GPIO_REG24
|
|
||||||
#define SB_GPIO_REG24 24
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SB_GPIO_REG27
|
|
||||||
#define SB_GPIO_REG27 27
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __PRE_RAM__
|
#ifdef __PRE_RAM__
|
||||||
/* This define is used when selecting the appropriate socket for the SPD read
|
/* This define is used when selecting the appropriate socket for the SPD read
|
||||||
* because this is a multi-socket design.
|
* because this is a multi-socket design.
|
||||||
|
@ -24,13 +24,5 @@
|
|||||||
#include <northbridge/amd/agesa/family15/fam15_callouts.h>
|
#include <northbridge/amd/agesa/family15/fam15_callouts.h>
|
||||||
|
|
||||||
|
|
||||||
#define SB_GPIO_REG02 2
|
|
||||||
#define SB_GPIO_REG09 9
|
|
||||||
#define SB_GPIO_REG10 10
|
|
||||||
#define SB_GPIO_REG15 15
|
|
||||||
#define SB_GPIO_REG17 17
|
|
||||||
#define SB_GPIO_REG21 21
|
|
||||||
#define SB_GPIO_REG25 25
|
|
||||||
#define SB_GPIO_REG28 28
|
|
||||||
|
|
||||||
#endif //_BIOS_CALLOUT_H_
|
#endif //_BIOS_CALLOUT_H_
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include "SB800.h"
|
#include "SB800.h"
|
||||||
|
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
||||||
|
@ -24,13 +24,5 @@
|
|||||||
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
||||||
|
|
||||||
|
|
||||||
#define SB_GPIO_REG02 2
|
|
||||||
#define SB_GPIO_REG09 9
|
|
||||||
#define SB_GPIO_REG10 10
|
|
||||||
#define SB_GPIO_REG15 15
|
|
||||||
#define SB_GPIO_REG17 17
|
|
||||||
#define SB_GPIO_REG21 21
|
|
||||||
#define SB_GPIO_REG25 25
|
|
||||||
#define SB_GPIO_REG28 28
|
|
||||||
|
|
||||||
#endif //_BIOS_CALLOUT_H_
|
#endif //_BIOS_CALLOUT_H_
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "BiosCallOuts.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vendorcode/amd/agesa/f14/Proc/CPU/heapManager.h>
|
#include <vendorcode/amd/agesa/f14/Proc/CPU/heapManager.h>
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "BiosCallOuts.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vendorcode/amd/agesa/f14/Proc/CPU/heapManager.h>
|
#include <vendorcode/amd/agesa/f14/Proc/CPU/heapManager.h>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include "SB800.h"
|
#include "SB800.h"
|
||||||
|
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
||||||
|
@ -24,13 +24,4 @@
|
|||||||
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
||||||
|
|
||||||
|
|
||||||
#define SB_GPIO_REG02 2
|
|
||||||
#define SB_GPIO_REG09 9
|
|
||||||
#define SB_GPIO_REG10 10
|
|
||||||
#define SB_GPIO_REG15 15
|
|
||||||
#define SB_GPIO_REG17 17
|
|
||||||
#define SB_GPIO_REG21 21
|
|
||||||
#define SB_GPIO_REG25 25
|
|
||||||
#define SB_GPIO_REG28 28
|
|
||||||
|
|
||||||
#endif //_BIOS_CALLOUT_H_
|
#endif //_BIOS_CALLOUT_H_
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "BiosCallOuts.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vendorcode/amd/agesa/f14/Proc/CPU/heapManager.h>
|
#include <vendorcode/amd/agesa/f14/Proc/CPU/heapManager.h>
|
||||||
|
@ -25,18 +25,7 @@
|
|||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include "Hudson-2.h"
|
#include "Hudson-2.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <southbridge/amd/cimx/sb700/gpio_oem.h>
|
||||||
#ifndef SB_GPIO_REG01
|
|
||||||
#define SB_GPIO_REG01 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SB_GPIO_REG24
|
|
||||||
#define SB_GPIO_REG24 24
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SB_GPIO_REG27
|
|
||||||
#define SB_GPIO_REG27 27
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
||||||
static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
static AGESA_STATUS board_GnbPcieSlotReset (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
||||||
|
@ -24,9 +24,4 @@
|
|||||||
#include <northbridge/amd/agesa/family12/fam12_callouts.h>
|
#include <northbridge/amd/agesa/family12/fam12_callouts.h>
|
||||||
|
|
||||||
|
|
||||||
// These registers are not defined in cimx/SB900/Hudson-2.h
|
|
||||||
#define SB_GPIO_REG02 2
|
|
||||||
#define SB_GPIO_REG15 15
|
|
||||||
#define SB_GPIO_REG25 25
|
|
||||||
|
|
||||||
#endif //_BIOS_CALLOUT_H_
|
#endif //_BIOS_CALLOUT_H_
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "BiosCallOuts.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vendorcode/amd/agesa/f12/Proc/CPU/heapManager.h>
|
#include <vendorcode/amd/agesa/f12/Proc/CPU/heapManager.h>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include "SB800.h"
|
#include "SB800.h"
|
||||||
|
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
static AGESA_STATUS board_BeforeDramInit (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
|
||||||
|
@ -24,13 +24,5 @@
|
|||||||
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
||||||
|
|
||||||
|
|
||||||
#define SB_GPIO_REG02 2
|
|
||||||
#define SB_GPIO_REG09 9
|
|
||||||
#define SB_GPIO_REG10 10
|
|
||||||
#define SB_GPIO_REG15 15
|
|
||||||
#define SB_GPIO_REG17 17
|
|
||||||
#define SB_GPIO_REG21 21
|
|
||||||
#define SB_GPIO_REG25 25
|
|
||||||
#define SB_GPIO_REG28 28
|
|
||||||
|
|
||||||
#endif //_BIOS_CALLOUT_H_
|
#endif //_BIOS_CALLOUT_H_
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#include "BiosCallOuts.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "BiosCallOuts.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vendorcode/amd/agesa/f14/Proc/CPU/heapManager.h>
|
#include <vendorcode/amd/agesa/f14/Proc/CPU/heapManager.h>
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
#include "amdlib.h"
|
#include "amdlib.h"
|
||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
|
#include "SB800.h"
|
||||||
|
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -22,15 +22,5 @@
|
|||||||
|
|
||||||
#include <northbridge/amd/agesa/def_callouts.h>
|
#include <northbridge/amd/agesa/def_callouts.h>
|
||||||
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
||||||
#include "SB800.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* FCH GPIO access helpers */
|
|
||||||
#define FCH_IOMUX(gpio_nr) (*(u8*)(ACPI_MMIO_BASE+IOMUX_BASE+(gpio_nr)))
|
|
||||||
#define FCH_GPIO(gpio_nr) (*(volatile u8*)(ACPI_MMIO_BASE+GPIO_BASE+(gpio_nr)))
|
|
||||||
static inline u8 fch_gpio_state(unsigned int gpio_nr)
|
|
||||||
{
|
|
||||||
return FCH_GPIO(gpio_nr) >> 7;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif //_BIOS_CALLOUT_H_
|
#endif //_BIOS_CALLOUT_H_
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#include "BiosCallOuts.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include <cpu/amd/mtrr.h>
|
#include <cpu/amd/mtrr.h>
|
||||||
#include "SBPLATFORM.h"
|
#include "SBPLATFORM.h"
|
||||||
#include "OEM.h" /* SMBUS0_BASE_ADDRESS */
|
#include "OEM.h" /* SMBUS0_BASE_ADDRESS */
|
||||||
|
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||||
|
|
||||||
/* Init SIO GPIOs. */
|
/* Init SIO GPIOs. */
|
||||||
#define SIO_RUNTIME_BASE 0x0E00
|
#define SIO_RUNTIME_BASE 0x0E00
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
#include "amdlib.h"
|
#include "amdlib.h"
|
||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
|
#include "SB800.h"
|
||||||
|
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -22,16 +22,5 @@
|
|||||||
|
|
||||||
#include <northbridge/amd/agesa/def_callouts.h>
|
#include <northbridge/amd/agesa/def_callouts.h>
|
||||||
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
#include <northbridge/amd/agesa/family14/fam14_callouts.h>
|
||||||
#include "SB800.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* FCH GPIO access helpers */
|
|
||||||
#define FCH_IOMUX(gpio_nr) (*(u8*)(ACPI_MMIO_BASE+IOMUX_BASE+(gpio_nr)))
|
|
||||||
#define FCH_PMIO(reg_nr) (*(u8*)(ACPI_MMIO_BASE+PMIO_BASE+(reg_nr)))
|
|
||||||
#define FCH_GPIO(gpio_nr) (*(volatile u8*)(ACPI_MMIO_BASE+GPIO_BASE+(gpio_nr)))
|
|
||||||
static inline u8 fch_gpio_state(unsigned int gpio_nr)
|
|
||||||
{
|
|
||||||
return FCH_GPIO(gpio_nr) >> 7;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif //_BIOS_CALLOUT_H_
|
#endif //_BIOS_CALLOUT_H_
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include "heapManager.h"
|
#include "heapManager.h"
|
||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#include "BiosCallOuts.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include <cpu/amd/mtrr.h>
|
#include <cpu/amd/mtrr.h>
|
||||||
#include "SBPLATFORM.h"
|
#include "SBPLATFORM.h"
|
||||||
#include "OEM.h" /* SMBUS0_BASE_ADDRESS */
|
#include "OEM.h" /* SMBUS0_BASE_ADDRESS */
|
||||||
|
#include <southbridge/amd/cimx/sb800/gpio_oem.h>
|
||||||
|
|
||||||
/* Write data block to slave on SMBUS0. */
|
/* Write data block to slave on SMBUS0. */
|
||||||
#define SMB0_STATUS ((SMBUS0_BASE_ADDRESS) + 0)
|
#define SMB0_STATUS ((SMBUS0_BASE_ADDRESS) + 0)
|
||||||
|
11
src/southbridge/amd/cimx/sb700/gpio_oem.h
Normal file
11
src/southbridge/amd/cimx/sb700/gpio_oem.h
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#ifndef _CIMX_SB_GPIO_OEM_H_
|
||||||
|
#define _CIMX_SB_GPIO_OEM_H_
|
||||||
|
|
||||||
|
#define SB_GPIO_REG01 1
|
||||||
|
#define SB_GPIO_REG02 2
|
||||||
|
#define SB_GPIO_REG15 15
|
||||||
|
#define SB_GPIO_REG24 24
|
||||||
|
#define SB_GPIO_REG25 25
|
||||||
|
#define SB_GPIO_REG27 27
|
||||||
|
|
||||||
|
#endif
|
23
src/southbridge/amd/cimx/sb800/gpio_oem.h
Normal file
23
src/southbridge/amd/cimx/sb800/gpio_oem.h
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#ifndef _CIMX_SB_GPIO_OEM_H_
|
||||||
|
#define _CIMX_SB_GPIO_OEM_H_
|
||||||
|
|
||||||
|
#define SB_GPIO_REG02 2
|
||||||
|
#define SB_GPIO_REG09 9
|
||||||
|
#define SB_GPIO_REG10 10
|
||||||
|
#define SB_GPIO_REG15 15
|
||||||
|
#define SB_GPIO_REG17 17
|
||||||
|
#define SB_GPIO_REG21 21
|
||||||
|
#define SB_GPIO_REG25 25
|
||||||
|
#define SB_GPIO_REG28 28
|
||||||
|
|
||||||
|
/* FCH GPIO access helpers */
|
||||||
|
#define FCH_IOMUX(gpio_nr) (*(u8*)(ACPI_MMIO_BASE+IOMUX_BASE+(gpio_nr)))
|
||||||
|
#define FCH_PMIO(reg_nr) (*(u8*)(ACPI_MMIO_BASE+PMIO_BASE+(reg_nr)))
|
||||||
|
#define FCH_GPIO(gpio_nr) (*(volatile u8*)(ACPI_MMIO_BASE+GPIO_BASE+(gpio_nr)))
|
||||||
|
|
||||||
|
static inline u8 fch_gpio_state(unsigned int gpio_nr)
|
||||||
|
{
|
||||||
|
return FCH_GPIO(gpio_nr) >> 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user