Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Dirk Eibach | 20614a2 | 2013-06-26 16:04:26 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2013 |
Mario Six | b489358 | 2018-03-06 08:04:58 +0100 | [diff] [blame] | 4 | * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc |
Dirk Eibach | 20614a2 | 2013-06-26 16:04:26 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
Mario Six | 7851021 | 2019-03-29 10:18:10 +0100 | [diff] [blame] | 7 | #ifdef CONFIG_GDSYS_LEGACY_DRIVERS |
| 8 | |
Dirk Eibach | 20614a2 | 2013-06-26 16:04:26 +0200 | [diff] [blame] | 9 | #include <common.h> |
| 10 | #include <gdsys_fpga.h> |
| 11 | |
| 12 | #include <asm/io.h> |
| 13 | |
| 14 | int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data) |
| 15 | { |
| 16 | out_le16(reg, data); |
| 17 | |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data) |
| 22 | { |
| 23 | *data = in_le16(reg); |
| 24 | |
| 25 | return 0; |
| 26 | } |
Mario Six | 7851021 | 2019-03-29 10:18:10 +0100 | [diff] [blame] | 27 | |
| 28 | #endif /* CONFIG_GDSYS_LEGACY_DRIVERS */ |