Commit 3e3e36e4 authored by Mikhail Karpenko's avatar Mikhail Karpenko
Browse files

Move patches from meta-elphel to src

parent 9836c915
Loading
Loading
Loading
Loading

src/patches/README

0 → 100644
+1 −0
Original line number Original line Diff line number Diff line
Patches from this directory are applied by 'meta-elphel393/recipes-kernel/linux/linux-xlnx' bitbake recipe. To add a new patch, append SRC_URI variable in the recipe.

src/patches/ahci.patch

0 → 100644
+10 −0
Original line number Original line Diff line number Diff line
--- a/drivers/ata/ahci.h	2016-09-13 17:18:35.579259846 -0600
+++ b/drivers/ata/ahci.h	2016-08-01 11:57:06.306630339 -0600
@@ -396,6 +396,7 @@ void ahci_print_info(struct ata_host *ho
 int ahci_host_activate(struct ata_host *host, int irq,
 		       struct scsi_host_template *sht);
 void ahci_error_handler(struct ata_port *ap);
+irqreturn_t ahci_single_irq_intr(int irq, void *dev_instance);
 
 static inline void __iomem *__ahci_port_base(struct ata_host *host,
 					     unsigned int port_no)
+20 −0
Original line number Original line Diff line number Diff line
diff -Naur a/drivers/Kconfig b/drivers/Kconfig
--- a/drivers/Kconfig	2016-01-25 18:31:43.309779723 -0700
+++ b/drivers/Kconfig	2016-01-25 18:48:17.521798388 -0700
@@ -182,4 +182,6 @@
 
 source "drivers/android/Kconfig"
 
+source "drivers/elphel/Kconfig"
+
 endmenu
diff -Naur a/drivers/Makefile b/drivers/Makefile
--- a/drivers/Makefile	2016-01-25 18:31:43.309779723 -0700
+++ b/drivers/Makefile	2016-01-25 18:50:39.545801055 -0700
@@ -165,3 +165,6 @@
 obj-$(CONFIG_THUNDERBOLT)	+= thunderbolt/
 obj-$(CONFIG_CORESIGHT)		+= coresight/
 obj-$(CONFIG_ANDROID)		+= android/
+
+obj-$(CONFIG_ELPHEL393)		+= elphel/
+obj-$(CONFIG_ELPHELDRVONMICROZED)	+= elphel/
+19 −0
Original line number Original line Diff line number Diff line
--- a/drivers/ata/libahci.c	2016-09-13 17:18:35.579259846 -0600
+++ b/drivers/ata/libahci.c	2016-07-27 20:25:34.217095567 -0600
@@ -1826,7 +1826,7 @@ static irqreturn_t ahci_multi_irqs_intr(
 	return IRQ_WAKE_THREAD;
 }
 
-static irqreturn_t ahci_single_irq_intr(int irq, void *dev_instance)
+irqreturn_t ahci_single_irq_intr(int irq, void *dev_instance)
 {
 	struct ata_host *host = dev_instance;
 	struct ahci_host_priv *hpriv;
@@ -1885,6 +1885,7 @@ static irqreturn_t ahci_single_irq_intr(
 
 	return IRQ_RETVAL(handled);
 }
+EXPORT_SYMBOL_GPL(ahci_single_irq_intr);
 
 unsigned int ahci_qc_issue(struct ata_queued_cmd *qc)
 {
+67 −0
Original line number Original line Diff line number Diff line
diff -Naur a/drivers/clk/Kconfig b/drivers/clk/Kconfig
--- a/drivers/clk/Kconfig	2016-01-25 18:31:43.413779725 -0700
+++ b/drivers/clk/Kconfig	2016-01-25 19:09:12.833821955 -0700
@@ -59,6 +59,16 @@
 	  clocked at 32KHz each. Clkout1 is always on, Clkout2 can off
 	  by control register.
 
+config COMMON_CLK_SI5338
+	tristate "Support Silicon Laboratories SI5338 Quad Clock Generator"
+	depends on I2C
+	select REGMAP_I2C
+	select RATIONAL
+	help
+	 Say Y here if you have a SI5338 Quad Clock Generator IC on the I2C bus.
+	 To compile this driver as a module, choose M here: the
+	 module will be called si5338.
+
 config COMMON_CLK_SI5351
 	tristate "Clock driver for SiLabs 5351A/B/C"
 	depends on I2C
diff -Naur a/drivers/clk/Makefile b/drivers/clk/Makefile
--- a/drivers/clk/Makefile	2016-01-25 18:31:43.413779725 -0700
+++ b/drivers/clk/Makefile	2016-01-25 19:09:46.217822582 -0700
@@ -35,6 +35,7 @@
 obj-$(CONFIG_CLK_QORIQ)			+= clk-qoriq.o
 obj-$(CONFIG_COMMON_CLK_RK808)		+= clk-rk808.o
 obj-$(CONFIG_COMMON_CLK_S2MPS11)	+= clk-s2mps11.o
+obj-$(CONFIG_COMMON_CLK_SI5338)		+= clk-si5338.o
 obj-$(CONFIG_COMMON_CLK_SI5351)		+= clk-si5351.o
 obj-$(CONFIG_COMMON_CLK_SI570)		+= clk-si570.o
 obj-$(CONFIG_CLK_TWL6040)		+= clk-twl6040.o
diff -Naur a/drivers/misc/Kconfig b/drivers/misc/Kconfig
--- a/drivers/misc/Kconfig	2016-01-28 19:14:34.610694113 -0700
+++ b/drivers/misc/Kconfig	2016-01-28 19:42:44.730725843 -0700
@@ -515,6 +515,23 @@
 	  bus. System Configuration interface is one of the possible means
 	  of generating transactions on this bus.
 
+config VSC330X
+	tristate "Support VSC330X crosspoint switch"
+	help
+	  Say Y here if you have a VSC30X crosspoint switch IC on the I2C bus.
+	  To compile this driver as a module, choose M here: the
+	  module will be called vsc330x.
+
+config LTC3589
+	tristate "Support LTC3589 voltage regulator"
+	help
+	  Say Y here if you have a LTC3589 voltage regulator IC on the I2C bus.
+	  To compile this driver as a module, choose M here: the
+	  module will be called ltc3589. 
+	  Developed by Elphel, Inc.. 
+	  The default driver is found at drivers/regulator/ltc3589.c and 
+	  enabled with CONFIG_REGULATOR_LTC3589=y
+	  
 config XILINX_TRAFGEN
 	tristate "Xilinx Traffic Generator"
 	depends on MICROBLAZE || ARCH_ZYNQ
diff -Naur a/drivers/misc/Makefile b/drivers/misc/Makefile
--- a/drivers/misc/Makefile	2016-01-28 19:14:34.610694113 -0700
+++ b/drivers/misc/Makefile	2016-01-28 19:19:56.638700159 -0700
@@ -58,3 +58,5 @@
 obj-$(CONFIG_ECHO)		+= echo/
 obj-$(CONFIG_VEXPRESS_SYSCFG)	+= vexpress-syscfg.o
 obj-$(CONFIG_CXL_BASE)		+= cxl/
+obj-$(CONFIG_VSC330X)	        += vsc330x.o
+obj-$(CONFIG_LTC3589)	        += ltc3589.o
Loading