[PATCH 2/2] mem: convert to DEVFS_MEM_BAREBOX_ONLY for freescale-mx25-3-stack/pcm037/pvm038

Baruch Siach baruch at tkos.co.il
Wed Nov 17 09:09:22 EST 2010


Hi Jean-Christophe,

On Wed, Nov 17, 2010 at 02:59:25PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>  arch/arm/boards/freescale-mx25-3-stack/3stack.c |   35 ++++++++---------------
>  arch/arm/boards/pcm037/pcm037.c                 |   33 +++++++--------------
>  arch/arm/boards/pcm038/pcm038.c                 |   23 ++++-----------
>  3 files changed, 29 insertions(+), 62 deletions(-)
> 
> diff --git a/arch/arm/boards/freescale-mx25-3-stack/3stack.c b/arch/arm/boards/freescale-mx25-3-stack/3stack.c
> index cb9ce79..434bd7f 100644
> --- a/arch/arm/boards/freescale-mx25-3-stack/3stack.c
> +++ b/arch/arm/boards/freescale-mx25-3-stack/3stack.c
> @@ -113,8 +113,14 @@ static struct fec_platform_data fec_info = {
>  	.phy_addr	= 1,
>  };
>  
> -static struct resource sdram0_dev_resources[] = {
> +static struct resource sdram_dev_resources[] = {

I guess mem_dev_resources or ram_dev_resources are better names for this 
struct now, since the "sram0" is not SDRAM.

>  	[0] = {
> +		.name	= "sram0",
> +		.start	= 0x78000000,
> +		.size	= 128 * 1024,
> +		.flags	= DEVFS_RDWR | DEVFS_MEM_BAREBOX_ONLY,
> +	},
> +	[1] = {
>  		.name	= "ram0",
>  		.start	= IMX_SDRAM_CS0,
>  #if defined CONFIG_FREESCALE_MX25_3STACK_SDRAM_64MB_DDR2

[snip]

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the barebox mailing list