/* ARM PL022 exists in different 'flavors'. This drivers currently support the standard variant (0x00041022), that has a 16bit wide and 8 locations deep TX/RX FIFO.  */
static int pl022_is_supported(struct pl022_spi_slave *ps)
/* ARM PL022 exists in different 'flavors'. This drivers currently support the standard variant (0x00041022), that has a 16bit wide and 8 locations deep TX/RX FIFO.  */
static int pl022_is_supported(struct pl022_spi_slave *ps)
{
	if ((readw(ps->base + SSP_PID0) == 0x22) &&
	    (readw(ps->base + SSP_PID1) == 0x10) &&
	    ((readw(ps->base + SSP_PID2) & 0xf) == 0x04) &&
	    (readw(ps->base + SSP_PID3) == 0x00))
		return 1;
	return 0;
}