2 * Aspeed SD Host Controller
3 * Eddie James <eajames@linux.ibm.com>
5 * Copyright (C) 2019 IBM Corp
6 * SPDX-License-Identifier: GPL-2.0-or-later
10 #define ASPEED_SDHCI_H
12 #include "hw/sd/sdhci.h"
13 #include "qom/object.h"
15 #define TYPE_ASPEED_SDHCI "aspeed.sdhci"
16 OBJECT_DECLARE_SIMPLE_TYPE(AspeedSDHCIState
, ASPEED_SDHCI
)
18 #define ASPEED_SDHCI_CAPABILITIES 0x01E80080
19 #define ASPEED_SDHCI_NUM_SLOTS 2
20 #define ASPEED_SDHCI_NUM_REGS (ASPEED_SDHCI_REG_SIZE / sizeof(uint32_t))
21 #define ASPEED_SDHCI_REG_SIZE 0x100
23 struct AspeedSDHCIState
{
26 SDHCIState slots
[ASPEED_SDHCI_NUM_SLOTS
];
32 uint32_t regs
[ASPEED_SDHCI_NUM_REGS
];
35 #endif /* ASPEED_SDHCI_H */