mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 17:28:15 +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>
37 lines
940 B
C
37 lines
940 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2007-2011
|
|
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
|
|
* Tom Cubie <tangliang@allwinnertech.com>
|
|
*/
|
|
|
|
#ifndef _SUNXI_CLOCK_H
|
|
#define _SUNXI_CLOCK_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define CLK_GATE_OPEN 0x1
|
|
#define CLK_GATE_CLOSE 0x0
|
|
|
|
/* clock control module regs definition */
|
|
#if defined(CONFIG_MACH_SUN8I_A83T)
|
|
#include <asm/arch/clock_sun8i_a83t.h>
|
|
#elif defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN8I) || \
|
|
defined(CONFIG_MACH_SUN50I)
|
|
#include <asm/arch/clock_sun6i.h>
|
|
#elif defined(CONFIG_MACH_SUN9I)
|
|
#include <asm/arch/clock_sun9i.h>
|
|
#else
|
|
#include <asm/arch/clock_sun4i.h>
|
|
#endif
|
|
|
|
#ifndef __ASSEMBLY__
|
|
int clock_init(void);
|
|
int clock_twi_onoff(int port, int state);
|
|
void clock_set_de_mod_clock(u32 *clk_cfg, unsigned int hz);
|
|
void clock_init_safe(void);
|
|
void clock_init_sec(void);
|
|
void clock_init_uart(void);
|
|
#endif
|
|
|
|
#endif /* _SUNXI_CLOCK_H */
|