uboot/board/gdsys/common/fpga.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0+
   2/*
   3 * (C) Copyright 2013
   4 * Dirk Eibach,  Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
   5 */
   6
   7#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
   8
   9#include <common.h>
  10#include <gdsys_fpga.h>
  11
  12#include <asm/io.h>
  13
  14int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data)
  15{
  16        out_le16(reg, data);
  17
  18        return 0;
  19}
  20
  21int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data)
  22{
  23        *data = in_le16(reg);
  24
  25        return 0;
  26}
  27
  28#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
  29