mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Purdie <rpurdie@rpsys.net>
To: Pavel Machek <pavel@ucw.cz>, Russell King <rmk@arm.linux.org.uk>
Cc: lenz@cs.wisc.edu, kernel list <linux-kernel@vger.kernel.org>,
	linux@dominikbrodowski.net, Andrew Morton <akpm@osdl.org>
Subject: Re: [patch] collie: fix missing pcmcia bits
Date: Mon, 06 Mar 2006 17:08:54 +0000	[thread overview]
Message-ID: <1141664934.6524.62.camel@localhost.localdomain> (raw)
In-Reply-To: <20060306132329.GA1737@elf.ucw.cz>

On Mon, 2006-03-06 at 14:23 +0100, Pavel Machek wrote:
> Hi!
> 
> This adds missing bits of collie (sharp sl-5500) PCMCIA support and
> MFD support.
>  
> Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>

> ---
> diff --git a/arch/arm/mach-sa1100/collie.c b/arch/arm/mach-sa1100/collie.c
> index 6888816..ce2b479 100644
> --- a/arch/arm/mach-sa1100/collie.c
> +++ b/arch/arm/mach-sa1100/collie.c
> @@ -40,6 +40,7 @@
>  #include <asm/hardware/scoop.h>
>  #include <asm/mach/sharpsl_param.h>
>  #include <asm/hardware/locomo.h>
> +#include <asm/arch/mcp.h>
>  
>  #include "generic.h"
>  
> @@ -66,6 +67,32 @@ struct platform_device colliescoop_devic
>  	.resource	= collie_scoop_resources,
>  };
>  
> +static struct scoop_pcmcia_dev collie_pcmcia_scoop[] = {
> +{
> +       .dev        = &colliescoop_device.dev,
> +       .irq        = COLLIE_IRQ_GPIO_CF_IRQ,
> +       .cd_irq     = COLLIE_IRQ_GPIO_CF_CD,
> +       .cd_irq_str = "PCMCIA0 CD",
> +},
> +};
> +
> +static struct scoop_pcmcia_config collie_pcmcia_config = {
> +	.devs         = &collie_pcmcia_scoop[0],
> +	.num_devs     = 1,
> +};
> +
> +
> +static struct mcp_plat_data collie_mcp_data = {
> +	.mccr0          = MCCR0_ADM,
> +	.sclk_rate      = 11981000,
> +};
> +
> +
> +static struct sa1100_port_fns collie_port_fns __initdata = {
> +	.set_mctrl	= collie_uart_set_mctrl,
> +	.get_mctrl	= collie_uart_get_mctrl,
> +};
> +
>  
>  static struct resource locomo_resources[] = {
>  	[0] = {
> @@ -153,12 +246,14 @@ static void __init collie_init(void)
>  		 PPC_LDD6 | PPC_LDD7 | PPC_L_PCLK | PPC_L_LCLK | PPC_L_FCLK | PPC_L_BIAS | \
>  	 	 PPC_TXD1 | PPC_TXD2 | PPC_RXD2 | PPC_TXD3 | PPC_TXD4 | PPC_SCLK | PPC_SFRM );
>  
>  	PSDR = ( PPC_RXD1 | PPC_RXD2 | PPC_RXD3 | PPC_RXD4 );
>  
>  	GAFR |= GPIO_32_768kHz;
>  	GPDR |= GPIO_32_768kHz;
>  	TUCR  = TUCR_32_768kHz;
>  
> +	platform_scoop_config = &collie_pcmcia_config;
> +
>  	ret = platform_add_devices(devices, ARRAY_SIZE(devices));
>  	if (ret) {
>  		printk(KERN_WARNING "collie: Unable to register LoCoMo device\n");
> @@ -166,6 +302,7 @@ static void __init collie_init(void)
>  
>  	sa11x0_set_flash_data(&collie_flash_data, collie_flash_resources,
>  			      ARRAY_SIZE(collie_flash_resources));
> +	sa11x0_set_mcp_data(&collie_mcp_data);
>  
>  	sharpsl_save_param();
>  }
> 
> 


      reply	other threads:[~2006-03-06 17:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-05 13:53 Pavel Machek
2006-03-05 18:23 ` Richard Purdie
2006-03-06 13:23   ` Pavel Machek
2006-03-06 17:08     ` Richard Purdie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1141664934.6524.62.camel@localhost.localdomain \
    --to=rpurdie@rpsys.net \
    --cc=akpm@osdl.org \
    --cc=lenz@cs.wisc.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@dominikbrodowski.net \
    --cc=pavel@ucw.cz \
    --cc=rmk@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome