From 0e1a2c7f156827d1a680b6bfec168a75f38ef848 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 20 Oct 2013 12:16:17 -0600 Subject: SAMA5 demo configuration: TRNG and /dev/random are now enabled --- nuttx/ChangeLog | 3 +++ nuttx/configs/sama5d3x-ek/README.txt | 9 +++++++++ nuttx/configs/sama5d3x-ek/demo/defconfig | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 7454ddc65..56a5aec54 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -5829,3 +5829,6 @@ drvier. Untested on initial check-in (2013-10-19). * arch/arm/src/sama5/sam_trng.c, sam_trng.h, and chip/sam_trng.h: Add a /dev/random driver based on the SAMA5D3 TRNG peripheral (2013-10-20). + * configs/sama5d3x-3k/demo: The TRNG and /dev/random are now enabled + by default in the demo configuration (2013-10-20). + diff --git a/nuttx/configs/sama5d3x-ek/README.txt b/nuttx/configs/sama5d3x-ek/README.txt index 66109e06e..2a6b52208 100644 --- a/nuttx/configs/sama5d3x-ek/README.txt +++ b/nuttx/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/nuttx/configs/sama5d3x-ek/demo/defconfig b/nuttx/configs/sama5d3x-ek/demo/defconfig index 912fe21fe..c034cbce8 100644 --- a/nuttx/configs/sama5d3x-ek/demo/defconfig +++ b/nuttx/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 -- cgit v1.2.3