]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add external PLATFORM access on arm, and use it in the pl310 driver.
authorandrew <andrew@FreeBSD.org>
Tue, 11 Jul 2017 16:30:16 +0000 (16:30 +0000)
committerandrew <andrew@FreeBSD.org>
Tue, 11 Jul 2017 16:30:16 +0000 (16:30 +0000)
commitf68f01fa5fb20137555b423c8bd5dfad3aca6872
tree3edb7f8ea5310f25d8ca3040e9644606873e6f99
parent3611d6313bd3239007a2908248b7c884c45746f6
Add external PLATFORM access on arm, and use it in the pl310 driver.

This allows multiple instances of SoCs that use the pl310 driver to be
built within the same kernel:

 * Add access to the platform_t object from outside platform.c
 * Use this with the pl310 driver

There is a new platform_pl310 interface to replace the existing code. SoCs
need to implement the init method, and if they have special requirements to
write to the two registers we care about will also need to implement the
write_ctrl and write_debug methods.

Differential Revision: https://reviews.freebsd.org/D11546
16 files changed:
sys/arm/arm/pl310.c
sys/arm/arm/platform.c
sys/arm/arm/platform_pl310_if.m [new file with mode: 0644]
sys/arm/conf/GENERIC
sys/arm/freescale/imx/imx6_machdep.c
sys/arm/freescale/imx/imx6_machdep.h
sys/arm/freescale/imx/imx6_pl310.c
sys/arm/include/pl310.h
sys/arm/include/platformvar.h
sys/arm/ti/omap4/omap4_l2cache.c
sys/arm/ti/omap4/omap4_machdep.h
sys/arm/ti/ti_machdep.c
sys/arm/xilinx/zy7_l2cache.c
sys/arm/xilinx/zy7_machdep.c
sys/arm/xilinx/zy7_machdep.h
sys/conf/files.arm