Re: Re: u-boot & uImage on M5282LITE
"Loren A. Linden Levy" <[email protected]> Mon, 14 Apr 2008 16:28:46 -0600
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Organization | University of Colorado |
| Message-ID | <[email protected]> |
Hi Allon, > How to attach to the FPGA? Where is it in memory? Where do you want > it? Which chip select does it use? > Ever done this sort of thing before? > > Each memory-mapped device on the bus shares the same address/data > lines. Not all of the address lines go through - this saves on lots > of lines that would otherwise be ignored in 99% of uses. Instead, the > CPU asserts a chip-select line whenever you are accessing the memory > range occupied by the device. Some devices have programmable chip- > selects, others, you have to use the memory range tied to a specific > chip select. This chip select then goes to the address decode logic > of the device on the bus, to let it know when it is being accessed. > > Looks like you're using CS1, at least in the example above. > > Chapter 12 of the MCF5282 manual describes the chip select registers > (I'm referring to MCF5282UM Rev 2.3) > > The CF allows you to set the base address and size of a device on a > chip-select. > > when you initialize your driver, I am trying to do this when i initialize the driver and when I read back the CSXX memory addresses they all look ok: fpga:Running al test fpga:CSAR5: (400000bc) 0 <--- Where is base address? fpga:CSMR5: (400000c0) 10001 fpga:CSCR5: (400000c4) 3d00 fpga:CSAR6: (400000c8) 0 <--- Where is base address? fpga:CSMR6: (400000cc) 10001 fpga:CSCR6: (400000d0) 3d00 except CSAR. in other words what I set them to is printed back to me except CSAR any thoughts? Should I really be doing this in the boot loader (u-boot)? Am I missing something? The code is attached. Alex -- -- --------------------------------------------- Loren A. Linden Levy Department of Physics 390 UCB University of Colorado Boulder, CO 80309-0390 Tel: 303-735-6146 (CU) / +049 040 8998 4789 (DESY) Fax: 303-492-3352 (CU) / +049 040 8998 4034 (DESY) Cell: 303-332-2768 (U.S.) / +049 (0)151 5496 1831 (Germany) Email: [email protected] url: http://up.colorado.edu/~lindenle _____________________________________________ --------------------------------------------- This email has been cryptographically signed. Search for "lindenle" at pgp.mit.edu to obtain my public key which can be used to verify the authenticity of this message. _____________________________________________ ---------------------------------------------
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIA9qhlZX6YS+3ZksRAkSaAJwNUruzR2WIrD+1nJ492hghDkdRFwCfWTm5 5WQ9PeghoR8f6EmGs2vfCAo= =Tj8O -----END PGP SIGNATURE-----