UART ALTERNATIVE FUNCTIONS

2009-04-07
2013-04-15
  • Alexandre Becholey

    Hi,

    First of all thanks for your work, it help me a lot to enable usb on my colibri pxa270! As I already work on this a few days before finding your project, I found that some of GPIO constants have their name changed somewhere between kernel 2.6.26 and 2.6.29 and you don't have to define them as you do in mach/pxa-regs.h, but you just have to include <mach/mfp-pxa27x.h> and rename the UART GPIO you use in the colibri_pin_config struct as follow:

    static unsigned long colibri_pin_config[] __initdata = {
    -    /* !!! UARTS ALTERNATIVE FUNCTIONS NOT DEFINED IN BASE HEADERS !!! */
         /* Full-feature UART */
    -    GPIO10_FFDCD,
    -    GPIO27_FFRTS,
    -    GPIO33_FFDRS,
    -    GPIO34_FFRXD,
    -    GPIO38_FFRI,
    -    GPIO39_FFTXD,
    -    GPIO40_FFDTR,
    -    GPIO100_FFCTS,
    +    GPIO10_FFUART_DCD,
    +    GPIO27_FFUART_RTS,
    +    GPIO33_FFUART_DSR,
    +    GPIO34_FFUART_RXD,
    +    GPIO38_FFUART_RI,
    +    GPIO39_FFUART_TXD,
    +    GPIO40_FFUART_DTR,
    +    GPIO100_FFUART_CTS,

         /* Bluetooth UART */
    -    GPIO42_BTRXD,
    -    GPIO43_BTTXD,
    -    GPIO45_BTRTS,
    +    GPIO42_BTUART_RXD,
    +    GPIO43_BTUART_TXD,
    +    GPIO45_BTUART_RTS,

         /* Standart UART */
    -    GPIO46_STD_RXD,
    -    GPIO47_STD_TXD,
    +    GPIO46_STUART_RXD,
    +    GPIO47_STUART_TXD,

    Best regards,

    Alexandre Becholey

     
    • MinimumLaw

      MinimumLaw - 2009-04-08

      OK!

      Thank you for information. In next patch (i think it was for 2.6.29.2 kernel) this code will bee rewriten.

      Best regards,

      Alex A. Mihaylov
      AKA MinimumLaw

       
    • MinimumLaw

      MinimumLaw - 2009-04-08

      Hm... patch-2.6.29.1-01.diff.gz in download... I think not good idea to make self GPIO functions, if kernel have analogs.
      2.6.29.2 in future, but beautifuly code _MUST_ be NOW ;-)

      Suncerelly,
      Alex A. Mihaylov
      AKA MinimumLaw

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks