ata: sata_sil: Add DM support for Silicon sata driver
[oweals/u-boot.git] / drivers / ata / sata_sil.h
index 8b7cbdf2d2400ed5a50683fe9dd2a55013685668..ef41e8259ac587b9505f5099147b0a455954756b 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright (C) 2011 Freescale Semiconductor, Inc.
+ * Copyright 2019 NXP
  * Author: Tang Yuantian <b29983@freescale.com>
  */
 
@@ -24,6 +25,7 @@ struct sil_sata {
        int             wcache;
        int             flush;
        int             flush_ext;
+       int             id;
 };
 
 /* sata info for each controller */
@@ -210,4 +212,12 @@ enum {
        CMD_ERR         = 0x21,
 };
 
+#if CONFIG_IS_ENABLED(BLK)
+#define ATA_MAX_PORTS          32
+struct sil_sata_priv {
+       int             port_num;
+       struct sil_sata *sil_sata_desc[ATA_MAX_PORTS];
+};
+#endif
+
 #endif