From 3a38d84a88f84fd15dae1eff636bd88722e49c8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Fri, 6 Dec 2013 09:50:19 +0100 Subject: [PATCH] karo: tx51: reduce DDR clock to 166 MHz for TX51-8xx1 --- board/karo/tx51/tx51.c | 9 +++++---- boards.cfg | 5 ++--- doc/README.KARO-TX51 | 17 +++++++++++------ include/configs/tx51.h | 3 +++ 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/board/karo/tx51/tx51.c b/board/karo/tx51/tx51.c index 11ec4f6291..30296710fb 100644 --- a/board/karo/tx51/tx51.c +++ b/board/karo/tx51/tx51.c @@ -1054,10 +1054,11 @@ exit: int checkboard(void) { tx51_print_cpuinfo(); - - printf("Board: Ka-Ro TX51-%sxx%s\n", - TX51_MOD_PREFIX, TX51_MOD_SUFFIX); - +#if CONFIG_NR_DRAM_BANKS > 1 + printf("Board: Ka-Ro TX51-8xx1 | TX51-8xx2\n"); +#else + printf("Board: Ka-Ro TX51-8xx0\n"); +#endif return 0; } diff --git a/boards.cfg b/boards.cfg index 5a5c0e1eb8..8a1a7fc8d0 100644 --- a/boards.cfg +++ b/boards.cfg @@ -270,9 +270,8 @@ mx53smd arm armv7 mx53smd freesca ima3-mx53 arm armv7 ima3-mx53 esg mx5 ima3-mx53:IMX_CONFIG=board/esg/ima3-mx53/imximage.cfg vision2 arm armv7 vision2 ttcontrol mx5 vision2:IMX_CONFIG=board/ttcontrol/vision2/imximage_hynix.cfg cgtqmx6qeval arm armv7 cgtqmx6eval congatec mx6 cgtqmx6eval:IMX_CONFIG=board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg,MX6Q -tx51-8xx0 arm armv7 tx51 karo mx5 tx51:SYS_CPU_CLK=800,NR_DRAM_BANKS=1,SYS_SDRAM_CLK=166 -tx51-8xx1 arm armv7 tx51 karo mx5 tx51:SYS_CPU_CLK=800,NR_DRAM_BANKS=2,SYS_SDRAM_CLK=200 -tx51-8xx2 arm armv7 tx51 karo mx5 tx51:SYS_CPU_CLK=800,NR_DRAM_BANKS=2,SYS_SDRAM_CLK=166 +tx51-8xx0 arm armv7 tx51 karo mx5 tx51:SYS_CPU_CLK=800,NR_DRAM_BANKS=1 +tx51-8xx1_2 arm armv7 tx51 karo mx5 tx51:SYS_CPU_CLK=800,NR_DRAM_BANKS=2 tx53-xx30 arm armv7 tx53 karo mx5 tx53:NR_DRAM_BANKS=1 tx53-xx31 arm armv7 tx53 karo mx5 tx53:NR_DRAM_BANKS=2 tx6u-8x10 arm armv7 tx6 karo mx6 tx6:MX6DL diff --git a/doc/README.KARO-TX51 b/doc/README.KARO-TX51 index efb2236ae7..078e8362ef 100644 --- a/doc/README.KARO-TX51 +++ b/doc/README.KARO-TX51 @@ -4,12 +4,17 @@ Building U-Boot --------------- -Note: There are currently six variants of the TX51 module, that +Note: There are currently three variants of the TX51 module, that require slightly different U-Boot configurations. They are - distinguished through the first and last digit of the module - name suffix. Replace the '?' in the following description with - the corresponding numbers from your TX51 module. - E.g. TX51-8021 => 'make tx51-8xx1_config' + distinguished through the last digit of the module name + suffix. The following table lists the module names and the + corresponding U-Boot configuration name: + + Module Name U-Boot config + --------------------------------------- + TX51-8xx0 tx51-8xx0_config + TX51-8xx1 tx51-8xx1_2_config + TX51-8xx2 tx51-8xx1_2_config Unpacking the source -------------------- @@ -25,7 +30,7 @@ Compiling U-Boot ---------------- export ARCH=arm export CROSS_COMPILE=arm-cortexa8-linux-gnueabi- -make tx51-?xx?_config (see above Note!) +make tx51-8xx?_config (see above Note!) make diff --git a/include/configs/tx51.h b/include/configs/tx51.h index 2aabb1426f..6506f142aa 100644 --- a/include/configs/tx51.h +++ b/include/configs/tx51.h @@ -51,6 +51,9 @@ /* * Memory configurations */ +#ifndef CONFIG_SYS_SDRAM_CLK +#define CONFIG_SYS_SDRAM_CLK 166 +#endif #define PHYS_SDRAM_1 0x90000000 /* Base address of bank 1 */ #define PHYS_SDRAM_1_SIZE SZ_128M #if CONFIG_NR_DRAM_BANKS > 1 -- 2.39.5