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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Simon Glass
2016-01-17 16:11:34 -07:00
committed by Bin Meng
parent 887cba8f38
commit e3b5f04143
4 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
/*
* Copyright (c) 2015 Google, Inc
* Written by Simon Glass <sjg@chromium.org>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
UCLASS_DRIVER(disk) = {
.id = UCLASS_DISK,
.name = "disk",
};