06 May, 2013
4 commits
-
The u-boot-imx23.bd and u-boot-imx28.bd need to be preprocessed, otherwise
they have issues with out-of-tree build where elftosb tool couldn't sometimes
find the u-boot.bin and spl/u-boot-spl.bin .Preprocess these .bd files with sed and insert full path to u-boot.bin and
spl/u-boot-spl.bin to prevent this issue. Moreover, to avoid adding more
churn into main Makefile, move all this preprocessing and u-boot.sb generation
into CPU directory instead.Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Stefano Babic
Acked-by: Otavio Salvador -
The VDDMEM ramped up in very weird way as it was horribly misconfigured.
Instead of setting up VDDMEM in one swipe, let it rise slowly the same
way as VDDD and VDDA in spl_power_init.c and then only clear ILIMIT before
memory gets inited. This makes sure the VDDMEM rises sanely, not jumps up
and down as it did till now.The VDDMEM prior to this change did this:
2V0____ .--------2V5
| `--'
0V____|The VDDMEM now does this:
2V0_____,-----------2V5
/
0V__|Moreover, VDDIO on MX23 uses 25mV steps while MX28 uses 50mV steps,
fix this difference too.Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Otavio Salvador
Cc: Stefano Babic -
Put an explanation in the source code as to why some DDR registers do not
need to be configured.Signed-off-by: Fabio Estevam
-
After the recent fixes in the mx23 DDR setup, it is safe to operate DDR voltage
at the recommended 2.5V voltage level again.Signed-off-by: Fabio Estevam
05 May, 2013
16 commits
-
Legacy iomux support is no longer needed now that all boards have been converted
to iomux-v3.Signed-off-by: Benoît Thébaudeau
Reviewed-by: Marek Vasut -
Allow usage of the imx-common/iomux-v3.h framework by including pad settings for
the i.MX53. The content of the file is taken from Freescale's Linux kernel at
commit 4ab3715, plus the required changes to make it work in U-Boot.Signed-off-by: Benoît Thébaudeau
-
Add missing definitions that are required by future changes.
By the way, make some cosmetic cleanup.
Signed-off-by: Benoît Thébaudeau
-
In ALT1 mode, EIM_CS2 is GPIO2[27], not ESDHC1.CD. Hence, rename
MX51_PAD_EIM_CS2__SD1_CD to MX51_PAD_EIM_CS2__GPIO2_27.Signed-off-by: Benoît Thébaudeau
-
Legacy iomux support is no longer needed now that all boards have been converted
to iomux-v3.Signed-off-by: Benoît Thébaudeau
-
Allow usage of the imx-common/iomux-v3.h framework by including pad settings for
the i.MX35. The content of the file is taken from Linux kernel at commit
267dd34, plus the required changes to make it work in U-Boot.Signed-off-by: Benoît Thébaudeau
-
Legacy iomux support is no longer needed now that all boards have been converted
to iomux-v3.Signed-off-by: Benoît Thébaudeau
-
Allow usage of the imx-common/iomux-v3.h framework by including pad settings for
the i.MX25. The content of the file is taken from Linux kernel at commit
267dd34, plus the required changes to make it work in U-Boot.Signed-off-by: Benoît Thébaudeau
-
Augment the MX5 clock code with function to enable and configure
NFC clock. This is necessary to get NFC working on MX5.Signed-off-by: Marek Vasut
Cc: Albert ARIBAUD
Cc: Benoît Thébaudeau
Cc: Fabio Estevam
Cc: Scott Wood
Cc: Stefano Babic
Cc: Tom Rini -
Fix minor adjustments needed to get SPL framework building on MX5.
Signed-off-by: Marek Vasut
Cc: Albert ARIBAUD
Cc: Benoît Thébaudeau
Cc: Fabio Estevam
Cc: Scott Wood
Cc: Stefano Babic
Cc: Tom Rini -
The U-Boot SPL can parse the uImage format and gather information from
it about the payload. Make use of this and wrap u-boot.bin into uImage
format. The benefit is the SPL will know the size of the payload
instead of using fixed size of the payload defined at compile time.Signed-off-by: Marek Vasut
Cc: Albert ARIBAUD
Cc: Benoît Thébaudeau
Cc: Fabio Estevam
Cc: Scott Wood
Cc: Stefano Babic
Cc: Tom Rini -
FSL bootlets code set the PORT_PRIORITY_ORDER field of register HW_EMI_CTRL
as 0x2, which means:PORT0231 = 0x02 Priority Order: AXI0, AHB2, AHB3, AHB1
Signed-off-by: Fabio Estevam
-
HW_DRAM_CTL27, HW_DRAM_CTL28 and HW_DRAM_CTL35 are not initialized as per
FSL bootlets code.mx23 Reference Manual mark HW_DRAM_CTL27 and HW_DRAM_CTL28 as "reserved".
HW_DRAM_CTL8 is setup as the last element.
So skip the initialization of these DRAM_CTL registers.
Signed-off-by: Fabio Estevam
-
On mx23 there is no 'DRAM init complete' in register HW_DRAM_CTL18.
Remove this erroneous setting.
Signed-off-by: Fabio Estevam
-
Start bit is part of HW_DRAM_CTL8 register, so fix the comment.
Signed-off-by: Fabio Estevam
-
On mx23 the pad voltage selection bit needs to be always '0', since '1' is a
reserved value.For example:
Pin 108, EMI_A06 pin voltage selection:
0= 1.8V (mDDR) or 2.5V (DDR1);
1= reserved.Fix the pad voltage definitions for the mx23 case.
Signed-off-by: Fabio Estevam
Acked-by: Marek Vasut
28 Apr, 2013
11 commits
-
Implement BOOT_OFFSET command for imximage. This command is parallel
to current BOOT_FROM command, but allows more flexibility in configuring
arbitrary image header offset. Also add an imximage.cfg with default
offset values into arm/arch/imx-common/ so the board-specific imximage.cfg
can include this file to avoid magic constants.The syntax of BOOT_OFFSET command is "BOOT_OFFSET ".
Signed-off-by: Marek Vasut
Cc: Albert ARIBAUD
Cc: Benoît Thébaudeau
Cc: Fabio Estevam
Cc: Scott Wood
Cc: Stefano Babic
Cc: Tom Rini
Acked-by: Stefano Babic
Acked-by: Stefan Roese -
PUE requires PKE to mean something, as do pull values with PUE, so do not
compell users to explicitly use PKE and PUE everywhere. This is also what is
done on Linux and what has already been done for i.MX51.By the way, remove some unused pad control definitions.
There is no change of behavior.
Note that SPI_PAD_CTRL was defined by several boards with a pull value, but
without PKE or PUE, which means that no pull was actually enabled in the pad.
This might be a bug in those boards, but this patch does not change the
behavior, so it just removes the meaningless pull value from those definitions.Signed-off-by: Benoît Thébaudeau
-
This macro will be useful for future changes.
Signed-off-by: Benoît Thébaudeau
-
Keep pad control definitions together, and organize definitions in a more
legible way.Signed-off-by: Benoît Thébaudeau
-
Commit dc88403 "iomux-v3: Place pad control definitions into common file" broke
mx51_efikamx because it made i.MX6's pad control definitions conflict with
i.MX51's.i.MX51's pad control definitions are actually common to some other i.MX
(25/35/53), so move them to the common iomux-v3.h (just like what is done in
Linux's), and select the correct definitions depending on whether CONFIG_MX6 is
defined or not.Signed-off-by: Benoît Thébaudeau
-
Add an mxc_ocotp driver for i.MX6.
Signed-off-by: Benoît Thébaudeau
-
Make all mpc512x code point to the new common fsl_iim driver, and remove the
former mpc512x-specific iim driver.Signed-off-by: Benoît Thébaudeau
-
Add a fsl_iim driver common to i.MX and MPC.
Signed-off-by: Benoît Thébaudeau
-
Define the UID (SoC unique ID) fuses, and the fuses available for the user.
Signed-off-by: Benoît Thébaudeau
-
IIM:
- Homogenize prg_p naming (the reference manuals are not always self-consistent
for that).
- Add missing SCSx and bank registers.
- Fix the number of banks on i.MX53.OCOTP:
- Rename iim to ocotp in order to avoid confusion.
- Rename fuse_data to read_fuse_data, and sticky to sw_sticky, according to the
reference manual.
- Merge the existing spinoff gp1 fuse definition on i.MX6.
- Fix the number of banks on i.MX6.Signed-off-by: Benoît Thébaudeau
Acked-by: Stefano Babic -
commit 5c2f444c9 (mxs: Reset the EMI block on mx23) changed the DDR voltage
level, which causes mx23evk to fail to load a kernel.Put back the original values, so that mx23evk can boot a kernel again.
Signed-off-by: Fabio Estevam
Tested-by: Robert Nelson
26 Apr, 2013
7 commits
-
imx-regs.h is more appropriate location for containing register masks.
Signed-off-by: Fabio Estevam
Acked-by: Marek Vasut -
When booting a FSL kernel based on 2.6.35 it is necessary to pass the revision
tag to the kernel.Place a common weak function into soc.c for such purpose.
Signed-off-by: Fabio Estevam
Acked-by: Marek Vasut -
Allow use of the carrier board MicroSD card available in the
Wandboard; this allow for loading alternative system from the other
card for testing or upgrade proposes.Signed-off-by: Otavio Salvador
-
This add support to identify if the card is connected or not; so it
does not try to communicate with the controller if no card is
available.Signed-off-by: Otavio Salvador
-
CKO1 drives sgtl5000 codec clock on nitrogen boards and wandboard.
Doing this setup in the bootloader will allow us to remove a lot of code in
arch/arm/mach-imx/mach-imx6q.c from the mainline kernel.Also, according to Eric Nelson: "enabling the clock will
remove squeal after an ungraceful reboot (watchdog) if hooked up to speakers."Signed-off-by: Fabio Estevam
-
Prior to this fix, calls to mxc_iomux_set_input() for registers
after MUX_IN_GPIO2_IN_19 would write to the wrong registers,
possibly resulting in unexpected behaviour.Signed-off-by: Philip Paeps
-
Add spaces before and after "< 80 lines for
the sake of better readability.Signed-off-by: Stefan Roese
22 Apr, 2013
2 commits
-
Titanium is a i.MX6 based board from ProjectionDesign / Barco. This
patch adds support for this board with the newly introduced NAND
support for i.MX6.Signed-off-by: Stefan Roese
Cc: Stefano Babic
Cc: Fabio Estevam -
Signed-off-by: Stefan Roese
Acked-by: Scott Wood
Cc: Stefano Babic
Cc: Marek Vasut
Cc: Fabio Estevam