From 09c142e27316ecce328edd0b957ecfd48bc01720 Mon Sep 17 00:00:00 2001 From: Marcel Reichmuth Date: Thu, 23 Mar 2023 15:24:54 +0100 Subject: [PATCH] FIX: [hw14] enable sata power connector on pse boards BugzId: 82693 --- board/nm/hw14/board.c | 2 +- board/nm/hw14/nbhw_fpga_config.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/board/nm/hw14/board.c b/board/nm/hw14/board.c index 52c9191250..d51792822e 100644 --- a/board/nm/hw14/board.c +++ b/board/nm/hw14/board.c @@ -648,7 +648,7 @@ int misc_init_r(void) set_gpio(GPIO_EXT_OE, 1); mdelay(20); - /* Enable SATA power */ + /* Enable SATA power on the CP Board */ debug("Enable SATA\n"); set_gpio(GPIO_EN_SATA_PWR, 1); mdelay(10); diff --git a/board/nm/hw14/nbhw_fpga_config.c b/board/nm/hw14/nbhw_fpga_config.c index d61b1ad7ba..a861e1f8ae 100644 --- a/board/nm/hw14/nbhw_fpga_config.c +++ b/board/nm/hw14/nbhw_fpga_config.c @@ -8,6 +8,7 @@ #include #include "../common/nbhw_bd.h" #include "../common/nbhw_sim.h" +#include "../common/nbhw_fpga_prog.h" #include "nbhw_gpio.h" DECLARE_GLOBAL_DATA_PTR; @@ -210,6 +211,9 @@ int nbhw_fpga_configure(void) ofnode node = driver_dev->node; debug("%s\n", __func__); + /* Apply SATA power on the PSE board */ + FPGA_REG(0x0050) = 0x0008; + ofnode_for_each_subnode(subnode, node) { const char *name;