diff mbox series

bus: ti-sysc: AM3: RNG is GP only

Message ID 20210720182716.13269-1-khilman@baylibre.com (mailing list archive)
State New, archived
Headers show
Series bus: ti-sysc: AM3: RNG is GP only | expand

Commit Message

Kevin Hilman July 20, 2021, 6:27 p.m. UTC
Make the RNG on AM3 GP only.

Based on this patch from TI v5.4 tree which is based on hwmod data
which are now removed:

| ARM: AM43xx: hwmod: Move RNG to a GP only links table
|
| On non-GP devices the RNG is controlled by the secure-side software,
| like in DRA7xx hwmod we should not control this IP when we are not
| a GP device.
|
| Signed-off-by: Andrew F. Davis <afd@ti.com>

Signed-off-by: Kevin Hilman <khilman@baylibre.com>
---
If this is merged, it should be flagged for stable v5.10+. 

 drivers/bus/ti-sysc.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tony Lindgren July 27, 2021, 8:05 a.m. UTC | #1
* Kevin Hilman <khilman@baylibre.com> [210720 21:28]:
> Make the RNG on AM3 GP only.
> 
> Based on this patch from TI v5.4 tree which is based on hwmod data
> which are now removed:
> 
> | ARM: AM43xx: hwmod: Move RNG to a GP only links table
> |
> | On non-GP devices the RNG is controlled by the secure-side software,
> | like in DRA7xx hwmod we should not control this IP when we are not
> | a GP device.
> |
> | Signed-off-by: Andrew F. Davis <afd@ti.com>
> 
> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
> ---
> If this is merged, it should be flagged for stable v5.10+. 

Applying into fixes with a stable tag thanks.

Tony
diff mbox series

Patch

diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 38cb116ed433..2587ed43ee8a 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -2951,6 +2951,8 @@  static int sysc_init_soc(struct sysc *ddata)
 		case SOC_3430 ... SOC_3630:
 			sysc_add_disabled(0x48304000);	/* timer12 */
 			break;
+		case SOC_AM3:
+			sysc_add_disabled(0x48310000);  /* rng */
 		default:
 			break;
 		}