[maverick][PATCH] UBUNTU: SAUCE: Load SysLink modules on start-up on OMAP4 devices

Lee Jones lee.jones at canonical.com
Wed Jul 7 09:08:24 UTC 2010


This patch will become part of the Syslink driver code and is not due to go upstream until
the remaining Syslink code is ready to do so, hence SAUCE. It is believed that the next 
version TI release will be upstreamable.

This patch registers the SysLink driver-set as a platform device.
During the registration process a uevent will be fired, allowing
udev to pick it up and load the necessary loadable modules.

The following changes since commit 05cd276ae6bfe20745244f2285fab2b3d40ca1e3:
  Tim Gardner (1):
        UBUNTU: Start new release

are available in the git repository at:

  git://kernel.ubuntu.com/lag/ubuntu-maverick.git ti-omap4-syslink

Lee Jones (1):
      UBUNTU: SAUCE: Load SysLink modules on start-up on OMAP4 devices

 arch/arm/mach-omap2/omap4-common.c          |   23 +++++++++++++++++++++++
 drivers/dsp/syslink/multicore_ipc/ipc_drv.c |    2 ++
 2 files changed, 25 insertions(+), 0 deletions(-)

Signed-off-by: Lee Jones <lee.jones at canonical.com>
---

diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c
index 91b5d36..193d233 100644
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -71,4 +71,27 @@ static int __init omap_l2_cache_init(void)
 early_initcall(omap_l2_cache_init);
 #endif
 
+static struct platform_device omap4_syslink_device = {
+	.name          = "syslink_ipc",
+	.id            = -1,
+	.num_resources = 0,
+};
 
+static struct platform_device *omap4_syslink_devices[] = {
+        &omap4_syslink_device,
+};
+
+static int __init omap4_syslink_init(void)
+{
+	int retval;
+
+	retval = platform_add_devices(omap4_syslink_devices, ARRAY_SIZE(omap4_syslink_devices));
+
+	if (retval != 0)
+		pr_err("%s: Failed to register devices: %d\n", __func__, retval);
+	else
+		pr_info("%s: Successfully registered devices\n", __func__);
+
+	return retval;
+}
+module_init(omap4_syslink_init);
diff --git a/drivers/dsp/syslink/multicore_ipc/ipc_drv.c b/drivers/dsp/syslink/multicore_ipc/ipc_drv.c
index e95eab2..e11998d 100644
--- a/drivers/dsp/syslink/multicore_ipc/ipc_drv.c
+++ b/drivers/dsp/syslink/multicore_ipc/ipc_drv.c
@@ -240,3 +240,5 @@ static void __exit ipc_exit(void)
  */
 module_init(ipc_init);
 module_exit(ipc_exit);
+
+MODULE_ALIAS("platform:" IPC_NAME);




More information about the kernel-team mailing list