summaryrefslogtreecommitdiff
path: root/include/sl28cpld.h
blob: 9a7c6de31f589bac1404f4e9afdaaf03891d1e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (c) 2021 Michael Walle <michael@walle.cc>
 */

#ifndef __SL28CPLD_H
#define __SL28CPLD_H

#define SL28CPLD_VERSION	0x03

int sl28cpld_read(struct udevice *dev, uint offset);
int sl28cpld_write(struct udevice *dev, uint offset, uint8_t value);
int sl28cpld_update(struct udevice *dev, uint offset, uint8_t clear,
		    uint8_t set);

#endif