From: jie han <jiehanca@yahoo.com.cn>
To: linuxppc-embedded@ozlabs.org
Subject: hoe to define CPM_MAP_ADDR ?
Date: Tue, 15 Aug 2006 20:24:19 -0700 (PDT) [thread overview]
Message-ID: <20060816032420.3004.qmail@web15110.mail.cnb.yahoo.com> (raw)
[-- 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 --]
next reply other threads:[~2006-08-16 3:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-16 3:24 jie han [this message]
2006-08-16 3:49 ` hoe to define CPM_MAP_ADDR ? Liu Dave-r63238
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060816032420.3004.qmail@web15110.mail.cnb.yahoo.com \
--to=jiehanca@yahoo.com.cn \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox