2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2013-06-26 14:04:26 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2013
|
2018-03-06 07:04:58 +00:00
|
|
|
* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
|
2013-06-26 14:04:26 +00:00
|
|
|
*/
|
|
|
|
|
2019-03-29 09:18:10 +00:00
|
|
|
#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
|
|
|
|
|
2013-06-26 14:04:26 +00:00
|
|
|
#include <common.h>
|
|
|
|
#include <gdsys_fpga.h>
|
|
|
|
|
|
|
|
#include <asm/io.h>
|
|
|
|
|
|
|
|
int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data)
|
|
|
|
{
|
|
|
|
out_le16(reg, data);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data)
|
|
|
|
{
|
|
|
|
*data = in_le16(reg);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2019-03-29 09:18:10 +00:00
|
|
|
|
|
|
|
#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
|