linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: imx_v6_v7_defconfig: enable OP-TEE
@ 2018-01-05  9:40 Peng Fan
  2018-01-24  1:31 ` Peng Fan
  2018-02-02  0:44 ` Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Peng Fan @ 2018-01-05  9:40 UTC (permalink / raw)
  To: shawnguo, fabio.estevam, kernel
  Cc: linux-arm-kernel, linux-kernel, linux-imx, van.freenix, Peng Fan

This patch enables configs for Trusted Execution Environment(TEE) and
Open Portable Trusted Execution Environment(OP-TEE).

With Linux running in Trustzone non-secure world, OP-TEE OS runs in
secure world, linux could use secure services provided by OP-TEE.
With TEE/OP-TEE options selected, use the bindings
in Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt
to let the driver probe work.

On i.MX6/7, now the bootflow is U-Boot->OP-TEE->Linux, OP-TEE will
automatically create that node.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---

V1:
 Tested on i.MX7D-SDB with/without OP-TEE OS.
 OP-TEE needs https://github.com/OP-TEE/optee_os/pull/2052

 arch/arm/configs/imx_v6_v7_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index 29cd1ac48987..72c4231d1b62 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -368,6 +368,8 @@ CONFIG_PWM=y
 CONFIG_PWM_FSL_FTM=y
 CONFIG_PWM_IMX=y
 CONFIG_NVMEM_IMX_OCOTP=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_MUX_MMIO=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT2_FS_XATTR=y
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: enable OP-TEE
  2018-01-05  9:40 [PATCH] ARM: imx_v6_v7_defconfig: enable OP-TEE Peng Fan
@ 2018-01-24  1:31 ` Peng Fan
  2018-02-02  0:44 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Peng Fan @ 2018-01-24  1:31 UTC (permalink / raw)
  To: Peng Fan
  Cc: shawnguo, fabio.estevam, kernel, linux-arm-kernel, linux-kernel,
	linux-imx

Hi,

On Fri, Jan 05, 2018 at 05:40:35PM +0800, Peng Fan wrote:
>This patch enables configs for Trusted Execution Environment(TEE) and
>Open Portable Trusted Execution Environment(OP-TEE).
>
>With Linux running in Trustzone non-secure world, OP-TEE OS runs in
>secure world, linux could use secure services provided by OP-TEE.
>With TEE/OP-TEE options selected, use the bindings
>in Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt
>to let the driver probe work.
>
>On i.MX6/7, now the bootflow is U-Boot->OP-TEE->Linux, OP-TEE will
>automatically create that node.
>
>Signed-off-by: Peng Fan <peng.fan@nxp.com>
>---
>
>V1:
> Tested on i.MX7D-SDB with/without OP-TEE OS.
> OP-TEE needs https://github.com/OP-TEE/optee_os/pull/2052

This OP-TEE OS change has been merged.

Any comments on this patch to enable linux side driver?

Thanks,
Peng.

>
> arch/arm/configs/imx_v6_v7_defconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
>index 29cd1ac48987..72c4231d1b62 100644
>--- a/arch/arm/configs/imx_v6_v7_defconfig
>+++ b/arch/arm/configs/imx_v6_v7_defconfig
>@@ -368,6 +368,8 @@ CONFIG_PWM=y
> CONFIG_PWM_FSL_FTM=y
> CONFIG_PWM_IMX=y
> CONFIG_NVMEM_IMX_OCOTP=y
>+CONFIG_TEE=y
>+CONFIG_OPTEE=y
> CONFIG_MUX_MMIO=y
> CONFIG_EXT2_FS=y
> CONFIG_EXT2_FS_XATTR=y
>-- 
>2.14.1
>

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: imx_v6_v7_defconfig: enable OP-TEE
  2018-01-05  9:40 [PATCH] ARM: imx_v6_v7_defconfig: enable OP-TEE Peng Fan
  2018-01-24  1:31 ` Peng Fan
@ 2018-02-02  0:44 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2018-02-02  0:44 UTC (permalink / raw)
  To: Peng Fan
  Cc: fabio.estevam, kernel, linux-arm-kernel, linux-kernel, linux-imx,
	van.freenix

On Fri, Jan 05, 2018 at 05:40:35PM +0800, Peng Fan wrote:
> This patch enables configs for Trusted Execution Environment(TEE) and
> Open Portable Trusted Execution Environment(OP-TEE).
> 
> With Linux running in Trustzone non-secure world, OP-TEE OS runs in
> secure world, linux could use secure services provided by OP-TEE.
> With TEE/OP-TEE options selected, use the bindings
> in Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt
> to let the driver probe work.
> 
> On i.MX6/7, now the bootflow is U-Boot->OP-TEE->Linux, OP-TEE will
> automatically create that node.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-02  0:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-05  9:40 [PATCH] ARM: imx_v6_v7_defconfig: enable OP-TEE Peng Fan
2018-01-24  1:31 ` Peng Fan
2018-02-02  0:44 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).