LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* hoe to define CPM_MAP_ADDR ?
@ 2006-08-16  3:24 jie han
  2006-08-16  3:49 ` Liu Dave-r63238
  0 siblings, 1 reply; 2+ messages in thread
From: jie han @ 2006-08-16  3:24 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2182 bytes --]


I am trying to take a working embedded linux system from kernel 2.4 to 
2.6. The hardware is a custom board using a MPC8270 processor.
The working system uses u-boot 1.1.1 with linux kernel 2.4.24.
I am using the same u-boot and I am trying to port linux kernel 2.6.15 
to our platform. I just wonder hwo to define CPM_MAP_ADDR to my config file
at /arch/ppc/platforms/olt8270.h,thsi show file context as follow

#ifndef __OLT8270_PLATFORM
#define __OLT8270_PLATFORM

//#define CPM_MAP_ADDR  ((uint)0xf0000000)
#define IMAP_ADDR  ((uint)0xf0000000)

#define BOOTROM_RESTART_ADDR ((uint)0xfff00100)

/* For our show_cpuinfo hooks. */
#define CPUINFO_VENDOR  "Ocean Broadband Ltd"
#define CPUINFO_MACHINE  "OLT8270 PowerPC"

/* A Board Information structure that is given to a program when
 * prom starts it up.
 */
typedef struct bd_info {
 unsigned long bi_memstart; /* Memory start address */
 unsigned long bi_memsize;     /* Memory (end) size in bytes */
 unsigned long bi_flashstart; /* start of FLASH memory */
 unsigned long bi_flashsize; /* size  of FLASH memory */
 unsigned long bi_flashoffset; /* reserved area for startup monitor */
    unsigned long   bi_sramstart;   /* start of SRAM memory */
    unsigned long   bi_sramsize;    /* size of SRAM memory */

 unsigned long bi_immr;     /* IMMR when called from boot rom */

 unsigned long   bi_bootflags;   /* boot flag (for Lynx OS) */

 unsigned long   bi_ip_addr;     /* IP Address */
 unsigned char   bi_enetaddr[6]; /* Ethernet address */
 unsigned short  bi_ethspeed;    /* Ethernet speed in Mbps */

 unsigned long bi_intfreq;     /* Internal Freq, in Hz */
 unsigned long bi_busfreq;     /* Bus Freq, in MHz */
 unsigned long bi_cpmfreq;     /* CPM Freq, in MHz */
 unsigned long bi_brgfreq;     /* BRG Freq, in MHz */
 unsigned long bi_sccfreq;     /* SCC Freq, in MHz */
 unsigned long bi_vco;      /* VCO Out from PLL */
 unsigned long bi_baudrate; /* Default console baud rate */
} bd_t;

extern bd_t m8xx_board_info;

#endif  /* __OLT8270_PLATFORM */



Sincerely,


Jie


 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

[-- Attachment #2: Type: text/html, Size: 2471 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-16  3:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16  3:24 hoe to define CPM_MAP_ADDR ? jie han
2006-08-16  3:49 ` Liu Dave-r63238

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox