AnsweredAssumed Answered

BF537 SPORT0 Register Mappings (2011r1)

Question asked by mattmacdonald on Oct 3, 2012
Latest reply on Oct 4, 2012 by mattmacdonald

Good day!

 

I am wondering how I might change some of the port mappings for SPORT0 on the BF537.  Presently SPORT0 is mapped as follows (from portmux.h):

 

#define P_SPORT0_RSCLK    (P_DEFINED | P_IDENT(PORT_PJ6) | P_FUNCT(0))

#define P_SPORT0_RFS    (P_DEFINED | P_IDENT(PORT_PJ7) | P_FUNCT(0))

#define P_SPORT0_TSCLK    (P_DEFINED | P_IDENT(PORT_PJ9) | P_FUNCT(0))

#define P_SPORT0_TFS    (P_DEFINED | P_IDENT(PORT_PJ10) | P_FUNCT(0))

 

What I would like to do is swap P_SPORT0_RSCLK and P_SPORT0_TSCLK, as well as swap P_SPORT0_RFS and P_SPORT0_TFS, so that the ports would map like this:

 

 

#define P_SPORT0_RSCLK    (P_DEFINED | P_IDENT(PORT_PJ9) | P_FUNCT(0))

#define P_SPORT0_RFS    (P_DEFINED | P_IDENT(PORT_PJ10) | P_FUNCT(0))

#define P_SPORT0_TSCLK    (P_DEFINED | P_IDENT(PORT_PJ6) | P_FUNCT(0))

#define P_SPORT0_TFS    (P_DEFINED | P_IDENT(PORT_PJ7) | P_FUNCT(0))

 

I have tried making these changes in mach-bf537/include/mach/portmux.h but it didn't seem to have any affect.

 

As a little more background, SPORT0 is connected to 4 AD73322 codecs linked in parallel, and the aforementioned pins got swapped during the board layout.

 

Ad73322.c uses bf5xx-sport.c for setting up and configuring the SPORT.  This appears to be using portmux, but perhaps I am just not seeing it correctly.

 

What am I missing?  Are these ports being accessed through some other mechanism that I'm missing?

 

Any help is greatly appreciated.  Oh yeah, this is all in the 2011r1 kernel.

 

Thanks!

 

Matthew

Outcomes