summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorBhupesh Sharma <bhupesh.sharma at freescale.com>2015-05-28 14:54:12 +0530
committerYork Sun <yorksun@freescale.com>2015-07-20 11:44:35 -0700
commitdbe94dd11c241e4aa5cd3b04330dfa0d0f634d15 (patch)
tree8b10586e86a4bf5600238cc085ba221b9c8072d3 /drivers/misc
parent092da485c7e685745b6e6f9ab5540fb002046201 (diff)
downloadu-boot-imx-dbe94dd11c241e4aa5cd3b04330dfa0d0f634d15.zip
u-boot-imx-dbe94dd11c241e4aa5cd3b04330dfa0d0f634d15.tar.gz
u-boot-imx-dbe94dd11c241e4aa5cd3b04330dfa0d0f634d15.tar.bz2
driver/fsl_debug_server: Fix the DDR hide logic for LS2085a
This patch fixes the DDR hide logic for LS2085a, correcting the way the Debug Server FW and MC FW images are placed on the top of system DDR and how the rest of the system DDR space is made visibile to Linux. Signed-off-by: Bhupesh Sharma <bhupesh.sharma at freescale.com> Signed-off-by: Prabhakar Kushwaha <prabhakar at freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/fsl_debug_server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/misc/fsl_debug_server.c b/drivers/misc/fsl_debug_server.c
index e080fe6..44cd9b9 100644
--- a/drivers/misc/fsl_debug_server.c
+++ b/drivers/misc/fsl_debug_server.c
@@ -10,6 +10,7 @@
#include <asm/system.h>
#include <asm/arch-fsl-lsch3/immap_lsch3.h>
+#include <fsl-mc/fsl_mc.h>
#include <fsl_debug_server.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -151,6 +152,10 @@ int debug_server_init(void)
debug_server_ram_addr =
gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size;
+#ifdef CONFIG_FSL_MC_ENET
+ debug_server_ram_addr += mc_get_dram_block_size();
+#endif
+
error = debug_server_parse_firmware_fit_image(&raw_image_addr,
&raw_image_size);
if (error != 0)