All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Tony Lindgren <tony@atomide.com>
Cc: linux-arm-kernel@lists.arm.linux.org.uk,
	linux-omap@vger.kernel.org,
	Syed Mohammed Khasim <x0khasim@ti.com>,
	Karthik Dasu <karthik-dp@ti.com>,
	Adrian Hunter <ext-adrian.hunter@nokia.com>
Subject: Re: [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support
Date: Sun, 5 Oct 2008 08:01:03 +0000	[thread overview]
Message-ID: <20081005080103.GA12446@muru.com> (raw)
In-Reply-To: <1223035779-26306-2-git-send-email-tony@atomide.com>

On Fri, Oct 03, 2008 at 03:09:35PM +0300, Tony Lindgren wrote:
> Add minimal omap3430 support based on earlier patches from
> Syed Mohammed Khasim. Also merge in omap34xx SRAM support
> from Karthik Dasu and use consistent naming for sram init
> functions.
> 
> Also do following changes that make 34xx support usable:
> 
> - Rename IRQ_SIR_IRQ to INTCPS_SIR_IRQ and define it locally
>   in entry-macro.S
> 
> - Update mach-omap2/io.c to support 2420, 2430, and 34xx
> 
> - Also merge in 34xx GPMC changes to add fields wr_access and
>   wr_data_mux_bus from Adrian Hunter
> 
> - Remove memory initialization call omap2_init_memory() until
>   until more generic memory initialization patches are posted.
>   It's OK to rely on bootloader initialization until then.
> 
> Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
> Signed-off-by: Karthik Dasu<karthik-dp@ti.com>
> Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>

<snip>

> --- a/arch/arm/plat-omap/sram.c
> +++ b/arch/arm/plat-omap/sram.c
> @@ -271,7 +271,7 @@ int __init omap1_sram_init(void)
>  #define omap1_sram_init()	do {} while (0)
>  #endif
>  
> -#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
> +#if defined(CONFIG_ARCH_OMAP2)
>  
>  static void (*_omap2_sram_ddr_init)(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
>  			      u32 base_cs, u32 force_unlock);
> @@ -352,60 +352,41 @@ static inline int omap243x_sram_init(void)
>  
>  #ifdef CONFIG_ARCH_OMAP3
>  
> -static u32 (*_omap2_sram_reprogram_gpmc)(u32 perf_level);
> -u32 omap2_sram_reprogram_gpmc(u32 perf_level)
> -{
> -	if (!_omap2_sram_reprogram_gpmc)
> +static u32 (*_omap3_sram_configure_core_dpll)(u32 sdrc_rfr_ctrl,
> +					      u32 sdrc_actim_ctrla,
> +					      u32 sdrc_actim_ctrlb,
> +					      u32 m2);
> +u32 omap3_configure_core_dpll(u32 sdrc_rfr_ctrl, u32 sdrc_actim_ctrla,
> +			      u32 sdrc_actim_ctrlb, u32 m2)
> + {
> +	if (!_omap3_sram_configure_core_dpll)
>  		omap_sram_error();
>  
> -	return _omap2_sram_reprogram_gpmc(perf_level);
> -}
> -
> -static u32 (*_omap2_sram_configure_core_dpll)(u32 m, u32 n,
> -						u32 freqsel, u32 m2);
> -u32 omap2_sram_configure_core_dpll(u32 m, u32 n, u32 freqsel, u32 m2)
> -{
> -	if (!_omap2_sram_configure_core_dpll)
> -		omap_sram_error();
> -
> -	return _omap2_sram_configure_core_dpll(m, n, freqsel, m2);
> -}
> +	return _omap3_sram_configure_core_dpll(sdrc_rfr_ctrl,
> +					       sdrc_actim_ctrla,
> +					       sdrc_actim_ctrlb, m2);
> + }

Looks like there are at least some formatting issues with the sram code
above. Will check and repost this patch on Monday.

Tony


  parent reply	other threads:[~2008-10-05  8:01 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-03 12:09 [PATCH 0/0] Add minimal omap34xx support Tony Lindgren
2008-10-03 12:09 ` [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support Tony Lindgren
2008-10-03 12:09   ` [PATCH 02/05] ARM: OMAP3: Add minimal Beagle board support Tony Lindgren
2008-10-03 12:09     ` [PATCH 03/05] ARM: OMAP3: Add Beagle defconfig Tony Lindgren
2008-10-03 12:09       ` [PATCH 04/05] ARM: OMAP2: Add support for the Gumstix Overo board (rev 3) Tony Lindgren
2008-10-03 12:09         ` [PATCH 05/05] ARM: OMAP2: defconfig " Tony Lindgren
2008-10-03 12:50         ` [PATCH 04/05] ARM: OMAP2: Add support " Tony Lindgren
2008-10-06 14:38           ` Tony Lindgren
2008-10-08  8:21       ` [PATCH 03/05] ARM: OMAP3: Add Beagle defconfig, v2 Tony Lindgren
2008-10-09 14:51     ` [PATCH 02/05] ARM: OMAP3: Add minimal Beagle board support Russell King - ARM Linux
2008-10-10  8:51       ` Tony Lindgren
2008-10-05  8:01   ` Tony Lindgren [this message]
2008-10-06 14:35     ` [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support Tony Lindgren
2008-10-08  8:19   ` [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support, v2 Tony Lindgren
2008-10-09 14:47   ` [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support Russell King - ARM Linux
2008-10-09 15:09     ` Tony Lindgren
2008-10-03 15:52 ` [PATCH 0/0] Add minimal omap34xx support twebb
2008-10-04  7:05   ` Tony Lindgren
2008-10-04 12:42     ` twebb
2008-10-04 20:37       ` Felipe Balbi
2008-10-09 14:54     ` Russell King - ARM Linux
2008-10-09 15:17       ` Tony Lindgren
2008-10-10  7:32         ` Russell King - ARM Linux
2008-10-10  9:15           ` [PATCH] ARM: OMAP3: Add basic board support for OMAP LDP (Re: [PATCH 0/0] Add minimal omap34xx support) Tony Lindgren
2008-10-10  9:25             ` [PATCH] ARM: OMAP3: Add default kernel config " Tony Lindgren
2008-10-10 11:35               ` git pull request for minimal omap3 support one more time Tony Lindgren
2008-10-13 13:32                 ` Russell King - ARM Linux
2008-10-14 17:19                   ` Tony Lindgren
2008-10-14 18:51                     ` Russell King - ARM Linux
2008-10-14 20:35                       ` Tony Lindgren
2008-10-14 20:55                         ` Tony Lindgren
2008-10-15  6:02                     ` Jarkko Nikula
2008-10-15 18:34                       ` Tony Lindgren
2008-10-08  7:50 ` git pull request for minimal omap3 support (Re: [PATCH 0/0] Add minimal omap34xx support) Tony Lindgren
2008-10-08  8:12   ` Tony Lindgren
2008-10-08 14:58     ` 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=20081005080103.GA12446@muru.com \
    --to=tony@atomide.com \
    --cc=ext-adrian.hunter@nokia.com \
    --cc=karthik-dp@ti.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-omap@vger.kernel.org \
    --cc=x0khasim@ti.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.