Lines Matching refs:hw_rev
36 static int hw_rev = -1; /* hardware revision */ variable
40 if (hw_rev >= 0) in get_hw_rev()
41 return hw_rev; in get_hw_rev()
43 hw_rev = at91_get_pio_value(AT91_PIO_PORTB, 19); in get_hw_rev()
44 hw_rev |= at91_get_pio_value(AT91_PIO_PORTB, 20) << 1; in get_hw_rev()
45 hw_rev |= at91_get_pio_value(AT91_PIO_PORTB, 21) << 2; in get_hw_rev()
46 hw_rev |= at91_get_pio_value(AT91_PIO_PORTB, 22) << 3; in get_hw_rev()
48 if (hw_rev == 15) in get_hw_rev()
49 hw_rev = 0; in get_hw_rev()
51 return hw_rev; in get_hw_rev()
220 return hw_rev | 0x100; in get_board_rev()