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>
This commit is contained in:
Simon Glass
2021-01-05 12:24:41 -07:00
parent 332b98660f
commit 6563b205eb
2 changed files with 16 additions and 6 deletions
+1 -6
View File
@@ -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)
{
+15
View File
@@ -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