[PATCH v1] hw_random: npcm: modify readl to readb

2020-09-23 Thread Tomer Maimon
Modify the read size to the correct HW random registers size, 8bit. The incorrect read size caused and faulty HW random value. Signed-off-by: Tomer Maimon --- drivers/char/hw_random/npcm-rng.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/char

[PATCH v3 2/2] hwrng: npcm: add NPCM RNG driver

2019-09-12 Thread Tomer Maimon
Add Nuvoton NPCM BMC Random Number Generator(RNG) driver. Signed-off-by: Tomer Maimon --- drivers/char/hw_random/Kconfig| 13 +++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/npcm-rng.c | 186 ++ 3 files changed, 200 insertions(+) create

[PATCH v3 0/2] hwrng: npcm: add NPCM RNG driver support

2019-09-12 Thread Tomer Maimon
. - Using readl_poll_timeout in rng_read function. - Honor wait parameter in rng_read function. - Using local variable instead of #ifndef. - Remove probe print. Tomer Maimon (2): dt-binding: hwrng: add NPCM RNG documentation hwrng: npcm: add NPCM RNG driver .../bindings/rng/nuvoton,npcm

[PATCH v3 1/2] dt-binding: hwrng: add NPCM RNG documentation

2019-09-12 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Random Number Generator (RNG). Signed-off-by: Tomer Maimon --- .../devicetree/bindings/rng/nuvoton,npcm-rng.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/nuvoton

[PATCH v2 1/2] dt-binding: hwrng: add NPCM RNG documentation

2019-09-09 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Random Number Generator (RNG). Signed-off-by: Tomer Maimon --- .../bindings/rng/nuvoton,npcm-rng.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/nuvoton

[PATCH v2 0/2] hwrng: npcm: add NPCM RNG driver support

2019-09-09 Thread Tomer Maimon
, Milton Miller II : https://patchwork.ozlabs.org/patch/1154598/ Changes since version 1: - Define timout in real-world units. - Using readl_poll_timeout in rng_read function. - Honor wait parameter in rng_read function. - Using local variable instead of #ifndef. - Remove probe print. Tomer

[PATCH v2 2/2] hwrng: npcm: add NPCM RNG driver

2019-09-09 Thread Tomer Maimon
Add Nuvoton NPCM BMC Random Number Generator(RNG) driver. Signed-off-by: Tomer Maimon --- drivers/char/hw_random/Kconfig| 13 ++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/npcm-rng.c | 203 ++ 3 files changed, 217 insertions(+) create

[PATCH v1 0/2] hwrng: npcm: add NPCM RNG driver support

2019-08-28 Thread Tomer Maimon
This patch set adds Randon Number Generator (RNG) support for the Nuvoton NPCM Baseboard Management Controller (BMC). The RNG driver we use power consumption when the RNG is not required. The NPCM RNG driver tested on NPCM750 evaluation board. Tomer Maimon (2): dt-binding: hwrng: add NPCM

[PATCH v1 2/2] hwrng: npcm: add NPCM RNG driver

2019-08-28 Thread Tomer Maimon
Add Nuvoton NPCM BMC Random Number Generator(RNG) driver. Signed-off-by: Tomer Maimon --- drivers/char/hw_random/Kconfig| 13 ++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/npcm-rng.c | 207 ++ 3 files changed, 221 insertions(+) create

[PATCH v1 1/2] dt-binding: hwrng: add NPCM RNG documentation

2019-08-28 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Random Number Generator (RNG). Signed-off-by: Tomer Maimon --- .../bindings/rng/nuvoton,npcm-rng.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/nuvoton

[PATCH v1 2/2] hwrng: npcm: add NPCM RNG driver

2019-07-22 Thread Tomer Maimon
Add Nuvoton NPCM BMC Random Number Generator(RNG) driver. Signed-off-by: Tomer Maimon --- drivers/char/hw_random/Kconfig| 13 ++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/npcm-rng.c | 207 ++ 3 files changed, 221 insertions(+) create

[PATCH v1 1/2] dt-binding: hwrng: add NPCM RNG documentation

2019-07-22 Thread Tomer Maimon
Added device tree binding documentation for Nuvoton BMC NPCM Random Number Generator (RNG). Signed-off-by: Tomer Maimon --- .../bindings/rng/nuvoton,npcm-rng.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/nuvoton

[PATCH v1 0/2] hwrng: npcm: add NPCM RNG driver support

2019-07-22 Thread Tomer Maimon
This patch set adds Randon Number Generator (RNG) support for the Nuvoton NPCM Baseboard Management Controller (BMC). The RNG driver we use power consumption when the RNG is not required. The NPCM RNG driver tested on NPCM750 evaluation board. Tomer Maimon (2): dt-binding: hwrng: add NPCM