Open main menu

DAVE Developer's Wiki β

Changes

Pin Mux Configuration in U-Boot (Naon)

30 bytes added, 15:21, 14 January 2014
m
Pin Mux Configuration in u-boot
=== Pin Mux Configuration in u-boot ===
Due the fact the correct configuration of pin mux usually should be applied as soon as possible and that's better if pin mux is done is only one place, Dave '''DAVE Embedded Systems''' choose to move all its initialization inside the startup code of [[:Category:U-Boot|U-Boot]]
Changing default pin mux configuration is just a matter of:
# open TI Pin Mux configuration
# load the Dave provided Naon default configurationprovided by '''DAVE Embedded Systems'''
# change the mux as needed
# export the generated source code into the [[:Category:U-Boot|U-Boot]] source tree
{{Board Specific Information|text=Please note that, for NELK < 2.0.0, pin mux configuration is applied in both U-Boot stage (1st and 2nd). When changing pin mux configuration for your custom board, please be sure to update both binaries}}
 
{{Board Specific Information|text=Starting from NELK 2.0.0, 1st stage only configure a minimal set of pins, the one that are required to start correctly the 2nd stage. }}
=== Multiple Pin Mux Support ===
{{ImportantMessageBoard Specific Information|text=The <pre class="workstation-terminal">make linux</pre> command will fail complaining about a missing This paragraph applies to [[Naon Embedded Linux Kit (NELK)|NELK]] 2.0.config file if launched before preparing the kernel configuration as described 0 or above}}
To allow greater flexibility, starting from u-boot released with [[Naon Embedded Linux Kit (NELK)|NELK]] 2.0.0 user can choose which pin mux to use by setting the '''naon_host''' U-Boot environment variable.
<pre class="board-terminal">
...## Starting application at 0x81000000 ...  U-Boot 2010.06 -00011-gd371eb4 (Aug 10 2012 Apr 22 2013 - 0912:0917:5853) [nelk-24.0.0-rc2Naon]
TI8148-GP rev 2.1
ARM clk: 600MHz
DDR clk: 400MHz
L3 clk: 200MHz
DSS clk: 200MHz
IVA clk: 266MHz
ISS clk: 400MHz
DSP clk: 500MHz
I2C: ready
DRAM: 512 MiB
NAND: Searching for NAND device @ GPMC CS:0HW ECC BCH8 Selected
1024 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
 
WARNING!! no valid pin mux defined, please configure 'naon_host'
environment variable to the correct value, save the environment
and reboot or some peripheral may not work correctly
Net: <ethaddr> not set. Reading from E-fuse
Detected MACID:00:17:EB:52:6A:8A
cpsw
Hit any key to stop autoboot: 0
NAON#
</pre>
<pre class="board-terminal">
NAON#setenv naon_host evb_midNAON#saveenvSaving Environment to SPI Flash...Erasing SPI flash...Writing to SPI flash...doneNAON#resresetting ...CCC U-Boot 2010.06 -00011-gd371eb4 (Aug 10 2012 Apr 22 2013 - 0912:0917:1917) [nelk-24.0.0-Naon-min-rc2]
TI8148-GP rev 2.1
ARM clk: 600MHz
DDR clk: 400MHz
L3 clk: 200MHz
DSS clk: 200MHz
IVA clk: 266MHz
ISS clk: 400MHz
DSP clk: 500MHz
DRAM: 512 MiB
Using default environment
Hit any key to stop autoboot: 0
8192 KiB AT45DB642D at 0:0 is now current device
## Starting application at 0x81000000 ...
U-Boot 2010.06 -00011-gd371eb4 (Aug 10 2012 Apr 22 2013 - 0912:0917:5853) [nelk-24.0.0-rc2Naon]
TI8148-GP rev 2.1
ARM clk: 600MHz
DDR clk: 400MHz
L3 clk: 200MHz
DSS clk: 200MHz
IVA clk: 266MHz
ISS clk: 400MHz
DSP clk: 500MHz
I2C: ready
DRAM: 512 MiB
NAND: Searching for NAND device @ GPMC CS:0HW ECC BCH8 Selected
1024 MiB
MMC: OMAP SD/MMC: 0
MUX: configuring for evb_mid
Net: Detected MACID:000:5017:c2EB:1e52:af6A:af8A
cpsw
Hit any key to stop autoboot: 0
NAON#
</pre>