blob: eb9c314aa96998c7199129dab4ee5a1fd99faf59 [file] [log] [blame]
Stefan Roeseb79316f2005-08-15 12:31:23 +02001#ifndef __KAREF_H__
2#define __KAREF_H__
3/*
4 * (C) Copyright 2005
5 * Sandburst Corporation
6 * Travis B. Sawyer
7 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Stefan Roeseb79316f2005-08-15 12:31:23 +02009 */
10
11/* Ka Reference Design OFEM FPGA Registers & definitions */
12#include "hal_ka_sc_auto.h"
13#include "hal_ka_of_auto.h"
14
15typedef struct karef_board_id_s {
16 const char name[40];
17} KAREF_BOARD_ID_ST, *KAREF_BOARD_ID_PST;
18
19/* SCAN FPGA */
20typedef struct karef_fpga_regs_s
21{
22 volatile unsigned long revision_ul; /* Read Only */
23 volatile unsigned long reset_ul; /* Read/Write */
24 volatile unsigned long interrupt_ul; /* Read Only */
25 volatile unsigned long mask_ul; /* Read/Write */
26 volatile unsigned long scratch_ul; /* Read/Write */
27 volatile unsigned long scrmask_ul; /* Read/Write */
28 volatile unsigned long status_ul; /* Read Only */
29 volatile unsigned long control_ul; /* Read/Write */
30 volatile unsigned long boardinfo_ul; /* Read Only */
31 volatile unsigned long scan_from0_ul; /* Read Only */
32 volatile unsigned long scan_from1_ul; /* Read Only */
33 volatile unsigned long scan_to0_ul; /* Read/Write */
34 volatile unsigned long scan_to1_ul; /* Read/Write */
35 volatile unsigned long scan_control_ul; /* Read/Write */
36 volatile unsigned long pll_control_ul; /* Read/Write */
37 volatile unsigned long core_clock_cnt_ul; /* Read/Write */
38 volatile unsigned long dr_clock_cnt_ul; /* Read/Write */
39 volatile unsigned long spi_clock_cnt_ul; /* Read/Write */
40 volatile unsigned long brdout_data_ul; /* Read/Write */
41 volatile unsigned long brdout_enable_ul; /* Read/Write */
42 volatile unsigned long brdin_data_ul; /* Read Only */
43 volatile unsigned long misc_ul; /* Read/Write */
Wolfgang Denk77ddac92005-10-13 16:45:02 +020044} __attribute__((packed)) KAREF_FPGA_REGS_ST , * KAREF_FPGA_REGS_PST;
Stefan Roeseb79316f2005-08-15 12:31:23 +020045
46/* OFEM FPGA */
47typedef struct ofem_fpga_regs_s
48{
49 volatile unsigned long revision_ul; /* Read Only */
50 volatile unsigned long reset_ul; /* Read/Write */
51 volatile unsigned long interrupt_ul; /* Read Only */
52 volatile unsigned long mask_ul; /* Read/Write */
53 volatile unsigned long scratch_ul; /* Read/Write */
54 volatile unsigned long scrmask_ul; /* Read/Write */
55 volatile unsigned long control_ul; /* Read/Write */
56 volatile unsigned long mac_flow_ctrl_ul; /* Read/Write */
Wolfgang Denk77ddac92005-10-13 16:45:02 +020057} __attribute__((packed)) OFEM_FPGA_REGS_ST , * OFEM_FPGA_REGS_PST;
Stefan Roeseb79316f2005-08-15 12:31:23 +020058
59
60#endif /* __KAREF_H__ */