blob: f189e5fbd11d62803a51f002ad9bd02d2e9b2b3d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Dirk Eibachaba27ac2013-06-26 16:04:26 +02002/*
3 * (C) Copyright 2013
Mario Sixd38826a2018-03-06 08:04:58 +01004 * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
Dirk Eibachaba27ac2013-06-26 16:04:26 +02005 */
6
7#include <common.h>
8#include <gdsys_fpga.h>
9
10#include <asm/io.h>
11
12int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data)
13{
14 out_le16(reg, data);
15
16 return 0;
17}
18
19int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data)
20{
21 *data = in_le16(reg);
22
23 return 0;
24}