mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-31 14:28:52 +09:00
![Suneel Garapati](/assets/img/avatar_default.png)
This patch adds support for all OcteonTX 81xx/83xx boards from Marvell. For 81xx boards, use octeontx_81xx_defconfig and for 83xx boards, use octeontx_83xx_defconfig. Signed-off-by: Suneel Garapati <sgarapati@marvell.com>
26 lines
426 B
C
26 lines
426 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (C) 2018 Marvell International Ltd.
|
|
*
|
|
* https://spdx.org/licenses
|
|
*/
|
|
|
|
#include <asm/global_data.h>
|
|
#include <asm/ptrace.h>
|
|
#include <asm/system.h>
|
|
#include <asm/arch/smc.h>
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
ssize_t smc_dram_size(unsigned int node)
|
|
{
|
|
struct pt_regs regs;
|
|
|
|
regs.regs[0] = OCTEONTX_DRAM_SIZE;
|
|
regs.regs[1] = node;
|
|
smc_call(®s);
|
|
|
|
return regs.regs[0];
|
|
}
|
|
|