summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi-uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-14 21:28:27 -0600
committerSimon Glass <sjg@chromium.org>2017-07-11 10:08:19 -0600
commit0fcd48fe00e8fb2d433c1bf5ebe586b19228f027 (patch)
tree1b46752f2c58f79c96c7b2e7f05b2228af2d59dd /drivers/scsi/scsi-uclass.c
parentf2105c61821b67bc1d572304d901518e88ee007b (diff)
downloadu-boot-0fcd48fe00e8fb2d433c1bf5ebe586b19228f027.tar.gz
u-boot-0fcd48fe00e8fb2d433c1bf5ebe586b19228f027.tar.bz2
u-boot-0fcd48fe00e8fb2d433c1bf5ebe586b19228f027.zip
scsi: Move drivers into new drivers/scsi directory
At present we have the SCSI drivers in the drivers/block and common/ directories. It is better to split them out into their own place. Use drivers/scsi which is what Linux does. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/scsi/scsi-uclass.c')
-rw-r--r--drivers/scsi/scsi-uclass.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/scsi/scsi-uclass.c b/drivers/scsi/scsi-uclass.c
new file mode 100644
index 0000000000..05da6cdeab
--- /dev/null
+++ b/drivers/scsi/scsi-uclass.c
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2015 Google, Inc
+ * Written by Simon Glass <sjg@chromium.org>
+ * Copyright (c) 2016 Xilinx, Inc
+ * Written by Michal Simek
+ *
+ * Based on ahci-uclass.c
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+#include <dm.h>
+#include <scsi.h>
+
+static int scsi_post_probe(struct udevice *dev)
+{
+ debug("%s: device %p\n", __func__, dev);
+ scsi_low_level_init(0, dev);
+ return 0;
+}
+
+UCLASS_DRIVER(scsi) = {
+ .id = UCLASS_SCSI,
+ .name = "scsi",
+ .post_probe = scsi_post_probe,
+};