[Detail]
only add LPDDR5 type
MTK-Commit-Id: 30ba2f54c370f86f20b4d3c5e62d999cc93cbc5a
Change-Id: I11394d19d945aaf73d0b7115f2f0ac5465ab7e66
CR-Id: ALPS05589223
Feature: DRAM
Signed-off-by: Qingping Tan <qingping.tan@mediatek.com>
(cherry picked from commit f552e670e6c92fce48f97a802cb93366adad0d79)
modify dram driver for DDR400.fix f meters calculate
MTK-Commit-Id: 437bf94112fda16d4dd6015cbe95bdee2ff4e386
Change-Id: Ie3ff51da6f36bf1b43a42b1c94b185c7c18fe21c
Signed-off-by: jay dong <jay.dong@mediatek.com>
CR-Id: ALPS05340604
Feature: DRAM
Purpose: Provide a common callback register function for
other users to debug when mpu violation.
MTK-Commit-Id: 1ee51e035ee21c33fa6f5620667280df6c96d696
Change-Id: I52f465d46735e871c596d8d73dfb57b407f2d4b9
Signed-off-by: mtk21827 <joanne.wang@mediatek.com>
CR-Id: ALPS05241110
Feature: External Memory Interface(emi)
Background:
DRAM devices uses rank/bank/row/column addresses to locate data.
EMI has multiple channels connecting to multiple DRAM devices.
When accessing DRAM, the given linear address needed to be translated
into rank/bank/row/column addresses. This translation is done by EMI
according to settings of hardware reigsters: emi_cona/f/h/k (which are
programmed based on the using DRAM device).
For debugging a DRAM issue (such as a DRAM bit-flip issue), the linear
address at which the issue was seen needs to be translated (to address
from DRAM point of view) to idenfiy the EMI channel number and DRAM
rank/bank numbers. This can help narrow down the issue to the exact
hardware component.
This patch adds a new function mtk_emicen_addr2dram() and export it for
translating an input address to addresses from DRAM point of view. For
compatibility, create new properties (hash value, dispatch value, version)
of the emicen device node since hash/dispatch values differ from platform
to platform and there is a new formula of translation for LPDDR5.
MTK-Commit-Id: 48d786cefe23d950e04ab1c535863bda4d9b466d
Change-Id: I7e9a8975fb56ce6e102bff2b1dfe27648d9e1bbe
Signed-off-by: mtk21827 <joanne.wang@mediatek.com>
CR-Id: ALPS05258267
Feature: External Memory Interface(emi)
add LPDDR2 data from the JEDEC spec JESD209-2. The data
includes:
1. Addressing information for LPDDR2 memories of different
densities and types(S2/S4)
2. AC timing data.
This data will useful for memory controller device drivers.
Right now this is used by the TI EMIF SDRAM controller
driver.
Signed-off-by: Aneesh V <aneesh@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Benoit Cousson <b-cousson@ti.com>
[santosh.shilimkar@ti.com: Moved to drivers/memory from drivers/misc]
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>