diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index 7dbcbecd94..b0c2c20958 100644 --- a/drivers/core/simple-bus.c +++ b/drivers/core/simple-bus.c @@ -5,12 +5,7 @@ #include #include - -struct simple_bus_plat { - u32 base; - u32 size; - u32 target; -}; +#include fdt_addr_t simple_bus_translate(struct udevice *dev, fdt_addr_t addr) { diff --git a/include/dm/simple_bus.h b/include/dm/simple_bus.h new file mode 100644 index 0000000000..4ad4cc4051 --- /dev/null +++ b/include/dm/simple_bus.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2020 Google LLC + */ + +#ifndef __DM_SIMPLE_BUS_H +#define __DM_SIMPLE_BUS_H + +struct simple_bus_plat { + u32 base; + u32 size; + u32 target; +}; + +#endif