There is a function in <u-boot>/board/omap3/beagle/beagle.c called
set_muxconf_regs(). It "calls" what really is a define that is set up
in <u-boot>/include/asm-arm/arch-omap3/mux.h, called MUX_DEFAULT_ES2
If you want you can change the define for MUX_DEFAULT_ES2 or copy it,
rename it and then "call" your new define from set_muxconf_regs().
The muxing define itself is easy enough to figure out from the
comments right above...
On Mar 2, 9:08 am, Philip Balister <philip.balis...@gmail.com> wrote:
> On Mon, Mar 2, 2009 at 3:38 AM, <hemanth_venkat...@yahoo.com> wrote:
> > Hi Philip,
> > Could you briefly explain your setup and Mux settings below, are these
> > for the slave mode.
> > ++ MUX_VAL(CP(MMC2_CLK), (IEN | PTU | DIS | M1)) /*MCSPI3_CLK*/\
> > ++ MUX_VAL(CP(MMC2_CMD), (IEN | PTU | DIS | M1)) /*MCSPI3_SIMO*/\
> > ++ MUX_VAL(CP(MMC2_DAT0), (IEN | PTU | EN | M1)) /*MCSPI3_SOMI*/\
> > I am trying to test data transfers using SPI2 on two OMAP3430SDP
> > boards. One SPI2 is configured as master and the other as slave. I am
> > also seeing similar problem where Slave writes but the master is
> > unable to read proper data. I am trying to figure out if your settings
> > will help.
> This code sets up the pinmux in u-boot. I'm not sure where the docs
> are for this. Hopefully, someone who knows how to set up the pinmux in
> u-boot will speak up.
> > Thanks
> > Hemanth
> > On Feb 19, 1:43 am, PhilipBalister<philip.balis...@gmail.com> wrote:
> >> I have spidev_test reading data sent from the port now. Steve sent me
> >> a patch for u-boot to set up the pinmux in u-boot. I removed the
> >> pinmux code from Linux and I could read data from the SPI port:
> >>http://www.flickr.com/photos/32615155@N00/3291304854/ >
> >> I'm attaching the patch against OE. The u-boot patch is from Steve.
> >> I compile spidev_test.c with this command:
> >> /home/balister/oe/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-gcc
> >> -o spidev_test spidev_test.c
> >> Adjust for the path to your cross compiler. I am using the one built by OE.
> >> Philip
> >> 0001-Changes-to-make-MCSPI3-work-on-the-Beagle-Board-expa.patch
> >> 19KViewDownload