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