u-boot/include/power/ltc3676_pmic.h
Tom Rini 83d290c56f SPDX: Convert all of our single license tags to Linux Kernel style
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>
2018-05-07 09:34:12 -04:00

51 lines
1.0 KiB
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2014 Gateworks Corporation
* Tim Harvey <tharvey@gateworks.com>
*/
#ifndef __LTC3676_PMIC_H_
#define __LTC3676_PMIC_H_
/* LTC3676 registers */
enum {
LTC3676_BUCK1 = 0x01,
LTC3676_BUCK2 = 0x02,
LTC3676_BUCK3 = 0x03,
LTC3676_BUCK4 = 0x04,
LTC3676_LDOA = 0x05,
LTC3676_LDOB = 0x06,
LTC3676_SQD1 = 0x07,
LTC3676_SQD2 = 0x08,
LTC3676_CNTRL = 0x09,
LTC3676_DVB1A = 0x0A,
LTC3676_DVB1B = 0x0B,
LTC3676_DVB2A = 0x0C,
LTC3676_DVB2B = 0x0D,
LTC3676_DVB3A = 0x0E,
LTC3676_DVB3B = 0x0F,
LTC3676_DVB4A = 0x10,
LTC3676_DVB4B = 0x11,
LTC3676_MSKIRQ = 0x12,
LTC3676_MSKPG = 0x13,
LTC3676_USER = 0x14,
LTC3676_HRST = 0x1E,
LTC3676_CLIRQ = 0x1F,
LTC3676_IRQSTAT = 0x15,
LTC3676_PGSTATL = 0x16,
LTC3676_PGSTATR = 0x17,
LTC3676_NUM_OF_REGS = 0x20,
};
/*
* SW Configuration
*/
#define LTC3676_DVB_MASK 0x1f
#define LTC3676_PGOOD_MASK (1<<5)
#define LTC3676_REF_SELA (0<<5)
#define LTC3676_REF_SELB (1<<5)
int power_ltc3676_init(unsigned char bus);
#endif