mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00

Added smc calls support to access ddr phy registers. Change-Id: Ibaa0a8e20b6398ab394c7e2e9ea61f9a28cdb870 Signed-off-by: Alex Leibovich <alexl@marvell.com> Reviewed-on: https://sj1git1.cavium.com/20791 Tested-by: Kostya Porotchkin <kostap@marvell.com> Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
15 lines
401 B
C
15 lines
401 B
C
/*
|
|
* Copyright (C) 2021 Marvell International Ltd.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
* https://spdx.org/licenses
|
|
*/
|
|
|
|
#include <plat_marvell.h>
|
|
|
|
#define DEVICE_BASE 0xF0000000
|
|
#define DDR_PHY_OFFSET 0x1000000
|
|
#define DDR_PHY_BASE_ADDR (DEVICE_BASE + DDR_PHY_OFFSET)
|
|
|
|
int mvebu_ddr_phy_write(uintptr_t offset, uint16_t data);
|
|
int mvebu_ddr_phy_read(uintptr_t offset, uint16_t *read);
|