mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 00:18:51 +09:00
![Tom Rini](/assets/img/avatar_default.png)
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>
61 lines
1.7 KiB
C
61 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2009 Faraday Technology
|
|
* Po-Yu Chuang <ratbert@faraday-tech.com>
|
|
*/
|
|
|
|
/*
|
|
* Timer
|
|
*/
|
|
#ifndef __FTTMR010_H
|
|
#define __FTTMR010_H
|
|
|
|
struct fttmr010 {
|
|
unsigned int timer1_counter; /* 0x00 */
|
|
unsigned int timer1_load; /* 0x04 */
|
|
unsigned int timer1_match1; /* 0x08 */
|
|
unsigned int timer1_match2; /* 0x0c */
|
|
unsigned int timer2_counter; /* 0x10 */
|
|
unsigned int timer2_load; /* 0x14 */
|
|
unsigned int timer2_match1; /* 0x18 */
|
|
unsigned int timer2_match2; /* 0x1c */
|
|
unsigned int timer3_counter; /* 0x20 */
|
|
unsigned int timer3_load; /* 0x24 */
|
|
unsigned int timer3_match1; /* 0x28 */
|
|
unsigned int timer3_match2; /* 0x2c */
|
|
unsigned int cr; /* 0x30 */
|
|
unsigned int interrupt_state; /* 0x34 */
|
|
unsigned int interrupt_mask; /* 0x38 */
|
|
};
|
|
|
|
/*
|
|
* Timer Control Register
|
|
*/
|
|
#define FTTMR010_TM3_UPDOWN (1 << 11)
|
|
#define FTTMR010_TM2_UPDOWN (1 << 10)
|
|
#define FTTMR010_TM1_UPDOWN (1 << 9)
|
|
#define FTTMR010_TM3_OFENABLE (1 << 8)
|
|
#define FTTMR010_TM3_CLOCK (1 << 7)
|
|
#define FTTMR010_TM3_ENABLE (1 << 6)
|
|
#define FTTMR010_TM2_OFENABLE (1 << 5)
|
|
#define FTTMR010_TM2_CLOCK (1 << 4)
|
|
#define FTTMR010_TM2_ENABLE (1 << 3)
|
|
#define FTTMR010_TM1_OFENABLE (1 << 2)
|
|
#define FTTMR010_TM1_CLOCK (1 << 1)
|
|
#define FTTMR010_TM1_ENABLE (1 << 0)
|
|
|
|
/*
|
|
* Timer Interrupt State & Mask Registers
|
|
*/
|
|
#define FTTMR010_TM3_OVERFLOW (1 << 8)
|
|
#define FTTMR010_TM3_MATCH2 (1 << 7)
|
|
#define FTTMR010_TM3_MATCH1 (1 << 6)
|
|
#define FTTMR010_TM2_OVERFLOW (1 << 5)
|
|
#define FTTMR010_TM2_MATCH2 (1 << 4)
|
|
#define FTTMR010_TM2_MATCH1 (1 << 3)
|
|
#define FTTMR010_TM1_OVERFLOW (1 << 2)
|
|
#define FTTMR010_TM1_MATCH2 (1 << 1)
|
|
#define FTTMR010_TM1_MATCH1 (1 << 0)
|
|
|
|
#endif /* __FTTMR010_H */
|