diff options
| author | Simon Glass <[email protected]> | 2016-01-17 16:11:34 -0700 |
|---|---|---|
| committer | Bin Meng <[email protected]> | 2016-01-24 12:09:39 +0800 |
| commit | e3b5f04143a859092d4e09f61e526790836714f2 (patch) | |
| tree | 6625e369c66db2fb61bbf7d1299ba3b089acc6e1 /drivers/block/disk-uclass.c | |
| parent | 887cba8f38e237735bb1d84b34dfbbf032e5b6b6 (diff) | |
ahci: Add a disk-controller uclass
Add a uclass ID for a disk controller. This can be used by AHCI/SATA or
other controller types. There are no operations and no interface so far,
but it is possible to probe a SATA device.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'drivers/block/disk-uclass.c')
| -rw-r--r-- | drivers/block/disk-uclass.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/block/disk-uclass.c b/drivers/block/disk-uclass.c new file mode 100644 index 00000000000..d665b3505ad --- /dev/null +++ b/drivers/block/disk-uclass.c @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2015 Google, Inc + * Written by Simon Glass <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <dm.h> + +UCLASS_DRIVER(disk) = { + .id = UCLASS_DISK, + .name = "disk", +}; |
