nb/amd/pi/00730F01/northbridge: use get_top_of_mem_[below,above]_4gb
commite345378354225981311304df2357fe7008fcd826
authorFelix Held <felix-coreboot@felixheld.de>
Thu, 20 Apr 2023 11:06:08 +0000 (20 13:06 +0200)
committerFelix Held <felix-coreboot@felixheld.de>
Fri, 21 Apr 2023 15:11:56 +0000 (21 15:11 +0000)
treeb390dc2ccc512f6deb0702554241b45463c6f2fd
parentfb532c711e2ef317108d6ffc35ae751bf7d58530
nb/amd/pi/00730F01/northbridge: use get_top_of_mem_[below,above]_4gb

Use get_top_of_mem_below_4gb and get_top_of_mem_above_4g instead of
open-coding the functionality.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I6332b051acf8d00ba6528360b18ea0d3c4dc30fd
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74611
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
src/northbridge/amd/pi/00730F01/northbridge.c