public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] SPI question
@ 2013-02-20  0:12 NeonJohn
  2013-02-20 16:04 ` Steve Strobel
  0 siblings, 1 reply; 2+ messages in thread
From: NeonJohn @ 2013-02-20  0:12 UTC (permalink / raw)
  To: u-boot

Hello,

Veteran developer, new to Linux internals.  I'm working with the
BeagleBone and need three SPI ports.  I'm now working to enable the
second chip select on the second port.  I need some basic information to
get started.

Is the port initialization done in u-boot or in the kernel?  In
beagle/beagle.h I found the pins nicely enumerated but that file is
apparently for the BeagleBoard, as it doesn't get built during a bone build.

If the initialization is done in u-boot, could someone suggest the file
to look at?

Thanks,

John

-- 
John DeArmond
Tellico Plains, Occupied TN
http://www.fluxeon.com      <-- THE source for induction heaters
http://www.neon-john.com    <-- email from here
http://www.johndearmond.com <-- Best damned Blog on the net
PGP key: wwwkeys.pgp.net: BCB68D77

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] SPI question
  2013-02-20  0:12 [U-Boot] SPI question NeonJohn
@ 2013-02-20 16:04 ` Steve Strobel
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Strobel @ 2013-02-20 16:04 UTC (permalink / raw)
  To: u-boot

On Tue, Feb 19, 2013 at 5:12 PM, NeonJohn <jgd@neon-john.com> wrote:

> Hello,
>
> Veteran developer, new to Linux internals.  I'm working with the
> BeagleBone and need three SPI ports.  I'm now working to enable the
> second chip select on the second port.  I need some basic information to
> get started.
>
> Is the port initialization done in u-boot or in the kernel?


I haven't yet used the Beagle Bone (though I have one on my desk), but I
have used SPI on a Blackfin target with U-Boot and Linux.  On that target,
the Blackfin's built-in first-stage bootloader uses SPI to load U-Boot into
memory from flash and runs it.  U-Boot then reads the Linux kernel image
into RAM from the SPI flash and boots it.  Those things probably don't
apply in your case, unless your flash uses an SPI interface.

Then everything else SPI related is done in Linux.  Specifically there is a
"board" file where the peripherals are set up.  On my target there is both
a hardware-assisted SPI bus with several attached chips and a "bitbanged"
SPI bus.  Those buses (including the pin assignments) are set up in the
board file and the peripherals are attached to the buses and assigned chip
select pins.  I don't know if those things are handled the same way for the
Beagle Bone or not;  I use a custom Linux distribution for Blackfin that
may work differently.

This is straying off topic for the U-Boot list, but if you want more info
about how it works on my target, email me directly.

Steve


-- 
Steve Strobel
Link Communications, Inc.
1035 Cerise Rd
Billings, MT 59101-7378
(406) 245-5002 ext 102
(406) 245-4889 (fax)
WWW: http://www.link-comm.com
MailTo:steve.strobel at link-comm.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-20 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20  0:12 [U-Boot] SPI question NeonJohn
2013-02-20 16:04 ` Steve Strobel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox