Re: [PATCH v2] [ARM] Kirkwood: Marvell OpenRD-Base board supportadded to v2.6.31-rc5

From: Simon Kagstrom
Date: Wed Aug 19 2009 - 09:45:34 EST


On Wed, 19 Aug 2009 15:18:14 +0200
Simon Kagstrom <simon.kagstrom@xxxxxxxxxxxxxx> wrote:

> In my patch, I also called kirkwood_i2c_init (see below), which at
> least make the I2C bus appear (not that I've tested it very much).

And also from my patch, I added initialization of PCIe as well (taken
from rd88f6281-setup.c). So you could perhaps also add that to your
patch as well?

If needed:

Signed-off-by: Simon Kagstrom <simon.kagstrom@xxxxxxxxxxxxxx>

// Simon

diff --git a/arch/arm/mach-kirkwood/openrd_base-setup.c b/arch/arm/mach-kirkwood/openrd_base-setup.c
index f9a2166..30f84b1 100644
--- a/arch/arm/mach-kirkwood/openrd_base-setup.c
+++ b/arch/arm/mach-kirkwood/openrd_base-setup.c
@@ -71,7 +71,18 @@ static void __init openrd_base_init(void)
kirkwood_ge00_init(&openrd_base_ge00_data);
kirkwood_sata_init(&openrd_base_sata_data);
kirkwood_sdio_init(&openrd_base_mvsdio_data);
+
+ kirkwood_i2c_init();
+}
+
+static int __init openrd_base_pci_init(void)
+{
+ if (machine_is_openrd_base())
+ kirkwood_pcie_init();
+
+ return 0;
}
+subsys_initcall(openrd_base_pci_init);

MACHINE_START(OPENRD_BASE, "Marvell OpenRD Base Board")
/* Maintainer: Dhaval Vasa <dhaval.vasa@xxxxxxxxxxxxxx> */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/