~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/board/gdsys/common/fpga.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * (C) Copyright 2013
 
3
 * Dirk Eibach,  Guntermann & Drunck GmbH, eibach@gdsys.de
 
4
 *
 
5
 * SPDX-License-Identifier:     GPL-2.0+
 
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
}