mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-23 19:43:33 +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>
54 lines
1.3 KiB
C
54 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2009 Samsung Electronics
|
|
* Kyungmin Park <kyungmin.park@samsung.com>
|
|
* Minkyu Kang <mk7.kang@samsung.com>
|
|
*/
|
|
|
|
#ifndef __ASM_ARM_ARCH_PWM_H_
|
|
#define __ASM_ARM_ARCH_PWM_H_
|
|
|
|
#define PRESCALER_0 (8 - 1) /* prescaler of timer 0, 1 */
|
|
#define PRESCALER_1 (16 - 1) /* prescaler of timer 2, 3, 4 */
|
|
|
|
/* Divider MUX */
|
|
#define MUX_DIV_1 0 /* 1/1 period */
|
|
#define MUX_DIV_2 1 /* 1/2 period */
|
|
#define MUX_DIV_4 2 /* 1/4 period */
|
|
#define MUX_DIV_8 3 /* 1/8 period */
|
|
#define MUX_DIV_16 4 /* 1/16 period */
|
|
|
|
#define MUX_DIV_SHIFT(x) (x * 4)
|
|
|
|
#define TCON_OFFSET(x) ((x + 1) * (!!x) << 2)
|
|
|
|
#define TCON_START(x) (1 << TCON_OFFSET(x))
|
|
#define TCON_UPDATE(x) (1 << (TCON_OFFSET(x) + 1))
|
|
#define TCON_INVERTER(x) (1 << (TCON_OFFSET(x) + 2))
|
|
#define TCON_AUTO_RELOAD(x) (1 << (TCON_OFFSET(x) + 3))
|
|
#define TCON4_AUTO_RELOAD (1 << 22)
|
|
|
|
#ifndef __ASSEMBLY__
|
|
struct s5p_timer {
|
|
unsigned int tcfg0;
|
|
unsigned int tcfg1;
|
|
unsigned int tcon;
|
|
unsigned int tcntb0;
|
|
unsigned int tcmpb0;
|
|
unsigned int tcnto0;
|
|
unsigned int tcntb1;
|
|
unsigned int tcmpb1;
|
|
unsigned int tcnto1;
|
|
unsigned int tcntb2;
|
|
unsigned int tcmpb2;
|
|
unsigned int tcnto2;
|
|
unsigned int tcntb3;
|
|
unsigned int res1;
|
|
unsigned int tcnto3;
|
|
unsigned int tcntb4;
|
|
unsigned int tcnto4;
|
|
unsigned int tintcstat;
|
|
};
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif
|