ARM: uniphier: de-couple SG macros into base address and offset
The SG_* macros represent the address of SoC-glue registers. For a planned new SoC, its base address will be changed. Turn the SG_* macros into the offset from the base address. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
@@ -20,7 +20,7 @@ unsigned int uniphier_pro4_debug_uart_init(void)
|
||||
sg_set_iectrl(0);
|
||||
sg_set_pinsel(128, 0, 4, 8); /* TXD0 -> TXD0 */
|
||||
|
||||
writel(1, SG_LOADPINCTRL);
|
||||
writel(1, sg_base + SG_LOADPINCTRL);
|
||||
|
||||
tmp = readl(SC_CLKCTRL);
|
||||
tmp |= SC_CLKCTRL_CEN_PERI;
|
||||
|
||||
Reference in New Issue
Block a user