rk_i2s: modify GRF_SOC_CON8 only for rk3399

The register definition has nothing to do with, e.g., rk3328.

MFC after:	1 month
This commit is contained in:
Andriy Gapon 2021-06-09 11:02:36 +03:00
parent 8c9bdaf227
commit 5d1a2edeec

View File

@ -195,7 +195,7 @@ rk_i2s_init(struct rk_i2s_softc *sc)
val |= I2S_INTCR_RFT(FIFO_SIZE/2);
RK_I2S_WRITE_4(sc, I2S_INTCR, val);
if (sc->grf) {
if (sc->grf && ofw_bus_is_compatible(sc->dev, "rockchip,rk3399-i2s")) {
val = (I2S_IO_2CH_OUT_8CH_IN << I2S_IO_DIRECTION_SHIFT);
val |= (I2S_IO_DIRECTION_MASK << I2S_IO_DIRECTION_SHIFT) << 16;
SYSCON_WRITE_4(sc->grf, GRF_SOC_CON8, val);