mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 07:57:21 +00:00
739ba41d5a
The SC_* macros represent the address of SysCtrl registers. For a planned new SoC, its base address will be changed. Turn the SC_* macros into the offset from the base address. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
41 lines
971 B
C
41 lines
971 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* UniPhier SC (System Control) block registers for ARMv8 SoCs
|
|
*
|
|
* Copyright (C) 2016 Socionext Inc.
|
|
* Author: Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*/
|
|
|
|
#ifndef SC64_REGS_H
|
|
#define SC64_REGS_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#include <linux/compiler.h>
|
|
#define sc_base ((void __iomem *)SC_BASE)
|
|
#endif
|
|
|
|
#define SC_BASE 0x61840000
|
|
|
|
#define SC_RSTCTRL 0x2000
|
|
#define SC_RSTCTRL3 0x2008
|
|
#define SC_RSTCTRL4 0x200c
|
|
#define SC_RSTCTRL5 0x2010
|
|
#define SC_RSTCTRL6 0x2014
|
|
#define SC_RSTCTRL7 0x2018
|
|
|
|
#define SC_CLKCTRL 0x2100
|
|
#define SC_CLKCTRL3 0x2108
|
|
#define SC_CLKCTRL4 0x210c
|
|
#define SC_CLKCTRL5 0x2110
|
|
#define SC_CLKCTRL6 0x2114
|
|
#define SC_CLKCTRL7 0x2118
|
|
|
|
#define SC_CA72_GEARST 0x8000
|
|
#define SC_CA72_GEARSET 0x8004
|
|
#define SC_CA72_GEARUPD 0x8008
|
|
#define SC_CA53_GEARST 0x8080
|
|
#define SC_CA53_GEARSET 0x8084
|
|
#define SC_CA53_GEARUPD 0x8088
|
|
#define SC_CA_GEARUPD (1 << 0)
|
|
|
|
#endif /* SC64_REGS_H */
|