Lines Matching refs:soc
23 bool (*ctlrdy_ack)(struct brcmnand_soc *soc);
24 void (*ctlrdy_set_enabled)(struct brcmnand_soc *soc, bool en);
25 void (*prepare_data_bus)(struct brcmnand_soc *soc, bool prepare,
27 void (*read_data_bus)(struct brcmnand_soc *soc, void __iomem *flash_cache,
33 u32 (*read_reg)(struct brcmnand_soc *soc, u32 offset);
34 void (*write_reg)(struct brcmnand_soc *soc, u32 val, u32 offset);
37 static inline void brcmnand_soc_data_bus_prepare(struct brcmnand_soc *soc,
40 if (soc && soc->prepare_data_bus)
41 soc->prepare_data_bus(soc, true, is_param);
44 static inline void brcmnand_soc_data_bus_unprepare(struct brcmnand_soc *soc,
47 if (soc && soc->prepare_data_bus)
48 soc->prepare_data_bus(soc, false, is_param);
76 static inline bool brcmnand_soc_has_ops(struct brcmnand_soc *soc)
78 return soc && soc->ops && soc->ops->read_reg && soc->ops->write_reg;
81 static inline u32 brcmnand_soc_read(struct brcmnand_soc *soc, u32 offset)
83 return soc->ops->read_reg(soc, offset);
86 static inline void brcmnand_soc_write(struct brcmnand_soc *soc, u32 val,
89 soc->ops->write_reg(soc, val, offset);
92 int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc);