mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-14 19:26:58 +02:00
As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
33 lines
844 B
C
33 lines
844 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* (C) Copyright 2024 - Analog Devices, Inc.
|
|
*
|
|
* Written and/or maintained by Timesys Corporation
|
|
*
|
|
* Contact: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
|
|
* Contact: Greg Malysa <greg.malysa@timesys.com>
|
|
*/
|
|
|
|
#include <asm/io.h>
|
|
#include <asm/arch-adi/sc5xx/sc5xx.h>
|
|
#include <asm/arch-adi/sc5xx/spl.h>
|
|
|
|
#define REG_SPU0_SECUREC0 0x3108C980
|
|
#define REG_PADS0_PCFG0 0x31004404
|
|
#define REG_SPU0_SECUREP_START 0x3108CA00
|
|
#define REG_SPU0_SECUREP_END 0x3108CCF0
|
|
|
|
adi_rom_boot_fn adi_rom_boot = (adi_rom_boot_fn)0x000000e1;
|
|
|
|
void sc5xx_enable_rgmii(void)
|
|
{
|
|
writel((readl(REG_PADS0_PCFG0) | 0xc), REG_PADS0_PCFG0);
|
|
}
|
|
|
|
void sc5xx_soc_init(void)
|
|
{
|
|
sc5xx_enable_ns_sharc_access(REG_SPU0_SECUREC0);
|
|
sc5xx_disable_spu0(REG_SPU0_SECUREP_START, REG_SPU0_SECUREP_END);
|
|
sc5xx_enable_pmu();
|
|
}
|