mirror of
https://xff.cz/git/u-boot/
synced 2025-10-20 01:14:39 +02:00
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:
@@ -23,7 +23,7 @@ unsigned int uniphier_pro5_debug_uart_init(void)
|
||||
sg_set_pinsel(51, 0, 4, 8); /* TXD2 -> TXD2 */
|
||||
sg_set_pinsel(53, 0, 4, 8); /* TXD3 -> TXD3 */
|
||||
|
||||
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