aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi-uclass.c
blob: e4ee44bb4c312405ab6291423d0e8d16adbdcc9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * 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,
	.per_device_platdata_auto_alloc_size = sizeof(struct scsi_platdata),
};