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 | |
| 7 | #include <common.h> |
| 8 | #include <gdsys_fpga.h> |
| 9 | |
| 10 | #include <asm/io.h> |
| 11 | |
| 12 | int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data) |
| 13 | { |
| 14 | out_le16(reg, data); |
| 15 | |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data) |
| 20 | { |
| 21 | *data = in_le16(reg); |
| 22 | |
| 23 | return 0; |
| 24 | } |