nb/intel/snb: Reduce scope of functions
Change-Id: Idefbe15c5f7c7169d9b60079b90cd02affb261ca Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63701 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
35a124ec77
commit
0f89a11313
|
@ -9,10 +9,6 @@
|
||||||
#define BOOT_PATH_RESET 1
|
#define BOOT_PATH_RESET 1
|
||||||
#define BOOT_PATH_RESUME 2
|
#define BOOT_PATH_RESUME 2
|
||||||
|
|
||||||
void sdram_initialize(struct pei_data *pei_data);
|
|
||||||
void save_mrc_data(struct pei_data *pei_data);
|
|
||||||
void mainboard_fill_pei_data(struct pei_data *pei_data);
|
void mainboard_fill_pei_data(struct pei_data *pei_data);
|
||||||
int fixup_sandybridge_errata(void);
|
|
||||||
void setup_sdram_meminfo(struct pei_data *pei_data);
|
|
||||||
|
|
||||||
#endif /* RAMINIT_H */
|
#endif /* RAMINIT_H */
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
#define MRC_CACHE_VERSION 0
|
#define MRC_CACHE_VERSION 0
|
||||||
|
|
||||||
void save_mrc_data(struct pei_data *pei_data)
|
static void save_mrc_data(struct pei_data *pei_data)
|
||||||
{
|
{
|
||||||
u16 c1, c2, checksum;
|
u16 c1, c2, checksum;
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ static void prepare_mrc_cache(struct pei_data *pei_data)
|
||||||
*
|
*
|
||||||
* @param pei_data: configuration data for UEFI PEI reference code
|
* @param pei_data: configuration data for UEFI PEI reference code
|
||||||
*/
|
*/
|
||||||
void sdram_initialize(struct pei_data *pei_data)
|
static void sdram_initialize(struct pei_data *pei_data)
|
||||||
{
|
{
|
||||||
int (*entry)(struct pei_data *pei_data) __attribute__((regparm(1)));
|
int (*entry)(struct pei_data *pei_data) __attribute__((regparm(1)));
|
||||||
|
|
||||||
|
@ -320,6 +320,8 @@ static void disable_p2p(void)
|
||||||
RCBA32(FD) |= PCH_DISABLE_P2P;
|
RCBA32(FD) |= PCH_DISABLE_P2P;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void setup_sdram_meminfo(struct pei_data *pei_data);
|
||||||
|
|
||||||
void perform_raminit(int s3resume)
|
void perform_raminit(int s3resume)
|
||||||
{
|
{
|
||||||
struct pei_data pei_data;
|
struct pei_data pei_data;
|
||||||
|
@ -390,7 +392,7 @@ void perform_raminit(int s3resume)
|
||||||
setup_sdram_meminfo(&pei_data);
|
setup_sdram_meminfo(&pei_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setup_sdram_meminfo(struct pei_data *pei_data)
|
static void setup_sdram_meminfo(struct pei_data *pei_data)
|
||||||
{
|
{
|
||||||
u32 addr_decoder_common, addr_decode_ch[2];
|
u32 addr_decoder_common, addr_decode_ch[2];
|
||||||
struct memory_info *mem_info;
|
struct memory_info *mem_info;
|
||||||
|
|
Loading…
Reference in New Issue