1*aba27acfSDirk Eibach /* 2*aba27acfSDirk Eibach * (C) Copyright 2013 3*aba27acfSDirk Eibach * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de 4*aba27acfSDirk Eibach * 5*aba27acfSDirk Eibach * See file CREDITS for list of people who contributed to this 6*aba27acfSDirk Eibach * project. 7*aba27acfSDirk Eibach * 8*aba27acfSDirk Eibach * This program is free software; you can redistribute it and/or 9*aba27acfSDirk Eibach * modify it under the terms of the GNU General Public License as 10*aba27acfSDirk Eibach * published by the Free Software Foundation; either version 2 of 11*aba27acfSDirk Eibach * the License, or (at your option) any later version. 12*aba27acfSDirk Eibach * 13*aba27acfSDirk Eibach * This program is distributed in the hope that it will be useful, 14*aba27acfSDirk Eibach * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*aba27acfSDirk Eibach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*aba27acfSDirk Eibach * GNU General Public License for more details. 17*aba27acfSDirk Eibach * 18*aba27acfSDirk Eibach * You should have received a copy of the GNU General Public License 19*aba27acfSDirk Eibach * along with this program; if not, write to the Free Software 20*aba27acfSDirk Eibach * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*aba27acfSDirk Eibach * MA 02111-1307 USA 22*aba27acfSDirk Eibach */ 23*aba27acfSDirk Eibach 24*aba27acfSDirk Eibach #include <common.h> 25*aba27acfSDirk Eibach #include <gdsys_fpga.h> 26*aba27acfSDirk Eibach 27*aba27acfSDirk Eibach #include <asm/io.h> 28*aba27acfSDirk Eibach 29*aba27acfSDirk Eibach int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data) 30*aba27acfSDirk Eibach { 31*aba27acfSDirk Eibach out_le16(reg, data); 32*aba27acfSDirk Eibach 33*aba27acfSDirk Eibach return 0; 34*aba27acfSDirk Eibach } 35*aba27acfSDirk Eibach 36*aba27acfSDirk Eibach int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data) 37*aba27acfSDirk Eibach { 38*aba27acfSDirk Eibach *data = in_le16(reg); 39*aba27acfSDirk Eibach 40*aba27acfSDirk Eibach return 0; 41*aba27acfSDirk Eibach } 42