mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +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>
67 lines
1.7 KiB
C
67 lines
1.7 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
|
|
* Author: Andy Yan <andy.yan@rock-chips.com>
|
|
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <syscon.h>
|
|
#include <asm/arch/clock.h>
|
|
|
|
static const struct udevice_id rk3368_syscon_ids[] = {
|
|
{ .compatible = "rockchip,rk3368-grf",
|
|
.data = ROCKCHIP_SYSCON_GRF },
|
|
{ .compatible = "rockchip,rk3368-pmugrf",
|
|
.data = ROCKCHIP_SYSCON_PMUGRF },
|
|
{ .compatible = "rockchip,rk3368-msch",
|
|
.data = ROCKCHIP_SYSCON_MSCH },
|
|
{ .compatible = "rockchip,rk3368-sgrf",
|
|
.data = ROCKCHIP_SYSCON_SGRF },
|
|
{ }
|
|
};
|
|
|
|
U_BOOT_DRIVER(syscon_rk3368) = {
|
|
.name = "rk3368_syscon",
|
|
.id = UCLASS_SYSCON,
|
|
.of_match = rk3368_syscon_ids,
|
|
};
|
|
|
|
#if CONFIG_IS_ENABLED(OF_PLATDATA)
|
|
static int rk3368_syscon_bind_of_platdata(struct udevice *dev)
|
|
{
|
|
dev->driver_data = dev->driver->of_match->data;
|
|
debug("syscon: %s %d\n", dev->name, (uint)dev->driver_data);
|
|
|
|
return 0;
|
|
}
|
|
|
|
U_BOOT_DRIVER(rockchip_rk3368_grf) = {
|
|
.name = "rockchip_rk3368_grf",
|
|
.id = UCLASS_SYSCON,
|
|
.of_match = rk3368_syscon_ids,
|
|
.bind = rk3368_syscon_bind_of_platdata,
|
|
};
|
|
|
|
U_BOOT_DRIVER(rockchip_rk3368_pmugrf) = {
|
|
.name = "rockchip_rk3368_pmugrf",
|
|
.id = UCLASS_SYSCON,
|
|
.of_match = rk3368_syscon_ids + 1,
|
|
.bind = rk3368_syscon_bind_of_platdata,
|
|
};
|
|
|
|
U_BOOT_DRIVER(rockchip_rk3368_msch) = {
|
|
.name = "rockchip_rk3368_msch",
|
|
.id = UCLASS_SYSCON,
|
|
.of_match = rk3368_syscon_ids + 2,
|
|
.bind = rk3368_syscon_bind_of_platdata,
|
|
};
|
|
|
|
U_BOOT_DRIVER(rockchip_rk3368_sgrf) = {
|
|
.name = "rockchip_rk3368_sgrf",
|
|
.id = UCLASS_SYSCON,
|
|
.of_match = rk3368_syscon_ids + 3,
|
|
.bind = rk3368_syscon_bind_of_platdata,
|
|
};
|
|
#endif
|