staging/ion: add Allwinner ION "secure" heap **not for mainline**
authorEtienne Carriere <etienne.carriere@linaro.org>
Thu, 23 Mar 2017 13:02:08 +0000 (14:02 +0100)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:56:39 +0000 (14:56 -0500)
commit3e2c0139f398e95c248db56e059856fd20be06d4
tree33470bda0773c7e50e8c389c5bea78888ce7e133
parent5acadef1f703c5174647c2bdb4e480b84d54d252
staging/ion: add Allwinner ION "secure" heap **not for mainline**

Dumped from:
  https://github.com/loboris/OrangePI-Kernel/tree/master/linux-3.4
  0cc8d855adb
  Author: Sunny <sunny@allwinnertech.com> for Allwinner.

Changes made on original "secure heap" implementation:
- minor coding style: fix includes, empty lines and overlong lines,
  indentation, comment layout.
- Original path modified the ion uapi. We do not attempt to modify
  uapi/ion.h. "secure" (or "domain") heaps are under ID
  ION_HEAP_TYPE_CUSTOM + 1 (legacy 'secure heap type' value).

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit e31dd54997b050b6a6965d7cfbc795492256847c
 linaro repo https://github.com/linaro-swg/linux.git
 tag optee-v4.9-20171005)
drivers/staging/android/ion/Makefile
drivers/staging/android/ion/ion_secure_heap.c [new file with mode: 0644]