diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-19 10:40:03 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:41 -0700 |
commit | 6563b205eb65653e8fe0d3f92106ec37d28a4af7 (patch) | |
tree | e6438c8c50d3dfb64d4937fc42c61969770ec856 | |
parent | 332b98660f964895f05277dbbc2e0fd05d04ca9b (diff) | |
download | u-boot-6563b205eb65653e8fe0d3f92106ec37d28a4af7.zip u-boot-6563b205eb65653e8fe0d3f92106ec37d28a4af7.tar.gz u-boot-6563b205eb65653e8fe0d3f92106ec37d28a4af7.tar.bz2 |
dm: core: Move priv/plat structs for simple_bus to headers
With the new of-platdata, these need to be available to dt_platdata.c
so must be in header files. Move them.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | drivers/core/simple-bus.c | 7 | ||||
-rw-r--r-- | include/dm/simple_bus.h | 15 |
2 files changed, 16 insertions, 6 deletions
diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index 7dbcbec..b0c2c20 100644 --- a/drivers/core/simple-bus.c +++ b/drivers/core/simple-bus.c @@ -5,12 +5,7 @@ #include <common.h> #include <dm.h> - -struct simple_bus_plat { - u32 base; - u32 size; - u32 target; -}; +#include <dm/simple_bus.h> 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 0000000..4ad4cc4 --- /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 |