Re: Re: u-boot & uImage on M5282LITE

Greg Ungerer <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
Hi Allon,

Allon Stern wrote:
> On Feb 27, 2008, at 5:52 PM, Loren A. Linden Levy wrote:
>> Hi Allon et. al,
>> So we are planning on using this board as a clock and slow controller
>> for a new detector in our experiment. I need to be able to talk to an
>> FPGA on the board that this will be connected to set thresholds
>> etc. Is there a way to do this in uClinux, I have an example in RTOS
>> Quadros, so I think I know what the memory addresses are. Thanks for
>> any input and or references.
>>
>> Alex
> 
> Almost certainly.
> You'll probably want to write a device driver to expose the 
> functionality of your FPGA to the uClinux world.
> I just managed to get interrupts working on my board. It's important to 
> note that the IRQ lines broken out on the board are NOT what I would 
> have expected; they're actually GPIOs that can be set up as level or 
> edge triggered IRQs using the EPORT module.
> 
> And you have to unmask the interrupt in the interrupt controller 
> registers as well. Why this isn't done when you register an IRQ in linux 
> I have no idea. Anyone with more knowledge, please speak up :)

The one sticking point I had in the early days was handling
the auto-vectored interrupts that some devices on M68k/ColdFire
use. So where you program the device with the vector it will
use (in other words it is completely software settable).

It is probably the case we could handle this more easily now
with appropriate request_irq() flags, but I haven't revisited
this recently.

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [email protected]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.