Skip to contentSkip to conversation

mfd: asic3: Add PCMCIA/CF support

PATCH In review Paul Parsons 3 participants 3 messages Apr 5, 2012 – Apr 16, 2012 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 mfd: asic3: Add PCMCIA/CF support

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().

---
 drivers/mfd/asic3.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
drivers/mfd/asic3.c +6 -0
index 1895cf9..0c083e7 100644
@@ -998,6 +998,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;
@@ -1019,6 +1022,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);
Signature · 1 line
1.7.3.4
#2 lore raw
In reply to Paul Parsons

Hi Paul,

Quoted 10 lines · Paul Parsons

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().

---
 drivers/mfd/asic3.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/