From 2a64b8ae9b952b18b4aef38cb7c41ce6dba16c50 Mon Sep 17 00:00:00 2001 From: "Jason M. Bills" Date: Mon, 24 May 2021 12:54:37 -0700 Subject: Update to internal 0.52 Signed-off-by: Jason M. Bills --- ...020-Add-BMC-running-indicator-LED-control.patch | 62 ---------------------- 1 file changed, 62 deletions(-) delete mode 100644 meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0020-Add-BMC-running-indicator-LED-control.patch (limited to 'meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0020-Add-BMC-running-indicator-LED-control.patch') diff --git a/meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0020-Add-BMC-running-indicator-LED-control.patch b/meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0020-Add-BMC-running-indicator-LED-control.patch deleted file mode 100644 index 768f3adaa..000000000 --- a/meta-openbmc-mods/meta-ast2600/recipes-bsp/u-boot/files/0020-Add-BMC-running-indicator-LED-control.patch +++ /dev/null @@ -1,62 +0,0 @@ -From a5e31f9ef7622b001c55f96a98dd18b19976c90c Mon Sep 17 00:00:00 2001 -From: Jae Hyun Yoo -Date: Fri, 26 Jun 2020 14:35:47 -0700 -Subject: [PATCH] Add BMC running indicator LED control - -HBLED cannot be enabled due to a conflict with PWM15 pin and H/W -team is not going to change board layout for supporting HBLED to -keep compatibility between board revisions. Instead, we are going -to use the LED connected to GPIO V5 as BMC running indicator LED. -This commit adds the LED control. - -Signed-off-by: Jae Hyun Yoo ---- - board/aspeed/ast2600_intel/intel.c | 18 ++++++++++++++++++ - 1 file changed, 18 insertions(+) - -diff --git a/board/aspeed/ast2600_intel/intel.c b/board/aspeed/ast2600_intel/intel.c -index 1d650ff959f6..95a90474cbd3 100644 ---- a/board/aspeed/ast2600_intel/intel.c -+++ b/board/aspeed/ast2600_intel/intel.c -@@ -194,6 +194,8 @@ static void sgpio_init(void) - #define GPIO_074 0x074 /* GPIO I/J/K/L Direction */ - #define GPIO_080 0x080 /* GPIO Q/R/S/T Value */ - #define GPIO_084 0x084 /* GPIO Q/R/S/T Direction */ -+#define GPIO_088 0x088 /* GPIO U/V/W/X Value */ -+#define GPIO_08C 0x08C /* GPIO U/V/W/X Direction */ - - static void set_gpio_default_state(void) - { -@@ -270,6 +272,20 @@ void enable_onboard_tpm(void) - AST_GPIO_BASE | GPIO_000); - } - -+void bmc_running_indicator(bool on) -+{ -+#define GPIO_V5 BIT(13) -+ -+ writel(readl(AST_GPIO_BASE | GPIO_08C) | GPIO_V5, -+ AST_GPIO_BASE | GPIO_08C); -+ if (on) -+ writel(readl(AST_GPIO_BASE | GPIO_088) & ~GPIO_V5, -+ AST_GPIO_BASE | GPIO_088); -+ else -+ writel(readl(AST_GPIO_BASE | GPIO_088) | GPIO_V5, -+ AST_GPIO_BASE | GPIO_088); -+} -+ - static void timer_callback(void *cookie) - { - uint timer_nr = (uint)cookie; -@@ -310,6 +326,8 @@ int board_early_init_r(void) - - enable_onboard_tpm(); - -+ bmc_running_indicator(true); -+ - return 0; - } - --- -2.17.1 - -- cgit v1.2.3