This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: [ Spam Mail ] Re: [ Spam Mail ] Re: How can I initial the flashs of sst29vfxxx and intel_strata at do_flash_init() ? (This message is to be blocked by code: bkfkact590) (This message is to be blocked by code: bkfkact590)
Hi Andrew,
Thanks for your help.
The following is my powerpc_px_flash_sst.c
///////////////////////////////// powerpc_px_flash_sst.c
////////////////////////////////////////////////////////////////////////////
#include <pkgconf/devs_flash_powerpc_px.h>
#if (CYGNUM_DEVS_FLASH_POWERPC_PX_SIZE == 512)
#define CYGPKG_DEVS_FLASH_SST_39VF040
#define CYGNUM_FLASH_INTERLEAVE (1)
#define CYGNUM_FLASH_SERIES (1)
#define CYGNUM_FLASH_BASE (0xFFF00000u)
#include "cyg/io/flash_sst_39vfxxx.inl"
#elif (CYGNUM_DEVS_FLASH_POWERPC_PX_SIZE == 1024)
#define CYGPKG_DEVS_FLASH_SST_39VF080
#define CYGNUM_FLASH_INTERLEAVE (1)
#define CYGNUM_FLASH_SERIES (1)
#define CYGNUM_FLASH_BASE (0xFFF00000u)
#include "cyg/io/flash_sst_39vfxxx.inl"
#elif (CYGNUM_DEVS_FLASH_POWERPC_PX_SIZE == 2048)
#define CYGPKG_DEVS_FLASH_SST_39VF016
#define CYGNUM_FLASH_INTERLEAVE (1)
#define CYGNUM_FLASH_SERIES (1)
#define CYGNUM_FLASH_BASE (0xFFF00000u)
#include "cyg/io/flash_sst_39vfxxx.inl"
#endif
static const cyg_flash_block_info_t cyg_flash_sst_block_info[1] = {
{ FLASH_BLOCK_SIZE, FLASH_NUM_REGIONS * CYGNUM_FLASH_SERIES }
};
CYG_FLASH_DRIVER(cyg_flash_sst_flashdev,
&cyg_sst_funs,
0, // Flags
CYGNUM_FLASH_BASE, // Start
CYGNUM_FLASH_BASE + (FLASH_BLOCK_SIZE * FLASH_NUM_REGIONS *
CYGNUM_FLASH_SERIES) - 1, // End
1, // Number of block infos
cyg_flash_sst_block_info,
NULL // priv
);
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
> Could i see your powerpc_px_flash_sst.c
>
> Andrew
>
The following is the packages announced in ecos.db
Q1 : Can the flash packages be defined in the different CDL file ??
///////////////////////////////// ecos.db
////////////////////////////////////////////////////////////////////////////
package CYGPKG_DEVS_FLASH_SST_POWERPC_PX {
alias { "SST39VF040 FLASH memory support for Alpha pX PowerPC 8245 board"
flash_sst_px }
directory devs/flash/powerpc/px
script flash_sst_powerpc_px.cdl
hardware
description "
This package contains hardware support for SST39VF040 FLASH
memory
on the Alpha pX (PowerPC 8245) board."
}
package CYGPKG_DEVS_FLASH_STRATA_POWERPC_PX {
alias { "Intel STRATA 28F128 FLASH memory support for Alpha pX PowerPC
8245 board" flash_strata_px }
directory devs/flash/powerpc/px
script flash_strata_powerpc_px.cdl
hardware
description "
This package contains hardware support for Intel 28F128 FLASH
memory
on the Alpha pX (PowerPC 8245) board."
}
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
Thank you~~
Steven Cheng
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss