Lines Matching +full:sw +full:- +full:reset +full:- +full:number

1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2010-2011 Freescale Semiconductor
6 * This file provides support for the ngPIXIS, a board-specific FPGA used on
10 * eight "bits". The ngPIXIS has a set of memory-mapped registers (SWx) that
17 * PIXIS_BASE - The virtual address of the base of the PIXIS register map
19 * PIXIS_LBMAP_SWITCH - The switch number (i.e. the "x" in "SWx"). This value
24 * PIXIS_LBMAP_MASK - A bit mask the defines which bits in SWx to use.
26 * PIXIS_LBMAP_SHIFT - The shift value that corresponds to PIXIS_LBMAP_MASK.
28 * PIXIS_LBMAP_ALTBANK - The value to program into SWx to tell the ngPIXIS to
56 * Reset the board. This ignores the ENx registers.
67 * Reset the board. Like pixis_reset(), but it honors the ENx registers.
79 * Set the boot bank to the power-on default bank
89 reg = PIXIS_READ(s[PIXIS_LBMAP_SWITCH - 1].en); in __clear_altbank()
91 PIXIS_WRITE(s[PIXIS_LBMAP_SWITCH - 1].en, reg); in __clear_altbank()
102 /* Program the alternate bank number into the SWx register. in __set_altbank()
104 reg = PIXIS_READ(s[PIXIS_LBMAP_SWITCH - 1].sw); in __set_altbank()
106 PIXIS_WRITE(s[PIXIS_LBMAP_SWITCH - 1].sw, reg); in __set_altbank()
112 reg = PIXIS_READ(s[PIXIS_LBMAP_SWITCH - 1].en); in __set_altbank()
114 PIXIS_WRITE(s[PIXIS_LBMAP_SWITCH - 1].en, reg); in __set_altbank()
148 printf("SW%u=%02x/%02x ", i + 1, in pixis_dump_regs()
149 PIXIS_READ(s[i].sw), PIXIS_READ(s[i].en)); in pixis_dump_regs()
184 /* No args is a simple reset request. in pixis_reset_cmd()
238 "- hard reset to default bank\n"
239 "pixis_reset altbank - reset to alternate bank\n"
241 "pixis_reset dump - display the PIXIS registers\n"
243 "pixis_reset sysclk <SYSCLK_freq> - reset with SYSCLK frequency(KHz)\n";
248 "Reset the board using the FPGA sequencer", pixis_help_text