Skip to content

Csrng enablement for shikra & nord - #66

Open
rehman688 wants to merge 12 commits into
qualcomm-linux:qcom-nextfrom
rehman688:csrng_shikra_nord_clean
Open

rehman688 wants to merge 12 commits into
qualcomm-linux:qcom-nextfrom
rehman688:csrng_shikra_nord_clean

Conversation

@rehman688

Copy link
Copy Markdown

No description provided.

Add CSRNG driver support required by Nord and
Shikra platforms.wq

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Disable CSRNG support on Kodiak platforms that do not
support the CSRNG hardware.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Disable CSRNG support on Lemans platforms that do not
support the CSRNG hardware.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Disable CFG_QCOM_CSRNG by default for Hoya targets.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Enable CSRNG support on Nord platforms.

Update the platform configuration to enable the CSRNG
driver on Nord.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Enable CSRNG support on Shikra platforms.

Update the platform configuration to enable the CSRNG
driver on Shikra.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Avoid redefining QCOM_RNG_REG_BASE in Kodiak and
Lemans target configuration files.

Use the common Hoya definition from arch_config.h and
adjust platform-specific offsets to preserve the same
effective register addresses.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Read DATA_OUT directly after DATA_AVAIL is asserted.

A value of 0x00000000 is a valid random output and should
not be filtered out. Waiting for a non-zero value biases
the output distribution by excluding a valid result.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Remove the CSRNG initialization log message as it is not
required during normal operation.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Force CSRNG enablement on Shikra and define RNG register
configuration in the Hoya target-specific configuration
files instead of a common architecture configuration.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
Use platform-specific CSRNG base addresses and offsets
to avoid redefining common RNG configuration while
preserving the effective register addresses.

Signed-off-by: mrehman <mrehman@qti.qualcomm.com>
@rehman688

Copy link
Copy Markdown
Author

This PR is a duplicate of #50.

@hl5746

hl5746 commented Sep 10, 2026

Copy link
Copy Markdown

Could you add a description please? What does this PR do, in aggregate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants