#define SMT(off) (0x3400 + (off) * 8)
#define SD_CH(off, ch) ((off) + (ch) * 4)
#define ETH_POC(off, ch) ((off) + (ch) * 4)
-#define QSPI (0x3008)
+#define QSPI (0x3008) /* known on RZ/{G2L,G2LC,G2UL,Five} only */
#define PVDD_2500 2 /* I/O domain voltage 2.5V */
#define PVDD_1800 1 /* I/O domain voltage <= 1.8V */
* @sd_ch: SD_CH register offset
* @eth_poc: ETH_POC register offset
* @oen: OEN register offset
+ * @qspi: QSPI register offset
*/
struct rzg2l_register_offsets {
u16 pwpr;
u16 sd_ch;
u16 eth_poc;
u16 oen;
+ u16 qspi;
};
/**
cache->eth_poc[i] = readb(pctrl->base + ETH_POC(regs->eth_poc, i));
}
- cache->qspi = readb(pctrl->base + QSPI);
+ if (regs->qspi)
+ cache->qspi = readb(pctrl->base + regs->qspi);
cache->oen = readb(pctrl->base + pctrl->data->hwcfg->regs.oen);
if (!atomic_read(&pctrl->wakeup_path))
return ret;
}
- writeb(cache->qspi, pctrl->base + QSPI);
+ if (regs->qspi)
+ writeb(cache->qspi, pctrl->base + regs->qspi);
raw_spin_lock_irqsave(&pctrl->lock, flags);
rzg2l_oen_write_with_pwpr(pctrl, cache->oen);
.sd_ch = 0x3000,
.eth_poc = 0x300c,
.oen = 0x3018,
+ .qspi = QSPI,
},
.iolh_groupa_ua = {
/* 3v3 power source */