From 0d16b24591941059a447875726b12c4851e3f744 Mon Sep 17 00:00:00 2001 From: Hanna Hawa Date: Sun, 18 Mar 2018 18:08:51 +0200 Subject: ap806: ble: remove system info feature to pass DRAM parameters to U-Boot The U-boot or UEFI should read the size of DRAM from the controller Change-Id: I2c0b253f33cdc89b622e2b23715007ac0f626d38 Signed-off-by: Hanna Hawa Reviewed-on: http://vgitil04.il.marvell.com:8080/52084 Reviewed-by: Igal Liberman Reviewed-by: Kostya Porotchkin Tested-by: iSoC Platform CI --- plat/marvell/a8k/common/a8k_common.mk | 3 +-- plat/marvell/a8k/common/plat_ble_setup.c | 14 -------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/plat/marvell/a8k/common/a8k_common.mk b/plat/marvell/a8k/common/a8k_common.mk index cb5a10de..df7afff8 100644 --- a/plat/marvell/a8k/common/a8k_common.mk +++ b/plat/marvell/a8k/common/a8k_common.mk @@ -66,8 +66,7 @@ PLAT_BL_COMMON_SOURCES := $(PLAT_COMMON_BASE)/aarch64/a8k_common.c \ BLE_PORTING_SOURCES := $(PLAT_FAMILY_BASE)/$(PLAT)/board/dram_port.c \ $(PLAT_FAMILY_BASE)/$(PLAT)/board/marvell_plat_config.c -BLE_SOURCES := $(MARVELL_COMMON_BASE)/sys_info.c \ - $(PLAT_COMMON_BASE)/plat_ble_setup.c \ +BLE_SOURCES := $(PLAT_COMMON_BASE)/plat_ble_setup.c \ $(MARVELL_DRV_BASE)/mochi/cp110_setup.c \ $(MARVELL_DRV_BASE)/i2c/a8k_i2c.c \ $(PLAT_COMMON_BASE)/plat_pm.c \ diff --git a/plat/marvell/a8k/common/plat_ble_setup.c b/plat/marvell/a8k/common/plat_ble_setup.c index b97b7a61..72c525e7 100644 --- a/plat/marvell/a8k/common/plat_ble_setup.c +++ b/plat/marvell/a8k/common/plat_ble_setup.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include @@ -132,16 +131,6 @@ #define EFUSE_AP_LD0_CLUSTER_DOWN_OFFS 4 -/* Notify bootloader on DRAM setup */ -void pass_dram_sys_info(struct dram_config *cfg) -{ - set_info(DRAM_BUS_WIDTH, cfg->iface[0].bus_width); - set_info(DRAM_CS0_SIZE, cfg->iface[0].size_mbytes); - set_info(DRAM_CS0, 1); - set_info(DRAM_CS1, 0); - set_info(DRAM_CS2, 0); - set_info(DRAM_CS3, 0); -} /****************************************************************************** * The routine allows to save the CCU and IO windows configuration during DRAM * setup and restore them afterwards before exiting the BLE stage. @@ -527,8 +516,5 @@ int ble_plat_setup(int *skip) /* Restore the original CCU configuration before exit from BLE */ ble_plat_mmap_config(MMAP_RESTORE_SAVED); - /* Pass DRAM information to bootloader */ - pass_dram_sys_info((struct dram_config *)plat_get_dram_data()); - return ret; } -- cgit