mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From cbd37bfc8221c1a81d235ddfb1898536a821c650 Mon Sep 17 00:00:00 2001
|
|
From: "mingming.su" <Mingming.Su@mediatek.com>
|
|
Date: Wed, 7 Sep 2022 15:44:46 +0800
|
|
Subject: [PATCH] trng: Add trng support for mt7988
|
|
|
|
Add trng support for mt7988.
|
|
|
|
Signed-off-by: mingming.su <Mingming.Su@mediatek.com>
|
|
---
|
|
drivers/char/hw_random/mtk-rng.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/drivers/char/hw_random/mtk-rng.c b/drivers/char/hw_random/mtk-rng.c
|
|
index 75fca4cef..878170c15 100644
|
|
--- a/drivers/char/hw_random/mtk-rng.c
|
|
+++ b/drivers/char/hw_random/mtk-rng.c
|
|
@@ -231,6 +231,10 @@ static const struct mtk_rng_of_data mt7986_rng_data = {
|
|
.rng_version = 1,
|
|
};
|
|
|
|
+static const struct mtk_rng_of_data mt7988_rng_data = {
|
|
+ .rng_version = 2,
|
|
+};
|
|
+
|
|
static const struct mtk_rng_of_data mt7623_rng_data = {
|
|
.rng_version = 1,
|
|
};
|
|
@@ -238,6 +242,7 @@ static const struct mtk_rng_of_data mt7623_rng_data = {
|
|
static const struct of_device_id mtk_rng_match[] = {
|
|
{ .compatible = "mediatek,mt7981-rng", .data = &mt7981_rng_data },
|
|
{ .compatible = "mediatek,mt7986-rng", .data = &mt7986_rng_data },
|
|
+ { .compatible = "mediatek,mt7988-rng", .data = &mt7988_rng_data },
|
|
{ .compatible = "mediatek,mt7623-rng", .data = &mt7623_rng_data },
|
|
{},
|
|
};
|
|
--
|
|
2.18.0
|
|
|