Skip to content

Commit

Permalink
mfd: Add PCMCIA/CF support to asic3
Browse files Browse the repository at this point in the history
This patch is part of a set which adds PCMCIA/CF support for the hx4700.
This patch adds asic3_set_register() calls to:
1. Enable the PCMCIA/CF in asic3_probe().
2. Disable the PCMCIA/CF in asic3_remove().

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Acked-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Paul Parsons authored and Samuel Ortiz committed May 1, 2012
1 parent 18996db commit f22a9c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/mfd/asic3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,9 @@ static int __init asic3_probe(struct platform_device *pdev)

asic3_mfd_probe(pdev, pdata, mem);

asic3_set_register(asic, ASIC3_OFFSET(EXTCF, SELECT),
(ASIC3_EXTCF_CF0_BUF_EN|ASIC3_EXTCF_CF0_PWAIT_EN), 1);

dev_info(asic->dev, "ASIC3 Core driver\n");

return 0;
Expand All @@ -1021,6 +1024,9 @@ static int __devexit asic3_remove(struct platform_device *pdev)
int ret;
struct asic3 *asic = platform_get_drvdata(pdev);

asic3_set_register(asic, ASIC3_OFFSET(EXTCF, SELECT),
(ASIC3_EXTCF_CF0_BUF_EN|ASIC3_EXTCF_CF0_PWAIT_EN), 0);

asic3_mfd_remove(pdev);

ret = asic3_gpio_remove(pdev);
Expand Down

0 comments on commit f22a9c6

Please sign in to comment.