2 * Copyright (C) 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
3 * Copyright (C) 2011 Renesas Solutions Corp.
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/processor.h>
14 #define MODEMR (0xFFCC0020)
15 #define MODEMR_MASK (0x6)
16 #define MODEMR_533MHZ (0x2)
20 u32 r = readl(MODEMR);
21 if ((r & MODEMR_MASK) & MODEMR_533MHZ)
22 puts("CPU Clock: 533MHz\n");
24 puts("CPU Clock: 400MHz\n");
26 puts("BOARD: Renesas Technology Corp. R0P7734C00000RZ\n");
30 #define MSTPSR1 (0xFFC80044)
31 #define MSTPCR1 (0xFFC80034)
32 #define MSTPSR1_GETHER (1 << 14)
36 #if defined(CONFIG_SH_ETHER)
37 u32 r = readl(MSTPSR1);
38 if (r & MSTPSR1_GETHER)
39 writel((r & ~MSTPSR1_GETHER), MSTPCR1);
45 int board_late_init(void)
47 printf("Cannot get MAC address from I2C\n");
53 int board_eth_init(bd_t *bis)
56 rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);