diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-12 18:03:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-12 18:03:56 +0000 |
commit | 303ccdfdf00ec6d9bdc7b369b5e8338e4a9742bf (patch) | |
tree | e7a3a394109ab84701581cc257419ae344b2d866 /nuttx/arch/arm/src/imx/imx_boot.c | |
parent | 0162245b27eb72c2973c587e5ea59317b43b88bd (diff) | |
download | px4-nuttx-303ccdfdf00ec6d9bdc7b369b5e8338e4a9742bf.tar.gz px4-nuttx-303ccdfdf00ec6d9bdc7b369b5e8338e4a9742bf.tar.bz2 px4-nuttx-303ccdfdf00ec6d9bdc7b369b5e8338e4a9742bf.zip |
Clean up clocking
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1698 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/imx/imx_boot.c')
-rw-r--r-- | nuttx/arch/arm/src/imx/imx_boot.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/imx/imx_boot.c b/nuttx/arch/arm/src/imx/imx_boot.c index 88eb341ef..a463dcf34 100644 --- a/nuttx/arch/arm/src/imx/imx_boot.c +++ b/nuttx/arch/arm/src/imx/imx_boot.c @@ -71,17 +71,42 @@ extern uint32 _vector_end; /* End+1 of vector block */ * Private Variables ************************************************************************************/ +/* Mapping of the external memory regions will probably have to be made board + * specific. + */ + static const struct section_mapping_s section_mapping[] = { { IMX_PERIPHERALS_PSECTION, IMX_PERIPHERALS_VSECTION, IMX_PERIPHERALS_MMUFLAGS, IMX_PERIPHERALS_NSECTIONS}, { IMX_FLASH_PSECTION, IMX_FLASH_VSECTION, IMX_FLASH_MMUFLAGS, IMX_FLASH_NSECTIONS}, + { IMX_CS1_PSECTION, IMX_CS1_VSECTION, + IMX_PERIPHERALS_MMUFLAGS, IMX_CS1_NSECTIONS}, + { IMX_CS2_PSECTION, IMX_CS2_VSECTION, + IMX_PERIPHERALS_MMUFLAGS, IMX_CS2_NSECTIONS}, + { IMX_CS3_PSECTION, IMX_CS3_VSECTION, + IMX_PERIPHERALS_MMUFLAGS, IMX_CS3_NSECTIONS}, + { IMX_CS4_PSECTION, IMX_CS4_VSECTION, + IMX_PERIPHERALS_MMUFLAGS, IMX_CS4_NSECTIONS}, + { IMX_CS5_PSECTION, IMX_CS5_VSECTION, + IMX_PERIPHERALS_MMUFLAGS, IMX_CS5_NSECTIONS}, }; #define NMAPPINGS (sizeof(section_mapping) / sizeof(struct section_mapping_s)) /************************************************************************************ + * Public Function Prototypes + ************************************************************************************/ + +/* All i.MX architectures must provide the following entry point. This entry point + * is called early in the intitialization -- after all memory has been configured + * and mapped but before any devices have been initialized. + */ + +extern void imx_boardinitialize(void); + +/************************************************************************************ * Private Functions ************************************************************************************/ @@ -181,4 +206,8 @@ void up_boot(void) */ up_copyvectorblock(); + + /* Perform board-specific initialiation */ + + imx_boardinitialize(); } |