wandboard: enable SATA with imx6q
Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
This commit is contained in:
committed by
Stefano Babic
parent
369012e7e9
commit
e355eec79d
@@ -345,6 +345,12 @@ int board_early_init_f(void)
|
|||||||
#if defined(CONFIG_VIDEO_IPUV3)
|
#if defined(CONFIG_VIDEO_IPUV3)
|
||||||
setup_display();
|
setup_display();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_CMD_SATA
|
||||||
|
/* Only mx6q wandboard has SATA */
|
||||||
|
if (is_cpu_type(MXC_CPU_MX6Q))
|
||||||
|
setup_sata();
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,18 @@
|
|||||||
#define CONFIG_MXC_UART
|
#define CONFIG_MXC_UART
|
||||||
#define CONFIG_MXC_UART_BASE UART1_BASE
|
#define CONFIG_MXC_UART_BASE UART1_BASE
|
||||||
|
|
||||||
|
/* SATA Configs */
|
||||||
|
|
||||||
|
#define CONFIG_CMD_SATA
|
||||||
|
#ifdef CONFIG_CMD_SATA
|
||||||
|
#define CONFIG_DWC_AHSATA
|
||||||
|
#define CONFIG_SYS_SATA_MAX_DEVICE 1
|
||||||
|
#define CONFIG_DWC_AHSATA_PORT_ID 0
|
||||||
|
#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR
|
||||||
|
#define CONFIG_LBA48
|
||||||
|
#define CONFIG_LIBATA
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Command definition */
|
/* Command definition */
|
||||||
#define CONFIG_CMD_BMODE
|
#define CONFIG_CMD_BMODE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user