Skip to content
Snippets Groups Projects
Commit dbe94dd1 authored by Bhupesh Sharma's avatar Bhupesh Sharma Committed by York Sun
Browse files

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: default avatarYork Sun <yorksun@freescale.com>
parent 092da485
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <asm/system.h> #include <asm/system.h>
#include <asm/arch-fsl-lsch3/immap_lsch3.h> #include <asm/arch-fsl-lsch3/immap_lsch3.h>
#include <fsl-mc/fsl_mc.h>
#include <fsl_debug_server.h> #include <fsl_debug_server.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -151,6 +152,10 @@ int debug_server_init(void) ...@@ -151,6 +152,10 @@ int debug_server_init(void)
debug_server_ram_addr = debug_server_ram_addr =
gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size; 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, error = debug_server_parse_firmware_fit_image(&raw_image_addr,
&raw_image_size); &raw_image_size);
if (error != 0) if (error != 0)
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include <fsl-mc/fsl_mc_sys.h> #include <fsl-mc/fsl_mc_sys.h>
#include <fsl-mc/fsl_mc_private.h> #include <fsl-mc/fsl_mc_private.h>
#include <fsl-mc/fsl_dpmng.h> #include <fsl-mc/fsl_dpmng.h>
#include <fsl_debug_server.h>
#include <fsl-mc/fsl_dprc.h> #include <fsl-mc/fsl_dprc.h>
#include <fsl-mc/fsl_dpio.h> #include <fsl-mc/fsl_dpio.h>
#include <fsl-mc/fsl_qbman_portal.h> #include <fsl-mc/fsl_qbman_portal.h>
...@@ -403,13 +402,6 @@ int mc_init(void) ...@@ -403,13 +402,6 @@ int mc_init(void)
gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size; gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size;
} }
#ifdef CONFIG_FSL_DEBUG_SERVER
/*
* FIXME: I don't think this is right. See get_dram_size_to_hide()
*/
mc_ram_addr -= debug_server_get_dram_block_size();
#endif
error = calculate_mc_private_ram_params(mc_ram_addr, error = calculate_mc_private_ram_params(mc_ram_addr,
mc_ram_size, mc_ram_size,
&mc_ram_aligned_base_addr, &mc_ram_aligned_base_addr,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment