summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-18colibri_t20/t30: fix setsdupdateColibri_iMX6_LinuxImageV2.4Beta1_20150518Colibri_VF_LinuxImageV2.4Beta1_20150518Colibri_T30_LinuxImageV2.4Beta1_20150518Colibri_T20_LinuxImageV2.4Beta1_20150518Apalis_iMX6_LinuxImageV2.4Beta1_20150518Apalis_T30_LinuxImageV2.4Beta1_20150518Marcel Ziswiler
Fix setsdupdate by adding missing 'usb start' command. While at it also add USB start to setethupdate as doing it twice won't hurt (e.g. it returns immediately only 'usb reset' does a full rescan).
2015-05-13apalis_imx6.c: prepare Apalis GPIO pins to be GPIOMax Krummenacher
In order to use the gpio commandline feature of U-Boot the pins one wants to control must be muxed to GPIO. Do that for Apalis pins GPIO[1:8] and for WAKE1_MICO. This feature can be used as follows: e.g. set GPIO1 to 1: Apalis iMX6 # gpio set 36 gpio: pin 36 (gpio 36) value is 1 e.g. read the state of GPIO8: Apalis iMX6 # gpio input 6 gpio: pin 6 (gpio 6) value is 1
2015-05-13colibri_imx6.c: prepare auxiliary pins to be GPIOMax Krummenacher
In order to use the gpio commandline feature of U-Boot the pins one wants to control must be muxed to GPIO. Do that for all unused pins which in the default kernel device tree also gets muxed to gpio for userspace use. This feature can be used as follows: e.g. change the LCD brightness signal from 0V to 3.3V: Colibri iMX6 # gpio set 41 gpio: pin 41 (gpio 41) value is 1 e.g. read the state of gpio 111: Colibri iMX6 # gpio input 111 gpio: pin 111 (gpio 111) value is 1
2015-05-13colibri_imx6.c: ensure EMI_ADDR22 is inputMax Krummenacher
Out of reset EMI_ADDR22 is output and connected to GPIO01. As we want to use GPIO01 as an output for backlight control mux EMI_ADDR22 to a GPIO which by default is input.
2015-05-13Apalis/Colibri iMX6: rename/add bmodeMax Krummenacher
Add an alias for the ESDHC0 which provides the standard MMC connection on Colibri iMX6. Add an alias for the ESDHC0/1 which provides the standard MMC/SD connection on Apalis iMX6.
2015-05-13apalis/colibri_t20/t30: enable of system setup supportMarcel Ziswiler
Enable OF system setup to add hardware revision and serial number information to the device-tree in case a mainline Linux kernel with any such is booted. While at it default back to the regular 8 MB DFU data buffer size.
2015-05-13apalis/colibri_t20/t30: enable raw initrd supportMarcel Ziswiler
Enable optional raw initrd support to allow boot using an initrd.
2015-05-13mtd/nand/tegra: alignment workaroundMarcel Ziswiler
Introduce cache alignment bounce buffer to workaround issues as follows: Loading file '/boot/zImage' to addr 0x01000000 with size 4499152 (0x0044a6d0)... ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108 ERROR: v7_dcache_inval_range - stop address is not aligned - 0x1f7f1108 Done Kernel image @ 0x1000000 [ 0x000000 - 0x44a6d0 ] Starting kernel ... undefined instruction pc : [<005ff03c>] lr : [<0000800c>] sp : 0144b6e8 ip : 01000188 fp : 0144a6c8 r10: 00000000 r9 : 411fc090 r8 : 00000100 r7 : 00000cfb r6 : 0144a6d0 r5 : 00000000 r4 : 00008000 r3 : 0000000c r2 : 00000100 r1 : 00000cfb r0 : 00000000 Flags: nZCv IRQs off FIQs off Mode SVC_32 Resetting CPU ...
2015-05-13mtd/nand/ubi: assortment of alignment fixesMarcel Ziswiler
Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer alignment into account which led to failures of the following form: ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108 ERROR: v7_dcache_inval_range - stop address is not aligned - 0x1f7f1108
2015-05-11toradex: common: fix non-Toradex config block buildStefan Agner
Fix build of configurations without the Toradex config block. Also move away from the ifdefery through the file, but create a global ifdef which distingush between the two variants on a global level.
2015-05-11toradex: common: use define for product number offsetStefan Agner
The USB product ID's for the Colibri/Apalis family of Toradex can be calculated by using the Toradex product ID (as provided by the config block) plus a fixed offset of 0x4000.
2015-05-11logos: update Toradex logoStefan Agner
Use the boot loader splash screen from WinCE, which maches positionwise our wallpapers. Altough the logo is a 8-Bit indexed BMP as well, colors looked odd at first on U-Boot. After converting to full RGB pallette and coverting back to indexed BMP using imagemagick, the Logo showed up properly. $ convert tools/logos/toradex-rgb.bmp -type Palette -colors 256 \ -compress none -verbose BMP3:tools/logos/toradex.bmp
2015-05-11image-fdt.c: store returned error valueMax Krummenacher
This fixes the following warning (and the runtime error reporting): ../common/image-fdt.c:491:4: warning: 'fdt_ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
2015-05-11colibri_imx6.h: source the correct script addressMax Krummenacher
2015-05-11video: dcu: fixup memory correct even without framebufferStefan Agner
When there is no framebuffer allocated, e.g. no video environment variable or an error during initialization, the framebuffer location ends up to be NULL, in which case the fixup function calculates a bogus memory size. Use the framebuffer size to make sure that memory size is calculated right in any case.
2015-05-11toradex: common: set board-rev and product-idStefan Agner
Set board revision and Toradex product ID as device tree property. This transfers the Toradex configblock information to Linux user- space, where it can be read conviniently through the proc file system files: - /proc/device-tree/serial-number - /proc/device-tree/toradex,board-rev - /proc/device-tree/toradex,product-id In case the Toradex config block is missing or corrupted, the device tree properties won't be created by the boot loader and hence those file won't exist in that case.
2015-05-09toradex: common: set Toradex specific dt propertiesStefan Agner
Use ft_system_setup to set Toradex specific device-tree properties. At first, this is only the serial-number, which is using a property which is about to be standardized in the binding documentation of the Linux kernel.
2015-05-09toradex: configblock: move environment config to commonStefan Agner
Move setting of environment variables to common code. This prepares for further enhancements which will enhance the device tree with module specific information from the configblock.
2015-05-07Add config to disable commands used only in productionMax Krummenacher
CONFIG_TRDX_CMD_IMX_MFGR in menu 'ARM architecture' While at it remove unused include g_dnl.h
2015-05-07configblock.c: add configblock creation for iMX6 modulesMax Krummenacher
2015-05-07Apalis/Colibri iMX6: use Toradex boot logoMax Krummenacher
This uses the tools/logos/toradex.bmp instead of the default tux logo and places it centered on screen. While at it group the display releated variables together.
2015-05-06Apalis/Colibri iMX6: make the parallel RGB usableMax Krummenacher
In U-Boot use the following display outputs a: - Test the panel environment variable and if set use it - Use HDMI if connected - Use parallel output otherwise configured for VGA 640x480 The following strings can be set for the panel variable: HDMI vga-rgb wvga-rgb
2015-05-06imx-common: make ipu's di configurableMax Krummenacher
The ipu has two display interfaces. Make the used one a parameter in struct display_info_t instead of using unconditionally DI0.
2015-05-06Apalis/Colibri imx6: remove explicitely set default configsMax Krummenacher
2015-05-06apalis/colibri_t30: fix dfu_alt_infoMarcel Ziswiler
2015-05-05colibri_t20: adjust cfgblock & u-boot env locations in flashMarcel Ziswiler
Swap the order of the Toradex factory configuration block location in respect to the U-Boot environment. This to again be in-line with mainline. Move the Toradex factory configuration block to a 3 MB offset.
2015-05-05common: hash: fix crc32 verifyMarcel Ziswiler
did not work: Colibri T30 # crc32 0x80000000 0x100 crc32 for 80000000 ... 800000ff ==> 9eb4f5ca Colibri T30 # crc32 -v 0x80000000 0x100 c9a057b3 crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != ffffffff ** ERROR ** Colibri T30 # crc32 -v 0x80000000 0x100 9eb4f5ca crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != 301eeead ** ERROR ** now works again: Colibri T30 # crc32 0x80000000 0x100 crc32 for 80000000 ... 800000ff ==> 9eb4f5ca Colibri T30 # crc32 -v 0x80000000 0x100 c9a057b3 crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != c9a057b3 ** ERROR ** Colibri T30 # crc32 -v 0x80000000 0x100 9eb4f5ca Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2015-05-04colibri_vf: update default configStefan Agner
Add consoleblank=0 to disable console blanking by default. To use initramfs without the need of creating a U-Boot image using mkimage, enable CONFIG_SUPPORT_RAW_INITRD too.
2015-05-04ARM: vf610: rename/add bmode for Colibri VFxxStefan Agner
Rename the serial loader boot mode to "serial". Also add an alias for the ESDHC1 controller, which provides the standard MMC connection for the Colibri SO-DIMM default pinout.
2015-05-04toradex: common: create a place for common functionalityStefan Agner
Some functionality is repetitve accross the boards. This creates a common place for U-Boot functions which need to be implemented similarly for all Toradex modules.
2015-05-04colibri_vf: Enable board specific USB initialisation for USB pen gpioSanchayan Maity
Add IOMUX for the pad used as USB pen. This needs to be driven low for the Iris and Viola boards where it is pulled up high by default. This is required for the USB host functionality to work on these boards. Use the board specific weak initialisation function, to drive the pin low which would be called on "usb start". Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> [use switch statement to make port selection more obvious] Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2015-05-04usb: ehci-vf: Add weak function for board specific initialisationSanchayan Maity
Add a weak function board_ehci_hcd_init which can be used by the board file for board specific initialisation. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2015-05-01Colibri iMX6: initial commitMax Krummenacher
use make colibri_imx6_defconfig
2015-05-01Apalis iMX6: initial commitMax Krummenacher
Use for the industrial temperature range rated modules: make apalis_imx6_it_defconfig Use for the commercial temperature range rated modules: make apalis_imx6_defconfig
2015-05-01serial_mxc.c: add option to use in DTE modeMax Krummenacher
The serial_mxc UART can use DTE and DCE mode (i.e End device vs. modem). This adds DTE mode capability to the driver. In order to switch from the default DCE to DTE mode define CONFIG_MXC_UART_DTE.
2015-05-01apalis/colibri_t20/t30: fix setupdateMarcel Ziswiler
2015-04-28colibri_vf: whitespace cleanupMarcel Ziswiler
Cleanup various whitespaces throughout its configuration file.
2015-04-28apalis/colibri_t30: fix setupdate handlingMarcel Ziswiler
Fix setupdate handling. While at it also fix using asix_mac rather than igb_mac on Colibri T30.
2015-04-28toradex: configblock: fix commentMarcel Ziswiler
Fix comment in write_trdx_cfg_block_to_nand to actually indicate it writing the config block to NAND.
2015-04-28apalis_t30: add missing new lineMarcel Ziswiler
Add missing new line in tegra_pcie_board_init.
2015-04-28colibri_t20: migrateMarcel Ziswiler
Migrate Colibri T20 to U-Boot 2015.04.
2015-04-28tegra: nand: 16-bit bch ecc integrationMarcel Ziswiler
Integrate 16-bit BCH ECC handling required e.g. for the latest NAND parts assembled on Colibri T20.
2015-04-28tegra: nand: fix read_byte required for proper onfi detectionMarcel Ziswiler
Fix PIO read_byte() implementation not only used for the legacy READ ID but also the PARAM command now required for proper ONFI detection. This fix is inspired by Lucas Stach's Linux Tegra NAND driver of late. While at it also disable subpage writes.
2015-04-27colibri_t20: add i2c supportMarcel Ziswiler
Add I2C support in order to subsequently allow disabling the PMIC sleep mode on low supply voltage.
2015-04-27colibri_t20: add LCD display supportMarcel Ziswiler
Add LCD display support defaulting to VESA VGA resolution. Different resolutions configurable via device-tree.
2015-04-27colibri_t20: fix device-tree compatible nodeMarcel Ziswiler
Use toradex,colibri_t20 as the device-tree compatible node value rather than toradex,t20 in accordance to our Apalis/Colibri T30 products.
2015-04-23colibri_vf: set the devices serial number in the device treeStefan Agner
Use the proposed format to transport the device's serial number to the kernel: http://www.spinics.net/lists/devicetree/msg76756.html
2015-04-23colibri_vf: remove fec_macStefan Agner
Also, the kernel argument has been renamed (to fec.macaddr) and uses a different format (0x00,0x2d...). The FEC ethernet address is assigned through device tree nowadays. Hence remove the old argument "fec_mac" without replacement.
2015-04-23Merge branch '2015.04-toradex-next-gpio' into 2015.04-toradex-nextStefan Agner
2015-04-23colibri_vf: add additional GPIOs required for display handlingStefan Agner
Add GPIO's typically required for display handling such as GPIO 45 (SO-DIMM 71, BL_ON) or GPIO 22 (SO-DIMM 59, PWM<A> for backlight).