aboutsummaryrefslogtreecommitdiff
path: root/drivers/ram/k3-ddrss/lpddr4_am6x.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ram/k3-ddrss/lpddr4_am6x.h')
-rw-r--r--drivers/ram/k3-ddrss/lpddr4_am6x.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/ram/k3-ddrss/lpddr4_am6x.h b/drivers/ram/k3-ddrss/lpddr4_am6x.h
new file mode 100644
index 00000000000..bc707d99056
--- /dev/null
+++ b/drivers/ram/k3-ddrss/lpddr4_am6x.h
@@ -0,0 +1,45 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Cadence DDR Driver
+ *
+ * Copyright (C) 2012-2022 Cadence Design Systems, Inc.
+ * Copyright (C) 2018-2022 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+#ifndef LPDDR4_AM6X_H
+#define LPDDR4_AM6X_H
+
+#ifdef CONFIG_K3_AM64_DDRSS
+#include "lpddr4_am64_ctl_regs_rw_masks.h"
+#elif CONFIG_K3_AM62A_DDRSS
+#include "lpddr4_am62a_ctl_regs_rw_masks.h"
+#endif
+
+#ifdef CONFIG_K3_AM64_DDRSS
+#define DSLICE_NUM (2U)
+#define ASLICE_NUM (2U)
+#define DSLICE0_REG_COUNT (126U)
+#define DSLICE1_REG_COUNT (126U)
+#define ASLICE0_REG_COUNT (42U)
+#define ASLICE1_REG_COUNT (42U)
+#define ASLICE2_REG_COUNT (42U)
+#define PHY_CORE_REG_COUNT (126U)
+
+#elif CONFIG_K3_AM62A_DDRSS
+#define DSLICE_NUM (4U)
+#define ASLICE_NUM (3U)
+#define DSLICE0_REG_COUNT (136U)
+#define DSLICE1_REG_COUNT (136U)
+#define DSLICE2_REG_COUNT (136U)
+#define DSLICE3_REG_COUNT (136U)
+#define ASLICE0_REG_COUNT (48U)
+#define ASLICE1_REG_COUNT (48U)
+#define ASLICE2_REG_COUNT (48U)
+#define PHY_CORE_REG_COUNT (132U)
+
+#endif
+
+#define GRP_SHIFT 1
+#define INT_SHIFT 2
+
+#endif /* LPDDR4_AM6X_H */