2 * Copyright 2010 Freescale Semiconductor
3 * Author: Timur Tabi <timur@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 ngPIXIS, a board-specific FPGA used on
11 * some Freescale reference boards.
14 /* ngPIXIS register set. Hopefully, this won't change too much over time.
15 * Feel free to add board-specific #ifdefs where necessary.
17 typedef struct ngpixis {
27 u8 brdcfg1; /* On some boards, this register is called 'dma' */
48 } __attribute__ ((packed)) ngpixis_t;
50 /* Pointer to the PIXIS register set */
51 #define pixis ((ngpixis_t *)PIXIS_BASE)
53 /* The PIXIS SW register that corresponds to board switch X, where x >= 1 */
54 #define PIXIS_SW(x) (pixis->s[(x) - 1].sw)
56 /* The PIXIS EN register that corresponds to board switch X, where x >= 1 */
57 #define PIXIS_EN(x) (pixis->s[(x) - 1].en)