summaryrefslogtreecommitdiff
path: root/util/intelp2m/platforms/apl/macro.go
diff options
context:
space:
mode:
authorMaxim Polyakov <max.senia.poliak@gmail.com>2020-09-08 10:12:02 +0300
committerMichael Niewöhner <foss@mniewoehner.de>2020-09-28 15:44:23 +0000
commitc65f1f95dc48d2a08c417d73c291c436280d85ab (patch)
treec379ee8beb03c338db1c7098eb3cf6bd2973df06 /util/intelp2m/platforms/apl/macro.go
parentbe96c62b1ed34fefdf592b46e768eceea70cc66a (diff)
util/intelp2m/apl: Remove unused plat-spec function
Change-Id: I42074387a08b66b038ad2939f31be263eaa3af0e Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44473 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/intelp2m/platforms/apl/macro.go')
-rw-r--r--util/intelp2m/platforms/apl/macro.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/util/intelp2m/platforms/apl/macro.go b/util/intelp2m/platforms/apl/macro.go
index 4288fa448d..0364067f11 100644
--- a/util/intelp2m/platforms/apl/macro.go
+++ b/util/intelp2m/platforms/apl/macro.go
@@ -37,32 +37,6 @@ type PlatformSpecific struct {}
// remmap is not required because it is the same as common.
func (PlatformSpecific) RemmapRstSrc() {}
-// Adds the PADRSTCFG parameter from DW0 to the macro as a new argument
-// return: macro
-func (PlatformSpecific) Rstsrc() {
- macro := common.GetMacro()
- dw0 := macro.Register(PAD_CFG_DW0)
- // See src/soc/intel/apollolake/gpio_apl.c:
- // static const struct reset_mapping rst_map[] = {
- // { .logical = PAD_CFG0_LOGICAL_RESET_PWROK, .chipset = 0U << 30 },
- // { .logical = PAD_CFG0_LOGICAL_RESET_DEEP, .chipset = 1U << 30 },
- // { .logical = PAD_CFG0_LOGICAL_RESET_PLTRST, .chipset = 2U << 30 },
- // };
-
- var resetsrc = map[uint8]string{
- 0: "PWROK",
- 1: "DEEP",
- 2: "PLTRST",
- }
- str, valid := resetsrc[dw0.GetResetConfig()]
- if !valid {
- // 3h = Reserved (implement as setting 0h)
- dw0.CntrMaskFieldsClear(common.PadRstCfgMask)
- str = "PWROK"
- }
- macro.Separator().Add(str)
-}
-
// Adds The Pad Termination (TERM) parameter from DW1 to the macro as a new argument
// return: macro
func (PlatformSpecific) Pull() {