diff options
author | Saurabh Gorecha <sgorecha@codeaurora.org> | 2020-07-09 02:20:08 +0530 |
---|---|---|
committer | joanna.farley <joanna.farley@arm.com> | 2020-08-13 17:13:49 +0000 |
commit | 905f93c7700828986444287ccb4dfa538d1b3d2b (patch) | |
tree | 8ffdbf5f1dfe30d9e5038c29e726732d566a9691 /plat/qti/sc7180 | |
parent | acca14b6b2c98457e89b1e839155be07ccabe591 (diff) | |
download | arm-trusted-firmware-905f93c7700828986444287ccb4dfa538d1b3d2b.tar.gz |
qti: Add RNG driver
This patch adds RNG driver and use it to generate random number for stack
protection.
Change-Id: I73d79e68d08b5aa902dc7fad48e17a03f996178d
Signed-off-by: Saurabh Gorecha <sgorecha@codeaurora.org>
Diffstat (limited to 'plat/qti/sc7180')
-rw-r--r-- | plat/qti/sc7180/inc/qti_rng_io.h | 15 | ||||
-rw-r--r-- | plat/qti/sc7180/platform.mk | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/plat/qti/sc7180/inc/qti_rng_io.h b/plat/qti/sc7180/inc/qti_rng_io.h new file mode 100644 index 000000000..f50234f2b --- /dev/null +++ b/plat/qti/sc7180/inc/qti_rng_io.h @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ +#ifndef QTI_RNG_IO_H +#define QTI_RNG_IO_H + +#define SEC_PRNG_STATUS 0x00791004 +#define SEC_PRNG_STATUS_DATA_AVAIL_BMSK 0x1 +#define SEC_PRNG_DATA_OUT 0x00791000 + + +#endif /* QTI_RNG_IO_H */ + diff --git a/plat/qti/sc7180/platform.mk b/plat/qti/sc7180/platform.mk index 45e6b3347..e55135567 100644 --- a/plat/qti/sc7180/platform.mk +++ b/plat/qti/sc7180/platform.mk @@ -59,6 +59,7 @@ QTI_BL31_SOURCES := $(QTI_PLAT_PATH)/common/src/$(ARCH)/qti_helpers.S \ $(QTI_PLAT_PATH)/common/src/qti_syscall.c \ $(QTI_PLAT_PATH)/common/src/qti_topology.c \ $(QTI_PLAT_PATH)/common/src/qti_pm.c \ + $(QTI_PLAT_PATH)/common/src/qti_rng.c \ $(QTI_PLAT_PATH)/qtiseclib/src/qtiseclib_cb_interface.c \ |