started m5484 LITEKIT port
This commit is contained in:
8
BaS_gcc/include/firebee.h
Normal file
8
BaS_gcc/include/firebee.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#ifndef _FIREBEE_H_
|
||||||
|
#define _FIREBEE_H_
|
||||||
|
|
||||||
|
#define BOOTFLASH_BASE_ADDRESS 0xE0000000
|
||||||
|
#define BOOTFLASH_SIZE 0x800000
|
||||||
|
#define BOOTFLASH_BAM (BOOTFLASH_SIZE - 1)
|
||||||
|
|
||||||
|
#endif /* _FIREBEE_H_ */
|
||||||
8
BaS_gcc/include/m5484l.h
Normal file
8
BaS_gcc/include/m5484l.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#ifndef _M5484L_H_
|
||||||
|
#define _M5484L_H_
|
||||||
|
|
||||||
|
#define BOOTFLASH_BASE_ADDRESS 0xE0000000
|
||||||
|
#define BOOTFLASH_SIZE 0x400000 /* LITEKIT has 4Mb flash */
|
||||||
|
#define BOOTFLASH_BAM (BOOTFLASH_SIZE - 1)
|
||||||
|
|
||||||
|
#endif /* _M5484L_H_ */
|
||||||
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "MCF5475.h"
|
#include "MCF5475.h"
|
||||||
|
#include "firebee.h"
|
||||||
#include "startcf.h"
|
#include "startcf.h"
|
||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
#include "sysinit.h"
|
#include "sysinit.h"
|
||||||
@@ -337,11 +338,11 @@ void init_fbcs()
|
|||||||
xprintf("FlexBus chip select registers initialization: ");
|
xprintf("FlexBus chip select registers initialization: ");
|
||||||
|
|
||||||
/* Flash */
|
/* Flash */
|
||||||
MCF_FBCS0_CSAR = 0xE0000000; /* flash base address */
|
MCF_FBCS0_CSAR = BOOTFLASH_BASE_ADDRESS;/* flash base address */
|
||||||
MCF_FBCS0_CSCR = MCF_FBCS_CSCR_PS_16 | /* 16 bit word access */
|
MCF_FBCS0_CSCR = MCF_FBCS_CSCR_PS_16 | /* 16 bit word access */
|
||||||
MCF_FBCS_CSCR_WS(6)| /* 6 Waitstates */
|
MCF_FBCS_CSCR_WS(6)| /* 6 Waitstates */
|
||||||
MCF_FBCS_CSCR_AA; /* */
|
MCF_FBCS_CSCR_AA; /* */
|
||||||
MCF_FBCS0_CSMR = MCF_FBCS_CSMR_BAM_8M |
|
MCF_FBCS0_CSMR = BOOTFLASH_BAM |
|
||||||
MCF_FBCS_CSMR_V; /* 8 MByte on */
|
MCF_FBCS_CSMR_V; /* 8 MByte on */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user