Re: [PATCH v3 1/4] omap4 hsmmc: Adding card detect support for MMC1

2010-09-24 Thread kishore kadiyala
Hi Hari, On Thu, Sep 23, 2010 at 11:22 AM, kishore kadiyala wrote: > Hi Hari, > > On Thu, Sep 23, 2010 at 1:19 AM, Kanigeri, Hari wrote: >> Kishore, >> >>> +int twl6030_mmc_card_detect(struct device *dev, int slot) >>> +{ >>> +     int ret = -EIO; >>> +     u8 read_reg = 0; >>> +     struct pla

Re: [PATCH v3 1/4] omap4 hsmmc: Adding card detect support for MMC1

2010-09-22 Thread kishore kadiyala
Hi Hari, On Thu, Sep 23, 2010 at 1:19 AM, Kanigeri, Hari wrote: > Kishore, > >> +int twl6030_mmc_card_detect(struct device *dev, int slot) >> +{ >> +     int ret = -EIO; >> +     u8 read_reg = 0; >> +     struct platform_device *pdev = to_platform_device(dev); >> + >> +     switch (pdev->id) { >>

RE: [PATCH v3 1/4] omap4 hsmmc: Adding card detect support for MMC1

2010-09-22 Thread Kanigeri, Hari
Kishore, > +int twl6030_mmc_card_detect(struct device *dev, int slot) > +{ > + int ret = -EIO; > + u8 read_reg = 0; > + struct platform_device *pdev = to_platform_device(dev); > + > + switch (pdev->id) { > + case 0: > + /* > + * BIT0 of REG_MMC_CTRL > +

[PATCH v3 1/4] omap4 hsmmc: Adding card detect support for MMC1

2010-09-22 Thread kishore kadiyala
Adding card detect callback function and card detect configuration function for MMC1 Controller on OMAP4. Card detect configuration function does initial configuration of the MMC Control & PullUp-PullDown registers of Phoenix. For MMC1 Controller, card detect interrupt source is twl6030 which is