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