Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b9a2810 authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Tony Lindgren
Browse files

ARM: OMAP4+: Move SRAM data to DT



Use drivers/misc/sram.c driver to manage SRAM on all DT only
OMAP platforms (am33xx, am43xx, omap4 and omap5) instead of
the existing private plat-omap/sram.c

Address and size related data  is removed from mach-omap2/sram.c
and now passed to drivers/misc/sram.c from DT.

Users can hence use general purpose allocator apis instead of
OMAP private ones to manage and use SRAM.

Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
Signed-off-by: default avatarDave Gerlach <d-gerlach@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 0616f4ee
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -726,9 +726,8 @@
		};
		};


		ocmcram: ocmcram@40300000 {
		ocmcram: ocmcram@40300000 {
			compatible = "ti,am3352-ocmcram";
			compatible = "mmio-sram";
			reg = <0x40300000 0x10000>;
			reg = <0x40300000 0x10000>; /* 64k */
			ti,hwmods = "ocmcram";
		};
		};


		wkup_m3: wkup_m3@44d00000 {
		wkup_m3: wkup_m3@44d00000 {
+5 −0
Original line number Original line Diff line number Diff line
@@ -885,6 +885,11 @@
				clock-names = "fck";
				clock-names = "fck";
			};
			};
		};
		};

		ocmcram: ocmcram@40300000 {
			compatible = "mmio-sram";
			reg = <0x40300000 0x40000>; /* 256k */
		};
	};
	};
};
};


+5 −0
Original line number Original line Diff line number Diff line
@@ -209,6 +209,11 @@
			};
			};
		};
		};


		ocmcram: ocmcram@40304000 {
			compatible = "mmio-sram";
			reg = <0x40304000 0xa000>; /* 40k */
		};

		sdma: dma-controller@4a056000 {
		sdma: dma-controller@4a056000 {
			compatible = "ti,omap4430-sdma";
			compatible = "ti,omap4430-sdma";
			reg = <0x4a056000 0x1000>;
			reg = <0x4a056000 0x1000>;
+5 −0
Original line number Original line Diff line number Diff line
@@ -220,6 +220,11 @@
			};
			};
		};
		};


		ocmcram: ocmcram@40300000 {
			compatible = "mmio-sram";
			reg = <0x40300000 0x20000>; /* 128k */
		};

		sdma: dma-controller@4a056000 {
		sdma: dma-controller@4a056000 {
			compatible = "ti,omap4430-sdma";
			compatible = "ti,omap4430-sdma";
			reg = <0x4a056000 0x1000>;
			reg = <0x4a056000 0x1000>;
+1 −0
Original line number Original line Diff line number Diff line
@@ -122,6 +122,7 @@ CONFIG_BLK_DEV_RAM_SIZE=16384
CONFIG_SENSORS_TSL2550=m
CONFIG_SENSORS_TSL2550=m
CONFIG_BMP085_I2C=m
CONFIG_BMP085_I2C=m
CONFIG_SENSORS_LIS3_I2C=m
CONFIG_SENSORS_LIS3_I2C=m
CONFIG_SRAM=y
CONFIG_SCSI=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_BLK_DEV_SD=y
CONFIG_SCSI_SCAN_ASYNC=y
CONFIG_SCSI_SCAN_ASYNC=y
Loading