linux/arch/arm/mach-bcm
Alex Elder c64756cca2 ARM: bcm: clean up SMC code
This patch just does some simple cleanup in "bcm_kona_smc.c":
    - Get rid of the secure_bridge_data structure.  Instead, just
      define two globals that record the physical and virtual
      addresses of the SMC arguments buffer.  Use "buffer" instead
      of "bounce" in their names.  Drop of the erroneous __iomem
      annotation for the physical address.
    - Get rid of the initialized flag and just use a non-null buffer
      address to indicate that.
    - Get the size of the memory region when fetching the SMC
      arguments buffer location from the device tree.  Use it to
      call ioremap() directly rather than requiring of_iomap() to
      go look it up again.
    - Do some additional validation on that memory region size.
    - Flush caches unconditionally in __bcm_kona_smc(); nothing
      supplies SSAPI_BRCM_START_VC_CORE as a service id.
    - Drop a needless initialization of "rc" in __bcm_kona_smc().

It also deletes most of the content of "bcm_kona_smc.h" because it's
never actually used and is of questionable value anyway.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Reviewed-by: Markus Mayer <markus.mayer@linaro.org>
Reviewed-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Matt Porter <mporter@linaro.org>
2014-04-25 08:51:32 -04:00
..
bcm_5301x.c ARM: BCM5301X: workaround suppress fault 2014-03-06 00:36:04 -05:00
bcm_kona_smc_asm.S ARM: bcm281xx: Add L2 cache enable code 2013-04-09 09:18:13 -07:00
bcm_kona_smc.c ARM: bcm: clean up SMC code 2014-04-25 08:51:32 -04:00
bcm_kona_smc.h ARM: bcm: clean up SMC code 2014-04-25 08:51:32 -04:00
board_bcm281xx.c ARM: bcm281xx: Rename board_init() function 2014-03-06 03:18:01 -05:00
board_bcm2835.c ARM: bcm2835: Move to mach-bcm directory 2014-02-24 19:42:35 -07:00
board_bcm21664.c ARM: bcm21664: Add board support. 2014-03-14 11:25:15 -04:00
Kconfig ARM: bcm: clean up config and build targets 2014-04-25 08:51:30 -04:00
kona.c ARM: bcm281xx: Consolidate reboot code 2014-03-06 03:17:59 -05:00
kona.h ARM: bcm281xx: Consolidate reboot code 2014-03-06 03:17:59 -05:00
Makefile ARM: bcm: clean up config and build targets 2014-04-25 08:51:30 -04:00