gpio-switch is for some reason neccessary for camera to work.
Subsystems (4)
RFC 11/13 gpio-switch is for some reason neccessary for camera to work.
Probably something fun happening in userspace.
--- arch/arm/mach-omap2/Makefile | 1 + arch/arm/mach-omap2/board-rx51-peripherals.c | 51 ++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 arch/arm/mach-omap2/board-rx51-peripherals.c
arch/arm/mach-omap2/Makefile +1 -0
@@ -229,6 +229,7 @@ obj-$(CONFIG_SOC_OMAP2420) += msdi.o # Specific board support obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o pdata-quirks.o obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o +obj-y += board-rx51-peripherals.o # Platform specific device init code
arch/arm/mach-omap2/board-rx51-peripherals.c new file +51 -0
51 lines not on this page · raw message
Signature · 6 lines
2.1.4 -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi Pavel,
Quoted 1 line · Pavel Machek
Probably something fun happening in userspace.
What's the status of this one?
I don't think it has a chance to be merged in the foreseeable future. Why is it needed?
Quoted 77 lines
--- arch/arm/mach-omap2/Makefile | 1 + arch/arm/mach-omap2/board-rx51-peripherals.c | 51 ++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 arch/arm/mach-omap2/board-rx51-peripherals.carch/arm/mach-omap2/Makefile +1
-0@@ -229,6 +229,7 @@ obj-$(CONFIG_SOC_OMAP2420) += msdi.o # Specific board support obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o pdata-quirks.o obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o +obj-y += board-rx51-peripherals.o # Platform specific device init codearch/arm/mach-omap2/board-rx51-peripherals.c new file +51
-0@@ -0,0 +1,51 @@ +/* +* linux/arch/arm/mach-omap2/board-rx51-peripherals.c +* +* Copyright (C) 2008-2009 Nokia +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/init.h> +#include <linux/platform_device.h> +#include <linux/gpio.h> +#include <linux/gpio_keys.h> +#include <linux/gpio/machine.h> +#include <linux/module.h> +#include <linux/platform_device.h> +#include <linux/timer.h> + +static struct platform_driver gpio_sw_driver = { + .driver = { + .name ="gpio-switch" , + }, +}; + +static int __init gpio_sw_init (void ) +{ +int r; + +printk (KERN_INFO "OMAP GPIO switch handler initializing\n" ); + + r =platform_driver_register (&gpio_sw_driver); +if (r) +return r; + +platform_device_register_simple ("gpio-switch" , +-1 ,NULL ,0 ); +return 0 ; +} + +static void __exit gpio_sw_exit(void) +{ +} + +#ifndef MODULE +late_initcall (gpio_sw_init); +#else +module_init (gpio_sw_init); +#endif +module_exit (gpio_sw_exit);Signature · 1 line
2.1.4
Signature · 4 lines
Regards, Sakari Ailus e-mail: [email protected] XMPP: [email protected]
Hi!
Quoted 7 lines · Pavel Machek
Quoted 1 line
Probably something fun happening in userspace.
What's the status of this one?
I don't think it has a chance to be merged in the foreseeable future. Why is it needed?
Good question. And agreed that this one is not for merging. I suspect something in my userspace depends on gpio-switch device being present.
I'll try to debug what is going on there once more.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 7 lines · Pavel Machek
Hi!
Quoted 5 lines · Pavel Machek
Quoted 1 line
Probably something fun happening in userspace.
What's the status of this one?
Quoted 8 lines
Quoted 2 lines
I don't think it has a chance to be merged in the foreseeable future. Why is it needed?
Good question. And agreed that this one is not for merging. I suspect something in my userspace depends on gpio-switch device being present.
I'll try to debug what is going on there once more.
I tried with current userspace, and to my surprise, both sdlcam and fcam-dev seem to work now. We can forget about this one.
Best regards,
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html