arm: mvebu: clearfog: add scsi target to distro-boot
diff mbox series

Message ID 20200217183728.8421-1-josua@solid-run.com
State New
Delegated to: Stefan Roese
Headers show
Series
  • arm: mvebu: clearfog: add scsi target to distro-boot
Related show

Commit Message

Josua Mayer Feb. 17, 2020, 6:37 p.m. UTC
Support for sata devices via the scsi command is available and already
enabled by default for the Clearfog Base and Pro. This change adds scsi
to the list of boot targets used by distro-boot.

Signed-off-by: Josua Mayer <josua@solid-run.com>
Cc: Stefan Roese <sr@denx.de>
---
 include/configs/clearfog.h | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Stefan Roese Feb. 19, 2020, 7:16 a.m. UTC | #1
On 17.02.20 19:37, Josua Mayer wrote:
> Support for sata devices via the scsi command is available and already
> enabled by default for the Clearfog Base and Pro. This change adds scsi
> to the list of boot targets used by distro-boot.
> 
> Signed-off-by: Josua Mayer <josua@solid-run.com>
> Cc: Stefan Roese <sr@denx.de>

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

Thanks,
Stefan

> ---
>   include/configs/clearfog.h | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
> index 633187d86f..33c71b3d51 100644
> --- a/include/configs/clearfog.h
> +++ b/include/configs/clearfog.h
> @@ -104,6 +104,12 @@
>   #define BOOT_TARGET_DEVICES_MMC(func)
>   #endif
>   
> +#ifdef CONFIG_SCSI
> +#define BOOT_TARGET_DEVICES_SCSI(func) func(SCSI, scsi, 0)
> +#else
> +#define BOOT_TARGET_DEVICES_SCSI(func)
> +#endif
> +
>   #ifdef CONFIG_USB_STORAGE
>   #define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
>   #else
> @@ -112,6 +118,7 @@
>   
>   #define BOOT_TARGET_DEVICES(func) \
>   	BOOT_TARGET_DEVICES_MMC(func) \
> +	BOOT_TARGET_DEVICES_SCSI(func) \
>   	BOOT_TARGET_DEVICES_USB(func) \
>   	func(PXE, pxe, na) \
>   	func(DHCP, dhcp, na)
> 


Viele Grüße,
Stefan

Patch
diff mbox series

diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
index 633187d86f..33c71b3d51 100644
--- a/include/configs/clearfog.h
+++ b/include/configs/clearfog.h
@@ -104,6 +104,12 @@ 
 #define BOOT_TARGET_DEVICES_MMC(func)
 #endif
 
+#ifdef CONFIG_SCSI
+#define BOOT_TARGET_DEVICES_SCSI(func) func(SCSI, scsi, 0)
+#else
+#define BOOT_TARGET_DEVICES_SCSI(func)
+#endif
+
 #ifdef CONFIG_USB_STORAGE
 #define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
 #else
@@ -112,6 +118,7 @@ 
 
 #define BOOT_TARGET_DEVICES(func) \
 	BOOT_TARGET_DEVICES_MMC(func) \
+	BOOT_TARGET_DEVICES_SCSI(func) \
 	BOOT_TARGET_DEVICES_USB(func) \
 	func(PXE, pxe, na) \
 	func(DHCP, dhcp, na)