Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4d0361c authored by Sudheer Papothi's avatar Sudheer Papothi
Browse files

mfd: wcd: Compile core drivers for WCD9330 codec



WCD9330 uses wcd core services. Add WCD9330 codec in
configuration file to compile core drivers for WCD9330 codec.

Change-Id: Ibf7abcab5f9403ce13f1f63061dac751d45f76ab
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent f3128628
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1152,6 +1152,17 @@ config WCD9306_CODEC
	  The WCD9306 codec supports either I2C/I2S or Slimbus for
	  control and data exchnage with master processor.

config WCD9330_CODEC
	tristate "WCD9330 Codec"
	select SLIMBUS
	select MFD_CORE
	help
	  Enables the WCD9xxx codec core driver. The core driver provides
	  read/write capability to registers which are part of the
	  WCD9330 core and gives the ability to use the WCD9330 codec.
	  The WCD9330 codec support either I2C/I2S or Slimbus for
	  control and data exchnage with master processor.

endmenu
endif

+5 −1
Original line number Diff line number Diff line
@@ -32,6 +32,10 @@

#define WCD9XXX_SYSTEM_RESUME_TIMEOUT_MS 100

#ifndef NO_IRQ
#define NO_IRQ	(-1)
#endif

#ifdef CONFIG_OF
struct wcd9xxx_irq_drv_data {
	struct irq_domain *domain;
@@ -498,7 +502,7 @@ int wcd9xxx_request_irq(struct wcd9xxx_core_resource *wcd9xxx_res,
	 * ARM needs us to explicitly flag the IRQ as valid
	 * and will set them noprobe when we do so.
	 */
#ifdef CONFIG_ARM
#if defined(CONFIG_ARM) || defined(CONFIG_ARM64)
	set_irq_flags(virq, IRQF_VALID);
#else
	set_irq_noprobe(virq);