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