summaryrefslogtreecommitdiff
path: root/drivers/ram
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2020-08-05 20:14:26 +0300
committerLokesh Vutla <lokeshvutla@ti.com>2020-08-11 18:04:46 +0300
commit6e802ef540e91642ae7eb8ea39af94db07e2c2c2 (patch)
treedb4dd62423053377e6cb0966ae5ca502976d1eac /drivers/ram
parent2cf09d7bedb07aadd0e5d474f2090a8fdd4896de (diff)
downloadu-boot-6e802ef540e91642ae7eb8ea39af94db07e2c2c2.tar.xz
ram: k3-j721e: Relax version checks for memory controller
k3-j721e ddr driver sanity checks for product id and version number. Version number gets changed for every minor update in the IP. So discard the version check and just sanity check for product id. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'drivers/ram')
-rw-r--r--drivers/ram/k3-j721e/lpddr4.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/ram/k3-j721e/lpddr4.c b/drivers/ram/k3-j721e/lpddr4.c
index 2c3892d8d7..fc80fb1e2c 100644
--- a/drivers/ram/k3-j721e/lpddr4.c
+++ b/drivers/ram/k3-j721e/lpddr4.c
@@ -199,7 +199,6 @@ uint32_t lpddr4_init(lpddr4_privatedata * pd, const lpddr4_config * cfg)
{
uint32_t result = 0U;
uint16_t productid = 0U;
- uint32_t version[2] = { 0, 0 };
result = lpddr4_initsf(pd, cfg);
if (result == (uint32_t) CDN_EOK) {
@@ -209,20 +208,7 @@ uint32_t lpddr4_init(lpddr4_privatedata * pd, const lpddr4_config * cfg)
CPS_REG_READ(&
(ctlregbase->
LPDDR4__CONTROLLER_ID__REG))));
- version[0] =
- (uint32_t) (CPS_FLD_READ
- (LPDDR4__CONTROLLER_VERSION_0__FLD,
- CPS_REG_READ(&
- (ctlregbase->
- LPDDR4__CONTROLLER_VERSION_0__REG))));
- version[1] =
- (uint32_t) (CPS_FLD_READ
- (LPDDR4__CONTROLLER_VERSION_1__FLD,
- CPS_REG_READ(&
- (ctlregbase->
- LPDDR4__CONTROLLER_VERSION_1__REG))));
- if ((productid == PRODUCT_ID) && (version[0] == VERSION_0)
- && (version[1] == VERSION_1)) {
+ if (productid == PRODUCT_ID) {
/* Populating configuration data to pD */
pd->ctlbase = ctlregbase;
pd->infohandler =