8 Commits

Author SHA1 Message Date
Chao Peng
53573c29e9 [ALPS05496586] DRAM: update datarate freq formula
[Detail]
update formula

MTK-Commit-Id: b9f88b15cd92250f44d42be59a3a3726ebf4529c

Change-Id: Ibe18a1566e0a11d00fada935e8b7c40f36177b5f
CR-Id: ALPS05496586
Feature: DRAM
Signed-off-by: Chao Peng <chao.peng@mediatek.com>
(cherry picked from commit 72f3f07753479bfb29529ca7208ff5e050a51f76)
2021-03-18 23:40:46 +08:00
Chao Peng
751e2bc3d2 [ALPS05589223] DRAM: add LPDDR5 type
[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)
2021-03-05 11:20:11 +08:00
mtk21827
6f59f7af52 [ALPS05299821] memory: config emimpu sysfs(eng)
Only allow eng load built in emimpu sysfs.

MTK-Commit-Id: 1036e8fcf82cb2dec8f73c451e746133e4bb26f4

Change-Id: I37e409faee83bf480e9b6d15be46d18737d81611
Signed-off-by: mtk21827 <joanne.wang@mediatek.com>
CR-Id: ALPS05299821
Feature: External Memory Interface(emi)
2021-01-29 02:23:32 +08:00
mtk20497
d718cc96c8 [ALPS05340604] DRAM:modify dram driver for DDR400.fix f meters calculate
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
2021-01-29 02:22:27 +08:00
mtk21827
91221190f5 [ALPS05241110] memory: add mpu callback list
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)
2021-01-29 02:20:10 +08:00
mtk21827
52f0e24ba6 [ALPS05258267] memory: mediatek: add mtk_emicen_addr2dram
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)
2021-01-29 02:19:42 +08:00
Juju Sung
c9352decc1 [ALPS05014853] ipi: add IPI signal headers
[Detail]
1.add mt6885 related feature header
2.add emi.h to support for sspm_ipi

MTK-Commit-Id: 589c8680e4a74bfde9bf89bfad8b000e3313ca25

Change-Id: I64a2bd68adcb64757c9518a6df69fec93562d7fb
Signed-off-by: Juju Sung <juju.sung@mediatek.com>
CR-Id: ALPS05014853
Feature: [Module]Kernel Maintenance
2021-01-29 01:03:18 +08:00
Aneesh V
9c1c21a053 ddr: add LPDDR2 data from JESD209-2
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>
2012-05-02 00:04:06 -07:00