mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: board: phytec-som-am335x: RAM timings for phycore-r2 1GB
@ 2016-04-18  6:56 Teresa Remmet
  2016-04-19  6:24 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Teresa Remmet @ 2016-04-18  6:56 UTC (permalink / raw)
  To: barebox

Add new RAM Timings for phyCORE R2 with MT41K512M16HA-125IT
1024MB mounted.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
 arch/arm/boards/phytec-som-am335x/lowlevel.c    |  1 +
 arch/arm/boards/phytec-som-am335x/ram-timings.h | 20 ++++++++++++++++++++
 images/Makefile.am33xx                          |  6 ++++++
 3 files changed, 27 insertions(+)

diff --git a/arch/arm/boards/phytec-som-am335x/lowlevel.c b/arch/arm/boards/phytec-som-am335x/lowlevel.c
index 73e75eb..33e83c5 100644
--- a/arch/arm/boards/phytec-som-am335x/lowlevel.c
+++ b/arch/arm/boards/phytec-som-am335x/lowlevel.c
@@ -125,6 +125,7 @@ PHYTEC_ENTRY_MLO(start_am33xx_phytec_phycore_sram_2x512mb, am335x_phytec_phycore
 PHYTEC_ENTRY_MLO(start_am33xx_phytec_phycore_sram_1024mb, am335x_phytec_phycore_som_mlo, PHYCORE_IM8G16D3FBBG15EI_1024MB);
 PHYTEC_ENTRY_MLO(start_am33xx_phytec_phycore_r2_sram_512mb, am335x_phytec_phycore_som_mlo, PHYCORE_R2_MT41K256M16TW107IT_512MB);
 PHYTEC_ENTRY_MLO(start_am33xx_phytec_phycore_r2_sram_256mb, am335x_phytec_phycore_som_mlo, PHYCORE_R2_MT41K128M16JT_256MB);
+PHYTEC_ENTRY_MLO(start_am33xx_phytec_phycore_r2_sram_1024mb,  am335x_phytec_phycore_som_mlo, PHYCORE_R2_MT41K512M16HA125IT_1024MB);
 PHYTEC_ENTRY(start_am33xx_phytec_phycore_sdram, am335x_phytec_phycore_som);
 PHYTEC_ENTRY(start_am33xx_phytec_phycore_no_spi_sdram, am335x_phytec_phycore_som_no_spi);
 PHYTEC_ENTRY(start_am33xx_phytec_phycore_no_eeprom_sdram, am335x_phytec_phycore_som_no_eeprom);
diff --git a/arch/arm/boards/phytec-som-am335x/ram-timings.h b/arch/arm/boards/phytec-som-am335x/ram-timings.h
index 884874c..9576d26 100644
--- a/arch/arm/boards/phytec-som-am335x/ram-timings.h
+++ b/arch/arm/boards/phytec-som-am335x/ram-timings.h
@@ -32,6 +32,7 @@ enum {
 	PHYCORE_IM8G16D3FBBG15EI_1024MB,
 	PHYCORE_R2_MT41K256M16TW107IT_512MB,
 	PHYCORE_R2_MT41K128M16JT_256MB,
+	PHYCORE_R2_MT41K512M16HA125IT_1024MB,
 
 	PHYCARD_NT5CB128M16BP_256MB,
 };
@@ -232,6 +233,25 @@ struct am335x_sdram_timings physom_timings[] = {
 			.wr_slave_ratio0	= 0x73,
 		},
 	},
+
+	/* 1024MB R2 */
+	[PHYCORE_R2_MT41K512M16HA125IT_1024MB] = {
+		.regs = {
+			.emif_read_latency	= 0x7,
+			.emif_tim1		= 0x0AAAD4DB,
+			.emif_tim2		= 0x268F7FDA,
+			.emif_tim3		= 0x501F88BF,
+			.sdram_config		= 0x61C053B2,
+			.zq_config		= 0x50074BE4,
+			.sdram_ref_ctrl		= 0x00000C30,
+		},
+		.data = {
+			.rd_slave_ratio0	= 0x38,
+			.wr_dqs_slave_ratio0	= 0x4d,
+			.fifo_we_slave_ratio0	= 0x9d,
+			.wr_slave_ratio0	= 0x82,
+		},
+	},
 };
 
 #endif
diff --git a/images/Makefile.am33xx b/images/Makefile.am33xx
index 6c7e81a..8be78ef 100644
--- a/images/Makefile.am33xx
+++ b/images/Makefile.am33xx
@@ -83,6 +83,12 @@ FILE_barebox-am33xx-phytec-phycore-mlo-1024mb.spi.img = start_am33xx_phytec_phyc
 am33xx-mlo-$(CONFIG_MACH_PHYTEC_SOM_AM335X) += barebox-am33xx-phytec-phycore-mlo-1024mb.img
 am33xx-mlospi-$(CONFIG_MACH_PHYTEC_SOM_AM335X) += barebox-am33xx-phytec-phycore-mlo-1024mb.spi.img
 
+pblx-$(CONFIG_MACH_PHYTEC_SOM_AM335X) += start_am33xx_phytec_phycore_r2_sram_1024mb
+FILE_barebox-am33xx-phytec-phycore-r2-mlo-1024mb.img = start_am33xx_phytec_phycore_r2_sram_1024mb.pblx.mlo
+FILE_barebox-am33xx-phytec-phycore-r2-mlo-1024mb.spi.img = start_am33xx_phytec_phycore_r2_sram_1024mb.pblx.mlospi
+am33xx-mlo-$(CONFIG_MACH_PHYTEC_SOM_AM335X) += barebox-am33xx-phytec-phycore-r2-mlo-1024mb.img
+am33xx-mlospi-$(CONFIG_MACH_PHYTEC_SOM_AM335X) += barebox-am33xx-phytec-phycore-r2-mlo-1024mb.spi.img
+
 pblx-$(CONFIG_MACH_PHYTEC_SOM_AM335X) += start_am33xx_phytec_phyflex_sdram
 FILE_barebox-am33xx-phytec-phyflex.img = start_am33xx_phytec_phyflex_sdram.pblx
 am33xx-barebox-$(CONFIG_MACH_PHYTEC_SOM_AM335X) += barebox-am33xx-phytec-phyflex.img
-- 
1.9.1


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

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

* Re: [PATCH] ARM: board: phytec-som-am335x: RAM timings for phycore-r2 1GB
  2016-04-18  6:56 [PATCH] ARM: board: phytec-som-am335x: RAM timings for phycore-r2 1GB Teresa Remmet
@ 2016-04-19  6:24 ` Sascha Hauer
  2016-04-21  8:02   ` Teresa Remmet
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2016-04-19  6:24 UTC (permalink / raw)
  To: Teresa Remmet; +Cc: barebox

Hi Teresa,

On Mon, Apr 18, 2016 at 08:56:51AM +0200, Teresa Remmet wrote:
> Add new RAM Timings for phyCORE R2 with MT41K512M16HA-125IT
> 1024MB mounted.
> 
> Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
> ---
>  arch/arm/boards/phytec-som-am335x/lowlevel.c    |  1 +
>  arch/arm/boards/phytec-som-am335x/ram-timings.h | 20 ++++++++++++++++++++
>  images/Makefile.am33xx                          |  6 ++++++
>  3 files changed, 27 insertions(+)

Applied, thanks. The usual question: Can't the new version be
autodetected using bootstrap pins or similar? ;)

Sascha

-- 
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] 3+ messages in thread

* Re: [PATCH] ARM: board: phytec-som-am335x: RAM timings for phycore-r2 1GB
  2016-04-19  6:24 ` Sascha Hauer
@ 2016-04-21  8:02   ` Teresa Remmet
  0 siblings, 0 replies; 3+ messages in thread
From: Teresa Remmet @ 2016-04-21  8:02 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

Hello Sascha,

Am Dienstag, den 19.04.2016, 08:24 +0200 schrieb Sascha Hauer:
> Hi Teresa,
> 
> On Mon, Apr 18, 2016 at 08:56:51AM +0200, Teresa Remmet wrote:
> > Add new RAM Timings for phyCORE R2 with MT41K512M16HA-125IT
> > 1024MB mounted.
> > 
> > Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
> > ---
> >  arch/arm/boards/phytec-som-am335x/lowlevel.c    |  1 +
> >  arch/arm/boards/phytec-som-am335x/ram-timings.h | 20 ++++++++++++++++++++
> >  images/Makefile.am33xx                          |  6 ++++++
> >  3 files changed, 27 insertions(+)
> 
> Applied, thanks. The usual question: Can't the new version be
> autodetected using bootstrap pins or similar? ;)


the phyCORE-AM335x R2 is a pin compatible replacement of the
phyCORE-AM335x. So we do not have any new pins left for this. But we
will think of ways to improve this anyway. 

Regards,
Teresa



> 
> Sascha
> 



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

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

end of thread, other threads:[~2016-04-21  8:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-18  6:56 [PATCH] ARM: board: phytec-som-am335x: RAM timings for phycore-r2 1GB Teresa Remmet
2016-04-19  6:24 ` Sascha Hauer
2016-04-21  8:02   ` Teresa Remmet

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