U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 2/2] config: Adjust Phytec imx8mm module config to support NVME disk
@ 2024-08-01 14:46 Lukasz Majewski
  2024-08-02 19:25 ` Fabio Estevam
  0 siblings, 1 reply; 3+ messages in thread
From: Lukasz Majewski @ 2024-08-01 14:46 UTC (permalink / raw)
  To: Teresa Remmet, u-boot
  Cc: Tom Rini, Benjamin Hahn, Cem Tenruh, Martyn Welch, Simon Glass,
	Fabio Estevam, Lukasz Majewski

This change adds support for PCIe connected nvme disk - phyBOARD-Polis
base board.

One needs to call following commands in u-boot:
> pci enum
> nvme scan
> nvme info

And then ones to access proper file system (like fat[ls|load|write],
ext4[ls|load|write]).

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
Changes for v2:
- Remove not needed adjustment for CONFIG_CYCLIC_MAX_CPU_TIME_US=1000

---
 configs/phycore-imx8mm_defconfig | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/configs/phycore-imx8mm_defconfig b/configs/phycore-imx8mm_defconfig
index 22d419024f..a2d79a6aa7 100644
--- a/configs/phycore-imx8mm_defconfig
+++ b/configs/phycore-imx8mm_defconfig
@@ -12,6 +12,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="imx8mm-phyboard-polis-rdk"
 CONFIG_SPL_TEXT_BASE=0x7E1000
 CONFIG_TARGET_PHYCORE_IMX8MM=y
+CONFIG_DM_RESET=y
 CONFIG_SYS_MONITOR_LEN=524288
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
@@ -23,6 +24,7 @@ CONFIG_SPL_BSS_MAX_SIZE=0x2000
 CONFIG_SPL=y
 CONFIG_ENV_OFFSET_REDUND=0x3E0000
 CONFIG_SYS_LOAD_ADDR=0x40480000
+CONFIG_PCI=y
 CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
@@ -59,6 +61,7 @@ CONFIG_CMD_FUSE=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
+CONFIG_CMD_PCI=y
 CONFIG_CMD_SF_TEST=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
@@ -110,10 +113,15 @@ CONFIG_PHY_TI_DP83867=y
 CONFIG_PHY_GIGE=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
+CONFIG_NVME_PCI=y
+CONFIG_PCIE_DW_IMX=y
+CONFIG_PHY=y
+CONFIG_PHY_IMX8M_PCIE=y
 CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 CONFIG_PINCTRL_IMX8M=y
-CONFIG_DM_REGULATOR=y
+CONFIG_POWER_DOMAIN=y
+CONFIG_IMX8M_POWER_DOMAIN=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_DM_SERIAL=y
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 2/2] config: Adjust Phytec imx8mm module config to support NVME disk
  2024-08-01 14:46 [PATCH v2 2/2] config: Adjust Phytec imx8mm module config to support NVME disk Lukasz Majewski
@ 2024-08-02 19:25 ` Fabio Estevam
  2024-08-05  8:28   ` Lukasz Majewski
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2024-08-02 19:25 UTC (permalink / raw)
  To: Lukasz Majewski
  Cc: Teresa Remmet, u-boot, Tom Rini, Benjamin Hahn, Cem Tenruh,
	Martyn Welch, Simon Glass

On Thu, Aug 1, 2024 at 11:47 AM Lukasz Majewski <lukma@denx.de> wrote:
>
> This change adds support for PCIe connected nvme disk - phyBOARD-Polis
> base board.
>
> One needs to call following commands in u-boot:
> > pci enum
> > nvme scan
> > nvme info
>
> And then ones to access proper file system (like fat[ls|load|write],
> ext4[ls|load|write]).
>
> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> ---
> Changes for v2:
> - Remove not needed adjustment for CONFIG_CYCLIC_MAX_CPU_TIME_US=1000

Applied only this one, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 2/2] config: Adjust Phytec imx8mm module config to support NVME disk
  2024-08-02 19:25 ` Fabio Estevam
@ 2024-08-05  8:28   ` Lukasz Majewski
  0 siblings, 0 replies; 3+ messages in thread
From: Lukasz Majewski @ 2024-08-05  8:28 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Teresa Remmet, u-boot, Tom Rini, Benjamin Hahn, Cem Tenruh,
	Martyn Welch, Simon Glass

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

Hi Fabio,

> On Thu, Aug 1, 2024 at 11:47 AM Lukasz Majewski <lukma@denx.de> wrote:
> >
> > This change adds support for PCIe connected nvme disk -
> > phyBOARD-Polis base board.
> >
> > One needs to call following commands in u-boot:  
> > > pci enum
> > > nvme scan
> > > nvme info  
> >
> > And then ones to access proper file system (like fat[ls|load|write],
> > ext4[ls|load|write]).
> >
> > Signed-off-by: Lukasz Majewski <lukma@denx.de>
> > ---
> > Changes for v2:
> > - Remove not needed adjustment for
> > CONFIG_CYCLIC_MAX_CPU_TIME_US=1000  
> 
> Applied only this one, thanks.

Thanks :-)


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-05  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-01 14:46 [PATCH v2 2/2] config: Adjust Phytec imx8mm module config to support NVME disk Lukasz Majewski
2024-08-02 19:25 ` Fabio Estevam
2024-08-05  8:28   ` Lukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox