summaryrefslogtreecommitdiffstats
path: root/drivers/marvell/ddr_phy_access.h
blob: 5f9a6689d5faa88f0c447a73ab24d76a0af2d5cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * 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);