Re: [PATCH v6 6/9] mmc: dw_mmc: add device tree support

2012-09-20 Thread Jaehoon Chung
+#else /* CONFIG_OF */ +static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host) +{ + return ERR_PTR(-EINVAL); +} +#endif /* CONFIG_OF */ + int dw_mci_probe(struct dw_mci *host) { int width, i, ret = 0; u32 fifo_size;

RE: [PATCH v6 6/9] mmc: dw_mmc: add device tree support

2012-09-20 Thread Seungwon Jeon
On Thursday, September 20, 2012, Thomas Abraham wrote: > On 19 September 2012 19:09, Seungwon Jeon wrote: > > On Tuesday, September 18, 2012, Thomas Abraham > > wrote: > >> +#ifdef CONFIG_OF > >> +/* given a slot id, find out the device node representing that slot */ > >> +static struct device

Re: [PATCH v6 6/9] mmc: dw_mmc: add device tree support

2012-09-19 Thread Thomas Abraham
On 19 September 2012 19:09, Seungwon Jeon wrote: > On Tuesday, September 18, 2012, Thomas Abraham > wrote: >> +#ifdef CONFIG_OF >> +/* given a slot id, find out the device node representing that slot */ >> +static struct device_node *dw_mci_of_find_slot_node(struct device *dev, u8 >> slot) >> +

RE: [PATCH v6 6/9] mmc: dw_mmc: add device tree support

2012-09-19 Thread Seungwon Jeon
On Tuesday, September 18, 2012, Thomas Abraham wrote: > +#ifdef CONFIG_OF > +/* given a slot id, find out the device node representing that slot */ > +static struct device_node *dw_mci_of_find_slot_node(struct device *dev, u8 > slot) > +{ > + struct device_node *np; > + const __be32 *add

[PATCH v6 6/9] mmc: dw_mmc: add device tree support

2012-09-17 Thread Thomas Abraham
Add device tree based discovery support. Signed-off-by: Thomas Abraham Acked-by: Will Newton --- .../devicetree/bindings/mmc/synposis-dw-mshc.txt | 79 drivers/mmc/host/dw_mmc-pltfm.c|9 ++ drivers/mmc/host/dw_mmc.c | 130 ++