From d001b133eb2ba8edbc88577e9950c4987f57bc3d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 20 Oct 2013 12:16:17 -0600 Subject: [PATCH] SAMA5 demo configuration: TRNG and /dev/random are now enabled --- configs/sama5d3x-ek/README.txt | 9 +++++++++ configs/sama5d3x-ek/demo/defconfig | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configs/sama5d3x-ek/README.txt b/configs/sama5d3x-ek/README.txt index 66109e06ed..2a6b522087 100644 --- a/configs/sama5d3x-ek/README.txt +++ b/configs/sama5d3x-ek/README.txt @@ -1290,6 +1290,15 @@ Configurations nsh> cat /dev/kbda + 10. Support SAMA5D3 TRNG peripheral is enabled so that it provides + /dev/random. The following configuration settings are relevant: + + System Type: + CONFIG_SAMA5_TRNG=y : Enable the TRNG peripheral + + Drivers (automatically selected): + CONFIG_DEV_RANDOM=y : Enable /dev/random + The following features are *not* enabled in the demo configuration but might be of some use to you: diff --git a/configs/sama5d3x-ek/demo/defconfig b/configs/sama5d3x-ek/demo/defconfig index 912fe21fe2..c034cbce88 100644 --- a/configs/sama5d3x-ek/demo/defconfig +++ b/configs/sama5d3x-ek/demo/defconfig @@ -170,7 +170,7 @@ CONFIG_SAMA5_UDPHS=y # CONFIG_SAMA5_SHA is not set # CONFIG_SAMA5_AES is not set # CONFIG_SAMA5_TDES is not set -# CONFIG_SAMA5_TRNG is not set +CONFIG_SAMA5_TRNG=y # CONFIG_SAMA5_ARM is not set # CONFIG_SAMA5_FUSE is not set CONFIG_SAMA5_MPDDRC=y @@ -385,6 +385,7 @@ CONFIG_PTHREAD_STACK_DEFAULT=2048 CONFIG_DISABLE_POLL=y CONFIG_DEV_NULL=y # CONFIG_DEV_ZERO is not set +CONFIG_DEV_RANDOM=y # CONFIG_LOOP is not set # CONFIG_RAMDISK is not set # CONFIG_CAN is not set @@ -685,6 +686,7 @@ CONFIG_EXAMPLES_NSH_CXXINITIALIZE=y # CONFIG_EXAMPLES_PIPE is not set # CONFIG_EXAMPLES_POSIXSPAWN is not set # CONFIG_EXAMPLES_QENCODER is not set +# CONFIG_EXAMPLES_RANDOM is not set # CONFIG_EXAMPLES_RGMP is not set # CONFIG_EXAMPLES_ROMFS is not set # CONFIG_EXAMPLES_SENDMAIL is not set