Lines Matching full: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, in brcmnand_soc_data_bus_prepare() argument
40 if (soc && soc->prepare_data_bus) in brcmnand_soc_data_bus_prepare()
41 soc->prepare_data_bus(soc, true, is_param); in brcmnand_soc_data_bus_prepare()
44 static inline void brcmnand_soc_data_bus_unprepare(struct brcmnand_soc *soc, in brcmnand_soc_data_bus_unprepare() argument
47 if (soc && soc->prepare_data_bus) in brcmnand_soc_data_bus_unprepare()
48 soc->prepare_data_bus(soc, false, is_param); in brcmnand_soc_data_bus_unprepare()
76 static inline bool brcmnand_soc_has_ops(struct brcmnand_soc *soc) in brcmnand_soc_has_ops() argument
78 return soc && soc->ops && soc->ops->read_reg && soc->ops->write_reg; in brcmnand_soc_has_ops()
81 static inline u32 brcmnand_soc_read(struct brcmnand_soc *soc, u32 offset) in brcmnand_soc_read() argument
83 return soc->ops->read_reg(soc, offset); in brcmnand_soc_read()
86 static inline void brcmnand_soc_write(struct brcmnand_soc *soc, u32 val, in brcmnand_soc_write() argument
89 soc->ops->write_reg(soc, val, offset); in brcmnand_soc_write()
92 int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc);