linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: notasas@gmail.com (Grazvydas Ignotas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 05/12] omap1: Add 7xx clocks and pin muxes for SPI
Date: Thu, 7 Jan 2010 11:46:23 +0200	[thread overview]
Message-ID: <6ed0b2681001070146x4dbf52d9h406d128ccea826cf@mail.gmail.com> (raw)
In-Reply-To: <20100107001934.21352.83656.stgit@baageli.muru.com>

<snip>

> diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c
> index 23ded2d..17ebb47 100644
> --- a/arch/arm/mach-omap1/devices.c
> +++ b/arch/arm/mach-omap1/devices.c
> @@ -14,6 +14,7 @@
> ?#include <linux/init.h>
> ?#include <linux/platform_device.h>
> ?#include <linux/io.h>
> +#include <linux/spi/spi.h>
>
> ?#include <mach/hardware.h>
> ?#include <asm/mach/map.h>
> @@ -23,6 +24,7 @@
> ?#include <plat/mux.h>
> ?#include <mach/gpio.h>
> ?#include <plat/mmc.h>
> +#include <plat/omap7xx.h>
>
> ?/*-------------------------------------------------------------------------*/
>
> @@ -196,6 +198,38 @@ void __init omap1_init_mmc(struct omap_mmc_platform_data **mmc_data,
>
> ?/*-------------------------------------------------------------------------*/
>
> +/* OMAP7xx SPI support */
> +#if defined(CONFIG_SPI_OMAP_100K) || defined(CONFIG_SPI_OMAP_100K_MODULE)
> +
> +struct platform_device omap_spi1 = {
> + ? ? ? .name ? ? ? ? ? = "omap1_spi100k",
> + ? ? ? .id ? ? ? ? ? ? = 1,
> +};
> +
> +struct platform_device omap_spi2 = {
> + ? ? ? .name ? ? ? ? ? = "omap1_spi100k",
> + ? ? ? .id ? ? ? ? ? ? = 2,
> +};
> +
> +static void omap_init_spi100k(void)
> +{
> + ? ? ? omap_spi1.dev.platform_data = ioremap(OMAP7XX_SPI1_BASE, 0x7ff);
> + ? ? ? if (omap_spi1.dev.platform_data)
> + ? ? ? ? ? ? ? platform_device_register(&omap_spi1);
> +
> + ? ? ? omap_spi2.dev.platform_data = ioremap(OMAP7XX_SPI2_BASE, 0x7ff);
> + ? ? ? ifi (omap_spi2.dev.platform_data)

a typo here?

> + ? ? ? ? ? ? ? platform_device_register(&omap_spi2);
> +}
> +
> +#else
> +static inline void omap_init_spi100k(void)
> +{
> +}
> +#endif
> +
> +/*-------------------------------------------------------------------------*/
> +
> ?#if defined(CONFIG_OMAP_STI)
>
> ?#define OMAP1_STI_BASE ? ? ? ? 0xfffea000

  reply	other threads:[~2010-01-07  9:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07  0:18 [PATCH 00/12] Omap fixes for 2.6.33-rc3 Tony Lindgren
2010-01-07  0:18 ` [PATCH 01/12] omap: McBSP: Fix possible port lockout Tony Lindgren
     [not found]   ` <4B4767DE.4070801@ru.mvista.com>
2010-01-10 19:55     ` Janusz Krzysztofik
2010-01-07  0:18 ` [PATCH 02/12] omap: gpio: Simultaneously requested rising and falling edge Tony Lindgren
2010-01-07  0:19 ` [PATCH 03/12] omap: &&/|| confusion in iommu_put() Tony Lindgren
2010-01-07  0:19 ` [PATCH 04/12] omap: Remove uninitialized warning for gpio.c Tony Lindgren
2010-01-07  0:19 ` [PATCH 05/12] omap1: Add 7xx clocks and pin muxes for SPI Tony Lindgren
2010-01-07  9:46   ` Grazvydas Ignotas [this message]
2010-01-07 19:15     ` Tony Lindgren
2010-01-09 18:02       ` Cory Maccarrone
2010-01-07  0:19 ` [PATCH 06/12] omap1: Fix compile for omap1_bl.c Tony Lindgren
2010-01-07  0:19 ` [PATCH 07/12] omap2/3: make serial_in_override() address the right uart port Tony Lindgren
2010-01-07  0:20 ` [PATCH 08/12] omap2/3: ZOOM: Correcting key mapping for few keys Tony Lindgren
2010-01-07  0:20 ` [PATCH 09/12] omap3: add missing parentheses Tony Lindgren
2010-01-07  0:20 ` [PATCH 10/12] " Tony Lindgren
2010-01-07  0:20 ` [PATCH 11/12] omap3: Fix booting if package is uninitialized Tony Lindgren
2010-01-07  0:20 ` [PATCH 12/12] omap3: EVM: Choose OMAP_PACKAGE_CBB Tony Lindgren

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=6ed0b2681001070146x4dbf52d9h406d128ccea826cf@mail.gmail.com \
    --to=notasas@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).