Skip to contentSkip to conversation

where does kernel config MPC860 memory controller BRx register?

DISCUSSION Luo Yanjun 3 participants 3 messages Sep 29, 2002

lore
Share & tools
lore

Luo Yanjun

author
#0 lore raw

Hi,
I want to use CS3 of MPC860 for some devices, so I need config BR3 register, I don't know where to config it, I have not find BR0's config code. Where can I find BR0's config code? If I find that, I think I can place my code there.

Sorry, I'm new to linux kernel, anybody can help me? Thanks in advance.

Luo Yanjun.
09/29/2002.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

I want to use CS3 of MPC860 for some devices, so I need config BR3 register, I don't know where to config it, I have not find BR0's config code. Where can I find BR0's config code? If I find that, I think I can place my code there.

The initialziation of the memory controller (and things like testing and sizing available memory) have to be done by the firmware on your board, so look in your firmware sources.

For additional chip selects, you can of course add the necessary BRx/ORx initialization in the init function of the device driver that will be accessing this hardware.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] I think it's a new feature. Don't tell anyone it was an accident. :-)
-- Larry Wall on s/foo/bar/eieio in <[email protected]>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 9 lines · Wolfgang Denk
Quoted 6 lines · In message <[email protected]> you wrote:

I want to use CS3 of MPC860 for some devices, so I need config BR3 register, I don't know where to config it, I have not find BR0's config code. Where can I find BR0's config code? If I find that, I think I can place my code there.

Quoted 7 lines

The initialziation of the memory controller (and things like testing and sizing available memory) have to be done by the firmware on your board, so look in your firmware sources.

For additional chip selects, you can of course add the necessary BRx/ORx initialization in the init function of the device driver that will be accessing this hardware.

Here's some example code for CS5 device driver init

http://www.embeddedlinuxinterfacing.com/sourcecode.shtml

Look at chapter 9,
helloworldbit_rpxcllf.c

You also need to be looking at the MPC860UM (User manual) at the same time.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/