summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-04-18 17:14:37 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-04-20 09:37:34 +0000
commit0f89a113134639cd1af653f08a005427655bce58 (patch)
tree1ae6201215bb4349f619c1463b125735d7d3a1df
parent35a124ec77953820b1d2cd49d88451d0d0179035 (diff)
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>
-rw-r--r--src/northbridge/intel/sandybridge/raminit.h4
-rw-r--r--src/northbridge/intel/sandybridge/raminit_mrc.c8
2 files changed, 5 insertions, 7 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit.h b/src/northbridge/intel/sandybridge/raminit.h
index dd4e572119..fa9fa98680 100644
--- a/src/northbridge/intel/sandybridge/raminit.h
+++ b/src/northbridge/intel/sandybridge/raminit.h
@@ -9,10 +9,6 @@
#define BOOT_PATH_RESET 1
#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);
-int fixup_sandybridge_errata(void);
-void setup_sdram_meminfo(struct pei_data *pei_data);
#endif /* RAMINIT_H */
diff --git a/src/northbridge/intel/sandybridge/raminit_mrc.c b/src/northbridge/intel/sandybridge/raminit_mrc.c
index fbb2b6eebb..0bc33b6c8e 100644
--- a/src/northbridge/intel/sandybridge/raminit_mrc.c
+++ b/src/northbridge/intel/sandybridge/raminit_mrc.c
@@ -49,7 +49,7 @@
#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;
@@ -127,7 +127,7 @@ static void prepare_mrc_cache(struct pei_data *pei_data)
*
* @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)));
@@ -320,6 +320,8 @@ static void disable_p2p(void)
RCBA32(FD) |= PCH_DISABLE_P2P;
}
+static void setup_sdram_meminfo(struct pei_data *pei_data);
+
void perform_raminit(int s3resume)
{
struct pei_data pei_data;
@@ -390,7 +392,7 @@ void perform_raminit(int s3resume)
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];
struct memory_info *mem_info;