2 * Copyright 2011 Freescale Semiconductor
3 * Author: Shengzhou Liu <Shengzhou.Liu@freescale.com>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
10 * This file provides support for the QIXIS of some Freescale reference boards.
17 u8 id; /* ID value uniquely identifying each QDS board type */
18 u8 arch; /* Board version information */
19 u8 scver; /* QIXIS Version Register */
20 u8 model; /* Information of software programming model version */
23 u8 aux; /* Auxiliary Register,0x06 */
29 u8 present2; /* Presence Status Register 2,0x0c */
33 u8 rcfg_ctl; /* Reconfig Control Register,0x10 */
40 u8 gdd; /* DCM Debug Data Register,0x17 */
43 u8 watch; /* Watchdog Register,0x1F */
44 u8 pwr_ctl[2]; /* Power Control Register,0x20 */
46 u8 pwr_stat[4]; /* Power Status Register,0x24 */
48 u8 clk_spd2[2]; /* SYSCLK clock Speed Register,0x30 */
50 u8 sclk[3]; /* Clock Configuration Registers,0x34 */
56 u8 rst_ctl; /* Reset Control Register,0x40 */
57 u8 rst_stat; /* Reset Status Register */
58 u8 rst_rsn; /* Reset Reason Register */
59 u8 rst_frc[2]; /* Reset Force Registers,0x43 */
61 u8 brdcfg[16]; /* Board Configuration Register,0x50 */
63 u8 rcw_ad[2]; /* RCW SRAM Address Registers,0x70 */
82 u8 aux2[4]; /* Auxiliary Registers,0xE0 */
89 u8 qixis_read(unsigned int reg);
90 void qixis_write(unsigned int reg, u8 value);
92 #define QIXIS_READ(reg) qixis_read(offsetof(struct qixis, reg))
93 #define QIXIS_WRITE(reg, value) qixis_write(offsetof(struct qixis, reg), value)