Lines Matching +full:board +full:- +full:level
1 // SPDX-License-Identifier: GPL-2.0
3 * arch/sh/boards/mach-x3proto/ilsel.c
5 * Helper routines for SH-X3 proto board ILSEL.
7 * Copyright (C) 2007 - 2010 Paul Mundt
21 * ILSEL0 - 0xb8100004 [ Levels 1 - 4 ]
22 * ILSEL1 - 0xb8100006 [ Levels 5 - 8 ]
23 * ILSEL2 - 0xb8100008 [ Levels 9 - 12 ]
24 * ILSEL3 - 0xb810000a [ Levels 13 - 15 ]
26 * With each level being relative to an ilsel_source_t.
32 * ILSEL level map, in descending order from the highest level down.
34 * Supported levels are 1 - 15 spread across ILSEL0 - ILSEL4, mapping
36 * to the interrupt level, the level map is carefully managed to ensure a
48 return ILSEL_LEVELS - bit - 1; in ilsel_offset()
71 pr_debug("%s: bit#%d: addr - 0x%08lx (shift %d, set %d)\n", in __ilsel_enable()
81 * ilsel_enable - Enable an ILSEL set.
82 * @set: ILSEL source (see ilsel_source_t enum in include/asm-sh/ilsel.h).
84 * Enables a given non-aliased ILSEL source (<= ILSEL_KEY) at the highest
85 * available interrupt level. Callers should take care to order callsites
86 * noting descending interrupt levels. Aliasing FPGA and external board
98 return -EINVAL; in ilsel_enable()
112 * ilsel_enable_fixed - Enable an ILSEL set at a fixed interrupt level
113 * @set: ILSEL source (see ilsel_source_t enum in include/asm-sh/ilsel.h).
114 * @level: Interrupt level (1 - 15)
116 * Enables a given ILSEL source at a fixed interrupt level. Necessary
117 * both for level reservation as well as for aliased sources that only
122 int ilsel_enable_fixed(ilsel_source_t set, unsigned int level) in ilsel_enable_fixed() argument
124 unsigned int bit = ilsel_offset(level - 1); in ilsel_enable_fixed()
127 return -EBUSY; in ilsel_enable_fixed()
136 * ilsel_disable - Disable an ILSEL set