nb/amd/pi: drop HW_MEM_HOLE_SIZEK Kconfig option

There's neither need to remove get_hw_mem_hole_info from the code if the
Kconfig option was set to 0 nor the actual value didn't make any
difference in the behavior of the code: When node_id has still its
initial value of -1, domain_read_resources won't use the value of
hole_startk, and when node_id is set to 0, get_hw_mem_hole_info also
sets hole_startk to the actual value that then gets used by
domain_read_resources.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ieffab695a3151ed7f6bf9d6c880bbb43eecf7893
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79609
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/northbridge/amd/pi/00730F01/Kconfig b/src/northbridge/amd/pi/00730F01/Kconfig
index 493bc6a..46acb2d 100644
--- a/src/northbridge/amd/pi/00730F01/Kconfig
+++ b/src/northbridge/amd/pi/00730F01/Kconfig
@@ -10,10 +10,6 @@
 	string
 	default "northbridge/amd/pi/00730F01/chipset.cb"
 
-config HW_MEM_HOLE_SIZEK
-	hex
-	default 0x100000
-
 config ECAM_MMCONF_BASE_ADDRESS
 	default 0xF8000000
 
diff --git a/src/northbridge/amd/pi/00730F01/northbridge.c b/src/northbridge/amd/pi/00730F01/northbridge.c
index 9b535f4..dae2401 100644
--- a/src/northbridge/amd/pi/00730F01/northbridge.c
+++ b/src/northbridge/amd/pi/00730F01/northbridge.c
@@ -555,7 +555,6 @@
 	}
 }
 
-#if CONFIG_HW_MEM_HOLE_SIZEK != 0
 struct hw_mem_hole_info {
 	unsigned int hole_startk;
 	int node_id;
@@ -563,7 +562,6 @@
 static struct hw_mem_hole_info get_hw_mem_hole_info(void)
 {
 	struct hw_mem_hole_info mem_hole;
-	mem_hole.hole_startk = CONFIG_HW_MEM_HOLE_SIZEK;
 	mem_hole.node_id = -1;
 
 	resource_t basek, limitk;
@@ -576,15 +574,12 @@
 	}
 	return mem_hole;
 }
-#endif
 
 static void domain_read_resources(struct device *dev)
 {
 	unsigned long mmio_basek;
 	unsigned long idx = 0;
-#if CONFIG_HW_MEM_HOLE_SIZEK != 0
 	struct hw_mem_hole_info mem_hole;
-#endif
 	resource_t basek = 0;
 	resource_t limitk = 0;
 	resource_t sizek;
@@ -594,7 +589,6 @@
 	/* TOP_MEM MSR is our boundary between DRAM and MMIO under 4G */
 	mmio_basek = get_top_of_mem_below_4gb() >> 10;
 
-#if CONFIG_HW_MEM_HOLE_SIZEK != 0
 	/* if the hw mem hole is already set in raminit stage, here we will compare
 	 * mmio_basek and hole_basek. if mmio_basek is bigger that hole_basek and will
 	 * use hole_basek as mmio_basek and we don't need to reset hole.
@@ -607,7 +601,6 @@
 	if ((mem_hole.node_id !=  -1) && (mmio_basek > mem_hole.hole_startk)) {
 		mmio_basek = mem_hole.hole_startk;
 	}
-#endif
 
 	get_dram_base_limit(&basek, &limitk);
 	sizek = limitk - basek;
diff --git a/src/northbridge/amd/pi/Kconfig b/src/northbridge/amd/pi/Kconfig
index 4518db1..3222198 100644
--- a/src/northbridge/amd/pi/Kconfig
+++ b/src/northbridge/amd/pi/Kconfig
@@ -25,10 +25,6 @@
 
 source "src/northbridge/amd/pi/00730F01/Kconfig"
 
-config HW_MEM_HOLE_SIZEK
-	hex
-	default 0x200000
-
 config HEAP_SIZE
 	hex
 	default 0xc0000