summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanna Hawa <hannah@marvell.com>2018-03-18 18:08:51 +0200
committerHanna Hawa <hannah@marvell.com>2018-03-18 22:21:39 +0200
commit0d16b24591941059a447875726b12c4851e3f744 (patch)
treea017f9bbb6ae75f2cfcea3d39da9ad417b60c539
parent7b17de462a02f9705b9f2fda6599f7ef3572c8ec (diff)
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 <hannah@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/52084 Reviewed-by: Igal Liberman <igall@marvell.com> Reviewed-by: Kostya Porotchkin <kostap@marvell.com> Tested-by: iSoC Platform CI <ykjenk@marvell.com>
-rw-r--r--plat/marvell/a8k/common/a8k_common.mk3
-rw-r--r--plat/marvell/a8k/common/plat_ble_setup.c14
2 files changed, 1 insertions, 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 <plat_config.h>
#include <plat_def.h>
#include <debug.h>
-#include <sys_info.h>
#include <mv_ddr_if.h>
#include <ccu.h>
#include <io_win.h>
@@ -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;
}