d1: add new target
[openwrt/staging/mans0n.git] / target / linux / d1 / patches-6.1 / 0052-iommu-sun50i-Add-support-for-the-D1-variant.patch
1 From 5fdd5231c56d58f16a6cefa2bed4b8f331da2c92 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Wed, 27 Apr 2022 19:20:58 -0500
4 Subject: [PATCH 052/117] iommu/sun50i: Add support for the D1 variant
5
6 D1 contains an IOMMU similar to the one in the H6 SoC, but the D1
7 variant has no external reset signal. It also has some register
8 definition changes, but none that affect the current driver.
9
10 Signed-off-by: Samuel Holland <samuel@sholland.org>
11 ---
12 drivers/iommu/sun50i-iommu.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 --- a/drivers/iommu/sun50i-iommu.c
16 +++ b/drivers/iommu/sun50i-iommu.c
17 @@ -1071,11 +1071,15 @@ err_free_cache:
18 return ret;
19 }
20
21 +static const struct sun50i_iommu_variant sun20i_d1_iommu = {
22 +};
23 +
24 static const struct sun50i_iommu_variant sun50i_h6_iommu = {
25 .has_reset = true,
26 };
27
28 static const struct of_device_id sun50i_iommu_dt[] = {
29 + { .compatible = "allwinner,sun20i-d1-iommu", .data = &sun20i_d1_iommu },
30 { .compatible = "allwinner,sun50i-h6-iommu", .data = &sun50i_h6_iommu },
31 { /* sentinel */ },
32 };