mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-05 02:51:00 +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>
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2016 Google, Inc
|
|
* (C) Copyright 2008-2014 Rockchip Electronics
|
|
*/
|
|
|
|
#ifndef _ASM_ARCH_PWM_H
|
|
#define _ASM_ARCH_PWM_H
|
|
|
|
struct rk3288_pwm {
|
|
u32 cnt;
|
|
u32 period_hpr;
|
|
u32 duty_lpr;
|
|
u32 ctrl;
|
|
};
|
|
check_member(rk3288_pwm, ctrl, 0xc);
|
|
|
|
#define RK_PWM_DISABLE (0 << 0)
|
|
#define RK_PWM_ENABLE (1 << 0)
|
|
|
|
#define PWM_ONE_SHOT (0 << 1)
|
|
#define PWM_CONTINUOUS (1 << 1)
|
|
#define RK_PWM_CAPTURE (1 << 2)
|
|
|
|
#define PWM_DUTY_POSTIVE (1 << 3)
|
|
#define PWM_DUTY_NEGATIVE (0 << 3)
|
|
#define PWM_DUTY_MASK (1 << 3)
|
|
|
|
#define PWM_INACTIVE_POSTIVE (1 << 4)
|
|
#define PWM_INACTIVE_NEGATIVE (0 << 4)
|
|
#define PWM_INACTIVE_MASK (1 << 4)
|
|
|
|
#define PWM_OUTPUT_LEFT (0 << 5)
|
|
#define PWM_OUTPUT_CENTER (1 << 5)
|
|
|
|
#define PWM_LP_ENABLE (1 << 8)
|
|
#define PWM_LP_DISABLE (0 << 8)
|
|
|
|
#define PWM_SEL_SCALE_CLK (1 << 9)
|
|
#define PWM_SEL_SRC_CLK (0 << 9)
|
|
|
|
#endif
|