blob: ee612e4110c93982c542293c2354b790027a775b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/aoac.h>
#include <device/device.h>
#include <soc/aoac_defs.h>
static void emmc_read_resources(struct device *dev)
{
mmio_resource_kb(dev, 0, dev->path.mmio.addr / KiB, 4);
}
static void emmc_enable(struct device *dev)
{
if (!dev->enabled)
power_off_aoac_device(FCH_AOAC_DEV_EMMC);
}
struct device_operations amd_emmc_mmio_ops = {
.read_resources = emmc_read_resources,
.set_resources = noop_set_resources,
.scan_bus = scan_static_bus,
.enable = emmc_enable,
};
|