mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v1] ARM: i.MX: esdctl: Add support for i.MX6SoloX's memory controller
@ 2018-06-13  7:50 Oleksij Rempel
  2018-06-13  7:51 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Oleksij Rempel @ 2018-06-13  7:50 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

Add code needed to dynamically detect the offset and amount of RAM.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/arm/mach-imx/esdctl.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/mach-imx/esdctl.c b/arch/arm/mach-imx/esdctl.c
index c1680d5ff..875e942de 100644
--- a/arch/arm/mach-imx/esdctl.c
+++ b/arch/arm/mach-imx/esdctl.c
@@ -390,6 +390,11 @@ static __maybe_unused struct imx_esdctl_data imx6q_data = {
 	.add_mem = imx6_mmdc_add_mem,
 };
 
+static __maybe_unused struct imx_esdctl_data imx6sx_data = {
+	.base0 = MX6_MMDC_PORT0_BASE_ADDR,
+	.add_mem = imx6_mmdc_add_mem,
+};
+
 static __maybe_unused struct imx_esdctl_data imx6ul_data = {
 	.base0 = MX6_MMDC_PORT0_BASE_ADDR,
 	.add_mem = imx6_mmdc_add_mem,
@@ -455,6 +460,9 @@ static __maybe_unused struct of_device_id imx_esdctl_dt_ids[] = {
 	}, {
 		.compatible = "fsl,imx6ul-mmdc",
 		.data = &imx6ul_data
+	}, {
+		.compatible = "fsl,imx6sx-mmdc",
+		.data = &imx6sx_data
 	}, {
 		.compatible = "fsl,imx6q-mmdc",
 		.data = &imx6q_data
-- 
2.17.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] ARM: i.MX: esdctl: Add support for i.MX6SoloX's memory controller
  2018-06-13  7:50 [PATCH v1] ARM: i.MX: esdctl: Add support for i.MX6SoloX's memory controller Oleksij Rempel
@ 2018-06-13  7:51 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2018-06-13  7:51 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: barebox

On Wed, Jun 13, 2018 at 09:50:14AM +0200, Oleksij Rempel wrote:
> Add code needed to dynamically detect the offset and amount of RAM.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  arch/arm/mach-imx/esdctl.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/mach-imx/esdctl.c b/arch/arm/mach-imx/esdctl.c
> index c1680d5ff..875e942de 100644
> --- a/arch/arm/mach-imx/esdctl.c
> +++ b/arch/arm/mach-imx/esdctl.c
> @@ -390,6 +390,11 @@ static __maybe_unused struct imx_esdctl_data imx6q_data = {
>  	.add_mem = imx6_mmdc_add_mem,
>  };
>  
> +static __maybe_unused struct imx_esdctl_data imx6sx_data = {
> +	.base0 = MX6_MMDC_PORT0_BASE_ADDR,
> +	.add_mem = imx6_mmdc_add_mem,
> +};
> +
>  static __maybe_unused struct imx_esdctl_data imx6ul_data = {
>  	.base0 = MX6_MMDC_PORT0_BASE_ADDR,
>  	.add_mem = imx6_mmdc_add_mem,
> @@ -455,6 +460,9 @@ static __maybe_unused struct of_device_id imx_esdctl_dt_ids[] = {
>  	}, {
>  		.compatible = "fsl,imx6ul-mmdc",
>  		.data = &imx6ul_data
> +	}, {
> +		.compatible = "fsl,imx6sx-mmdc",
> +		.data = &imx6sx_data
>  	}, {
>  		.compatible = "fsl,imx6q-mmdc",
>  		.data = &imx6q_data
> -- 
> 2.17.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-13  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-13  7:50 [PATCH v1] ARM: i.MX: esdctl: Add support for i.MX6SoloX's memory controller Oleksij Rempel
2018-06-13  7:51 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox