On 03/25/2013 09:50 PM, Beniamino Galvani wrote:
> 2013/3/25 Jakub Jermar <[email protected]>:
>> Nice achievement so far. As of now, I guess we have several machines in
>> this state (no serial user input/output): bbxm, bbone, malta and now
>> Raspberry Pi. So solving the serial user input output is a generic issue
>> and all the above machines will benefit from it, including those that
>> normally use a graphics framebuffer and keyboard.
> 
> In the case of the Raspberry it should be quite easy to introduce some
> support for the framebuffer and use it as output device; the serial could
> be used only for the input. If I remember well, this is the same solution
> adopted on GTA02.
> In any case, I think that having a generic mechanism for serial I/O
> could be very convenient.

What I had in mind was using the serial for both user input / output.
It's good for testing and the manipulation with the device is easier. I
would like to have this option also on ia32/amd64 and all the non-x86
servers. Framebuffer and keyboard is nice, but imho the serial is more
important for these little devices.

>>> The UART driver was copied from ARM926 with minor changes and I think
>>> that we should evaluate if it's possible to merge the two.
>>
>> Is this the same device? Or at least a compatible one? I am very much in
>> favor of unifying the drivers when it makes sense. On the other hand,
>> should it be a completely different device, we better keep the drivers
>> separate.
> 
> Yes, it's a Primecell PL011 UART in both cases. I created a copy
> because I needed to do some different initializations, in particular
> changing the clock divisor and disabling hw flow control.
> But apart from that, the code is the same. So it should be simple to
> make it generic so that it will be easily reusable by other boards in
> the future.

Ok, so it is simple in this case: one device, one driver.

Cheers,
Jakub

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to