Michael Walle | 42595eb | 2022-02-25 18:06:24 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (c) 2021 Michael Walle <michael@walle.cc> |
| 4 | */ |
| 5 | |
| 6 | #ifndef __SL28CPLD_H |
| 7 | #define __SL28CPLD_H |
| 8 | |
Michael Walle | d36b683 | 2021-11-15 23:45:46 +0100 | [diff] [blame] | 9 | #define SL28CPLD_VERSION 0x03 |
| 10 | |
Michael Walle | 42595eb | 2022-02-25 18:06:24 +0530 | [diff] [blame] | 11 | int sl28cpld_read(struct udevice *dev, uint offset); |
| 12 | int sl28cpld_write(struct udevice *dev, uint offset, uint8_t value); |
| 13 | int sl28cpld_update(struct udevice *dev, uint offset, uint8_t clear, |
| 14 | uint8_t set); |
| 15 | |
| 16 | #endif |