[PATCH v2] ARM: pxa: PalmZ72: Add OV9640 camera support

Bjørn Forsman bjorn.forsman at gmail.com
Sat Jan 15 11:37:08 EST 2011


Hi,

On 15 January 2011 02:17, Marek Vasut <marek.vasut at gmail.com> wrote:
> Rework of patch from 2009:
> PalmZ72: Add support for OV9640 camera sensor
>
> Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
> ---
> v2: Use gpio_request_array()/gpio_free_array() array
>
>  arch/arm/mach-pxa/include/mach/palmz72.h |    5 +
>  arch/arm/mach-pxa/palmz72.c              |  127 ++++++++++++++++++++++++++++++
>  2 files changed, 132 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/include/mach/palmz72.h b/arch/arm/mach-pxa/include/mach/palmz72.h
> index 2bbcf70..0d4700a 100644
> --- a/arch/arm/mach-pxa/include/mach/palmz72.h
> +++ b/arch/arm/mach-pxa/include/mach/palmz72.h

[snip]

> +static int palmz72_camera_power(struct device *dev, int power)
> +{
> +       gpio_set_value(GPIO_NR_PALMZ72_CAM_PWDN, !power);
> +       mdelay(50);
> +       return 0;
> +}
> +
> +static int palmz72_camera_reset(struct device *dev)
> +{
> +       gpio_set_value(GPIO_NR_PALMZ72_CAM_RESET, 1);
> +       mdelay(50);
> +       gpio_set_value(GPIO_NR_PALMZ72_CAM_RESET, 0);
> +       mdelay(50);
> +       return 0;
> +}

(Sorry if these are stupid newbie-questions.)

Is the entire kernel blocked during the above mdelay()s or
just some kernel thread? (Or: will this add like 100ms or 150ms
to boot time?)

Can mdelay() be replaced with something non-blocking?

[snip]

Best regards,
Bjørn Forsman



More information about the linux-arm-kernel mailing list