All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: mvebu: enable sata support for clearfog
@ 2018-05-28 10:35 Baruch Siach
  2018-05-29  6:44 ` Stefan Roese
  2018-06-05  9:22 ` Stefan Roese
  0 siblings, 2 replies; 3+ messages in thread
From: Baruch Siach @ 2018-05-28 10:35 UTC (permalink / raw)
  To: u-boot

From: Jon Nettleton <jon@solid-run.com>

The a38x sata interfaces run in ahci mode and can
be accessed via the scsi command.

Signed-off-by: Jon Nettleton <jon@solid-run.com>
[baruch: rebase on current upstream]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 configs/clearfog_defconfig | 2 ++
 include/configs/clearfog.h | 9 +++++++++
 2 files changed, 11 insertions(+)

diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig
index 5e1733e11ba1..3972c31ef978 100644
--- a/configs/clearfog_defconfig
+++ b/configs/clearfog_defconfig
@@ -33,6 +33,7 @@ CONFIG_CMD_TIME=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_SCSI_AHCI=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_MV=y
@@ -44,6 +45,7 @@ CONFIG_PHY_MARVELL=y
 CONFIG_PHY_GIGE=y
 CONFIG_MVNETA=y
 CONFIG_PCI=y
+CONFIG_SCSI=y
 CONFIG_DEBUG_UART_BASE=0xd0012000
 CONFIG_DEBUG_UART_CLOCK=250000000
 CONFIG_DEBUG_UART_SHIFT=2
diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
index f57f9b21aba6..ed6f000db16b 100644
--- a/include/configs/clearfog.h
+++ b/include/configs/clearfog.h
@@ -62,6 +62,15 @@
 #define CONFIG_PCI_SCAN_SHOW
 #endif
 
+/* SATA support */
+#ifdef CONFIG_SCSI
+#define CONFIG_SCSI_AHCI_PLAT
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID	1
+#define CONFIG_SYS_SCSI_MAX_LUN		1
+#define CONFIG_SYS_SCSI_MAX_DEVICE	(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
+					CONFIG_SYS_SCSI_MAX_LUN)
+#endif
+
 /* Keep device tree and initrd in lower memory so the kernel can access them */
 #define RELOCATION_LIMITS_ENV_SETTINGS	\
 	"fdt_high=0x10000000\0"		\
-- 
2.17.0

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

* [U-Boot] [PATCH] arm: mvebu: enable sata support for clearfog
  2018-05-28 10:35 [U-Boot] [PATCH] arm: mvebu: enable sata support for clearfog Baruch Siach
@ 2018-05-29  6:44 ` Stefan Roese
  2018-06-05  9:22 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2018-05-29  6:44 UTC (permalink / raw)
  To: u-boot

On 28.05.2018 12:35, Baruch Siach wrote:
> From: Jon Nettleton <jon@solid-run.com>
> 
> The a38x sata interfaces run in ahci mode and can
> be accessed via the scsi command.
> 
> Signed-off-by: Jon Nettleton <jon@solid-run.com>
> [baruch: rebase on current upstream]
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

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

* [U-Boot] [PATCH] arm: mvebu: enable sata support for clearfog
  2018-05-28 10:35 [U-Boot] [PATCH] arm: mvebu: enable sata support for clearfog Baruch Siach
  2018-05-29  6:44 ` Stefan Roese
@ 2018-06-05  9:22 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2018-06-05  9:22 UTC (permalink / raw)
  To: u-boot

On 28.05.2018 12:35, Baruch Siach wrote:
> From: Jon Nettleton <jon@solid-run.com>
> 
> The a38x sata interfaces run in ahci mode and can
> be accessed via the scsi command.
> 
> Signed-off-by: Jon Nettleton <jon@solid-run.com>
> [baruch: rebase on current upstream]
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Applied to u-boot-marvell/master.

Thanks,
Stefan

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

end of thread, other threads:[~2018-06-05  9:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-28 10:35 [U-Boot] [PATCH] arm: mvebu: enable sata support for clearfog Baruch Siach
2018-05-29  6:44 ` Stefan Roese
2018-06-05  9:22 ` Stefan Roese

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.