Re: Raspberry Pi support for Rev-2 & BL

Markus Dolze <[email protected]> Tue, 22 Jan 2013 20:06:05 +0100
Newsgroups gmane.comp.sysutils.lcdproc
Message-ID <[email protected]>
Hi,

On 18.01.2013 07:32, Markus Dolze wrote:
> On 18.01.2013 02:48, paul_c wrote:
>>
>> I used an early snippet of code to map the gpio in to memory. If the 
>> current references suggest that malloc is unnecessary, then make the 
>> change now. According to `man getpagesize' "Portable applications 
>> should employ sysconf(_SC_PAGESIZE)" as it has been labeled LEGACY and 
>> is architecture dependant in Linux - Either method (currently) works on 
>> a Pi and returns 4096 as expected.
> I will do and test this.
>
> Additionally I am not sure if a whole 4 KB page needs to be mapped as we
> only access a register space of ~200 bytes. If using MAP_FIXED option,
> it has to be an exact multiple of the page size, but it may not be
> necessary otherwise. I will give it a try, too.

Tested both changes and they do work.

>>
>> Documentation is not my strong point and I tend to write based on the 
>> assumption that the reader knows his/her way round source code.
> I will take care of this, now that I have enough understanding of the
> GPIO usage on the Pi (GPIO signal name vs. pin header numbers, different
> revision pin out, etc).

Done this.

There is one point left I would like to know your opinion about:

The default pin for driving the backlight is GPIO28 which is routed to
P5. As P5 is not available on Rev 1 boards and not populated on Rev 2
boards, I would like to assign the default pin to a GPIO line available
on P1 - currently I prefer GPIO17 which is P1-11.

Any objections?

Regards,
Markus

_______________________________________________
LCDproc mailing list
[email protected]
http://lists.omnipotent.net/mailman/listinfo/lcdproc
lcdproc-hd44780_rpi-rev6.zip (application/zip, 8.4 KB) - not displayed