diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-04-10 16:53:21 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-12 09:37:52 +0200 |
commit | 6b031a391e781ff0904bed2b0525a221e6cf7cb1 (patch) | |
tree | 3a7189e6cadfa6c6ec8dac76e470c3795db6e4a4 /arch/arm/dts/vf610-ddrmc.dtsi | |
parent | 20ddfbdada2d45b3e3da31e498dbfb07b39e4aee (diff) | |
download | barebox-6b031a391e781ff0904bed2b0525a221e6cf7cb1.tar.gz barebox-6b031a391e781ff0904bed2b0525a221e6cf7cb1.tar.xz |
ARM: i.MX: esdctl: Add support for Vybrid's memory controller
Add code needed to dynamically detect the amount of RAM DDR controller
is configured to use as well as a simple entry function making use of
that functionality.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/dts/vf610-ddrmc.dtsi')
-rw-r--r-- | arch/arm/dts/vf610-ddrmc.dtsi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/dts/vf610-ddrmc.dtsi b/arch/arm/dts/vf610-ddrmc.dtsi new file mode 100644 index 0000000000..772131ec28 --- /dev/null +++ b/arch/arm/dts/vf610-ddrmc.dtsi @@ -0,0 +1,15 @@ +/* + * Include file to switch board DTS form using hardcoded memory node + * to dynamic memory size detection based on DDR controller settings + */ + +/ { + /delete-node/ memory; +}; + +&aips1 { + ddrmc@400ae000 { + compatible = "fsl,vf610-ddrmc"; + reg = <0x400ae000 0x1000>; + }; +}; |