AGESA binaryPI: Add AGESA entry timestamps

The call to timestamp_rescale_table() had to be moved
before TS_AGESA_INIT_{POST/RESUME}_DONE to have that
timestamp appear without rescaling.

Change-Id: I71e09d3bc4c8657979d447b90fb6ac7cae959479
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31515
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
diff --git a/src/vendorcode/amd/Kconfig b/src/vendorcode/amd/Kconfig
index 3fe0c82..44b3940 100644
--- a/src/vendorcode/amd/Kconfig
+++ b/src/vendorcode/amd/Kconfig
@@ -47,6 +47,15 @@
 source src/vendorcode/amd/pi/Kconfig
 endif
 
+config AGESA_EXTRA_TIMESTAMPS
+	bool "Add instrumentation for AGESA calls"
+	default n
+	depends on !BINARYPI_LEGACY_WRAPPER
+	depends on DRIVERS_AMD_PI
+	help
+	  Insert additional timestamps around each entrypoint into
+	  AGESA vendorcode.
+
 endmenu
 
 endif