diff mbox series

[v3,04/15] dt-bindings: memory: ns3: add memory definitions

Message ID 20200610104120.30668-5-rayagonda.kokatanur@broadcom.com
State Superseded
Headers show
Series add initial support for broadcom NS3 soc | expand

Commit Message

Rayagonda Kokatanur June 10, 2020, 10:41 a.m. UTC
Add NS3 memory definitions.

Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
---
 include/dt-bindings/memory/bcm-ns3-mc.h | 34 +++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 include/dt-bindings/memory/bcm-ns3-mc.h

Comments

Simon Glass June 26, 2020, 1:11 a.m. UTC | #1
Hi Rayagonda,

On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur
<rayagonda.kokatanur at broadcom.com> wrote:
>
> Add NS3 memory definitions.
>
> Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
> ---
>  include/dt-bindings/memory/bcm-ns3-mc.h | 34 +++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)
>  create mode 100644 include/dt-bindings/memory/bcm-ns3-mc.h

Reviewed-by: Simon Glass <sjg at chromium.org>

>
> diff --git a/include/dt-bindings/memory/bcm-ns3-mc.h b/include/dt-bindings/memory/bcm-ns3-mc.h
> new file mode 100644
> index 0000000000..b4f78584a5
> --- /dev/null
> +++ b/include/dt-bindings/memory/bcm-ns3-mc.h
> @@ -0,0 +1,34 @@
> +/* SPDX-License-Identifier: GPL-2.0+ */
> +/*
> + * Copyright (C) 2020 Broadcom
> + */
> +
> +#ifndef DT_BINDINGS_BCM_NS3_MC_H
> +#define DT_BINDINGS_BCM_NS3_MC_H
> +
> +/*
> + * Reserved Memory Map : SHMEM & TZDRAM.
> + * +--------+----------+ 0x8D000000
> + * | SHMEM (NS)         | 16 MB
> + * +-------------------+ 0x8E000000
> + * |        | TEE_RAM(S)| 4MB
> + * + TZDRAM +----------+ 0x8E400000
> + * |        | TA_RAM(S) | 12MB
> + * +--------+----------+ 0x8F000000
> + * | BL31 + TMON + LPM  |
> + * | memory             | 1MB
> + * +-------------------+ 0x8F100000
> + */
> +
> +#define BCM_NS3_MEM_SHARE_START    0x8D000000
> +#define BCM_NS3_MEM_SHARE_LEN      0x020FFFFF

Suggest lower-case hex throughout.


> +
> +/* ATF/U-boot/Linux error logs */
> +#define BCM_NS3_MEM_ELOG_START     0x8F113000
> +#define BCM_NS3_MEM_ELOG_LEN       0x00100000
> +
> +/* CRMU Page table memroy */
> +#define BCM_NS3_MEM_CRMU_PT_START  0x880000000
> +#define BCM_NS3_MEM_CRMU_PT_LEN    0x200000
> +
> +#endif
> --
> 2.17.1
>
diff mbox series

Patch

diff --git a/include/dt-bindings/memory/bcm-ns3-mc.h b/include/dt-bindings/memory/bcm-ns3-mc.h
new file mode 100644
index 0000000000..b4f78584a5
--- /dev/null
+++ b/include/dt-bindings/memory/bcm-ns3-mc.h
@@ -0,0 +1,34 @@ 
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2020 Broadcom
+ */
+
+#ifndef DT_BINDINGS_BCM_NS3_MC_H
+#define DT_BINDINGS_BCM_NS3_MC_H
+
+/*
+ * Reserved Memory Map : SHMEM & TZDRAM.
+ * +--------+----------+ 0x8D000000
+ * | SHMEM (NS)         | 16 MB
+ * +-------------------+ 0x8E000000
+ * |        | TEE_RAM(S)| 4MB
+ * + TZDRAM +----------+ 0x8E400000
+ * |        | TA_RAM(S) | 12MB
+ * +--------+----------+ 0x8F000000
+ * | BL31 + TMON + LPM  |
+ * | memory             | 1MB
+ * +-------------------+ 0x8F100000
+ */
+
+#define BCM_NS3_MEM_SHARE_START    0x8D000000
+#define BCM_NS3_MEM_SHARE_LEN      0x020FFFFF
+
+/* ATF/U-boot/Linux error logs */
+#define BCM_NS3_MEM_ELOG_START     0x8F113000
+#define BCM_NS3_MEM_ELOG_LEN       0x00100000
+
+/* CRMU Page table memroy */
+#define BCM_NS3_MEM_CRMU_PT_START  0x880000000
+#define BCM_NS3_MEM_CRMU_PT_LEN    0x200000
+
+#endif