mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 12:33:41 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
58 lines
1.1 KiB
C
58 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
|
|
* Copyright (C) 2011 Renesas Solutions Corp.
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/io.h>
|
|
#include <asm/processor.h>
|
|
#include <netdev.h>
|
|
#include <i2c.h>
|
|
|
|
#define MODEMR (0xFFCC0020)
|
|
#define MODEMR_MASK (0x6)
|
|
#define MODEMR_533MHZ (0x2)
|
|
|
|
int checkboard(void)
|
|
{
|
|
u32 r = readl(MODEMR);
|
|
if ((r & MODEMR_MASK) & MODEMR_533MHZ)
|
|
puts("CPU Clock: 533MHz\n");
|
|
else
|
|
puts("CPU Clock: 400MHz\n");
|
|
|
|
puts("BOARD: Renesas Technology Corp. R0P7734C00000RZ\n");
|
|
return 0;
|
|
}
|
|
|
|
#define MSTPSR1 (0xFFC80044)
|
|
#define MSTPCR1 (0xFFC80034)
|
|
#define MSTPSR1_GETHER (1 << 14)
|
|
|
|
int board_init(void)
|
|
{
|
|
#if defined(CONFIG_SH_ETHER)
|
|
u32 r = readl(MSTPSR1);
|
|
if (r & MSTPSR1_GETHER)
|
|
writel((r & ~MSTPSR1_GETHER), MSTPCR1);
|
|
#endif
|
|
|
|
return 0;
|
|
}
|
|
|
|
int board_late_init(void)
|
|
{
|
|
printf("Cannot get MAC address from I2C\n");
|
|
|
|
return 0;
|
|
}
|
|
|
|
#ifdef CONFIG_SMC911X
|
|
int board_eth_init(bd_t *bis)
|
|
{
|
|
int rc = 0;
|
|
rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
|
|
return rc;
|
|
}
|
|
#endif
|