summaryrefslogtreecommitdiff
path: root/include/ahci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-14 21:28:38 -0600
committerSimon Glass <sjg@chromium.org>2017-07-11 10:08:19 -0600
commit4279efc4c949116535bb99f4aa74260d93f82b92 (patch)
tree6e2216bdef8a49a4d332d68c1f15187d7cf246d8 /include/ahci.h
parent7cf1afce7fa3fe64189020fe14b93f7326dd0758 (diff)
downloadu-boot-4279efc4c949116535bb99f4aa74260d93f82b92.tar.gz
u-boot-4279efc4c949116535bb99f4aa74260d93f82b92.tar.bz2
u-boot-4279efc4c949116535bb99f4aa74260d93f82b92.zip
dm: ahci: Drop use of probe_ent
With driver model we cannot have static data or assume that there is only one device of each time. Adjust the code so that 'probe_ent' is not needed with driver model. Add a new ahci_init_dm() function which can init AHCI for driver model without re-allocating the uclass data. Move over the only existing driver to use this new function. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/ahci.h')
-rw-r--r--include/ahci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ahci.h b/include/ahci.h
index ec5b0c7d9d..3d61ad1fce 100644
--- a/include/ahci.h
+++ b/include/ahci.h
@@ -193,4 +193,11 @@ int achi_init_one_dm(struct udevice *dev);
*/
int achi_start_ports_dm(struct udevice *dev);
+/**
+ * ahci_init_dm() - init AHCI for a controller, finding all ports
+ *
+ * @dev: Device to init
+ */
+int ahci_init_dm(struct udevice *dev, void __iomem *base);
+
#endif