Skip to contentSkip to conversation

[2.6.25] [POWERPC] pasemi: register i2c devices at boot

PATCH New Olof Johansson 1 participant 1 message Feb 21, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [2.6.25] [POWERPC] pasemi: register i2c devices at boot

Setup i2c_board_info based on device tree contents. This has to be a device_initcall since we need PCI to be probed by the time we run it, but before the actual driver is initialized.

---

This patch was posted previously, but not merged (by myself) then because Jon Smirl was working on his automatic probing of i2c devices. There were also some comments to the fact that it should be made common between the fsl_soc and pasemi platforms.

This time I'm posting it for inclusion in 2.6.25, because Jon's work has been delayed to .26, and this is really needed for basic functionality on the pasemi platform (i.e. to get the RTC probed properly). I expect this to be removed once Jon's work is in, but until then it is needed. I also don't see any need for extra churn of common code to abstract out the fsl_soc i2c_board_info building for the same reason: this is throw-away temporary code.

Paul, please apply for 2.6.25.

Thanks,

Olof

arch/powerpc/platforms/pasemi/Makefile +1 -1
Index: 2.6.25/arch/powerpc/platforms/pasemi/Makefile
===================================================================
@@ -1,3 +1,3 @@
-obj-y	+= setup.o pci.o time.o idle.o powersave.o iommu.o dma_lib.o
+obj-y	+= setup.o pci.o time.o idle.o powersave.o iommu.o dma_lib.o misc.o
 obj-$(CONFIG_PPC_PASEMI_MDIO)	+= gpio_mdio.o
 obj-$(CONFIG_PPC_PASEMI_CPUFREQ) += cpufreq.o
arch/powerpc/platforms/pasemi/misc.c new file +97 -0

97 lines not on this page · raw message