diff options
author | Mario Six <mario.six@gdsys.cc> | 2018-10-04 09:00:54 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-14 09:16:27 -0800 |
commit | c0a2b086b22b4af3253e4e22d5a9d1e809fd1352 (patch) | |
tree | ba1587a5a08c55b2afc31dd0175bca0ba26a60b9 /drivers/misc/gdsys_soc.h | |
parent | 313d4cc3e982c6bf45e8bcf54a7db256eef41837 (diff) | |
download | u-boot-c0a2b086b22b4af3253e4e22d5a9d1e809fd1352.tar.gz |
misc: Add gdsys_soc driver
This patch adds a driver for the bus associated with a IHS FPGA.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'drivers/misc/gdsys_soc.h')
-rw-r--r-- | drivers/misc/gdsys_soc.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/misc/gdsys_soc.h b/drivers/misc/gdsys_soc.h new file mode 100644 index 0000000000..088d3b6523 --- /dev/null +++ b/drivers/misc/gdsys_soc.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2017 + * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc + */ + +#ifndef _GDSYS_SOC_H_ +#define _GDSYS_SOC_H_ + +/** + * gdsys_soc_get_fpga() - Retrieve pointer to parent bus' FPGA device + * @child: The child device on the FPGA bus needing access to the FPGA. + * @fpga: Pointer to the retrieved FPGA device. + * + * To access their register maps, devices on gdsys soc buses usually have + * facilitate the accessor function of the IHS FPGA their parent bus is + * attached to. To access the FPGA device from within the bus' children, this + * function returns a pointer to it. + * + * Return: 0 on success, -ve on failure + */ +int gdsys_soc_get_fpga(struct udevice *child, struct udevice **fpga); +#endif /* _GDSYS_SOC_H_ */ |