summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-24drivers/video/tegra.c: only mux used LCD pinsColibri_T30_LinuxImageV2.3Beta1_20140804Colibri_T20_LinuxImageV2.3_20150320Colibri_T20_LinuxImageV2.3Beta7_20150203Colibri_T20_LinuxImageV2.3Beta5_20141219Colibri_T20_LinuxImageV2.3Beta3_20141031Colibri_T20_LinuxImageV2.3Beta1_20140804Apalis_T30_LinuxImageV2.3Beta2_20140903Apalis_T30_LinuxImageV2.3Beta1_20140804colibriMax Krummenacher
The Colibri T20 uses only a subset of the LCD pins. Only mux the used pins and don't touch the unused pins.
2014-07-22apalis/colibri t20/t30: fix out-of-tree buildMarcel Ziswiler
The crypto folder is located in NVIDIA's common but erroneously created in Toradex' common which leads to the following error trying to build out-of-tree (e.g. make O=~/build/test): /home/user/gcc-linaro/bin/arm-linux-gnueabihf-gcc -g -O2 -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x80108000 -I/home/user/build/test/include2 -I/home/user/build/test/include -I/home/user/Sources/u-boot-toradex.git/include -fno-builtin -ffreestanding -nostdinc -isystem /home/user/gcc-linaro-arm-linux -gnueabihf-2012.09-20120921_linux/bin/../lib/gcc/arm-linux-gnueabihf/ 4.7.2/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Werror -Wall -Wstrict-prototypes -fno-stack-protector -o /home/user/build/test/board/toradex/common/../ ../nvidia/common/pmu.o ../../nvidia/common/pmu.c -c Assembler messages: Fatal error: can't create /home/user/build/test/board/toradex/common/ ../../nvidia/common/pmu.o: No such file or directory make[1]: *** [/home/user/build/test/board/toradex/common/../../nvidia/ common/pmu.o] Error 2 make[1]: Leaving directory `/home/user/Sources/u-boot-toradex.git/ board/toradex/common' make: *** [/home/user/build/test/board/toradex/common/libtoradex.o] Error 2 Fix this by correctly creating it where it is expected.
2014-04-16colibri_t20: fix/hack sd boot environmentMarcel Ziswiler
We wrongly set an obsolete define so the U-Boot environment ended up at the wrong location on the SD card. Add a hack introducing a short delays before doing MMC_CMD_SET_BLOCKLEN as otherwise all 4GB Kingston or SanDisk cards I have failed. While at it fix the USB port naming in the device tree comments to adhere to the standard Colibri convention.
2014-04-16tegra: usb: Fix device enumeration problem of USB1Jim Lin
tegra: usb: Fix device enumeration problem of USB1 A known hardware issue of USB1 port where bit 1 (connect status change) of PORTSC register will be set after issuing Port Reset (like "usb reset" in u-boot command line). This will be treated as an error and stops later device enumeration. Therefore we clear that bit after Port Reset in order to proceed later device enumeration. Signed-off-by: Jim Lin <jilin@nvidia.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
2014-04-16USB: EHCI: Allow EHCI post-powerup configuration in board filesMarek Vasut
USB: EHCI: Allow EHCI post-powerup configuration in board files This patch allows USB to work on some hosts, which need additional frobing after the host was powered up via regular USB powerup sequence. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Remy Bohmer <linux@bohmer.net> Cc: Wolfgang Grandegger <wg@denx.de> Cc: Jason Liu <r64343@freescale.com>
2014-03-16colibri_t20: disable PMIC sleep mode on low supply voltageColibri_T30_LinuxImageV2.1Beta3_20140318Colibri_T20_LinuxImageV2.1Beta3_20140318Apalis_T30_LinuxImageV2.1Beta3_20140318Marcel Ziswiler
The Colibri T20's PMIC enters a sleep mode on low supply voltage < 3.0V ±2.5% (2.92...3.08V). Rising the main supply voltage again does not bring it back to regular operation. Not even a full reset does bring the module back. A full power cycle was required to reboot the system. A long positive pulse on the PMICs resume pin also reboots the system but this pin is only accessible as a test point on the module. This patch configures the PMIC through I2C to not enter this sleep mode plus force it to normal state upon sleep request exit should this ever happen.
2014-03-14colibri_t20: enable initrd atag supportMarcel Ziswiler
Enable CONFIG_INITRD_TAG which allows passing initrd ATAGs to the Linux kernel required for initial RAM disk support.
2014-03-12apalis/colibri_t20/30: hw boot partition supportMarcel Ziswiler
The new production lot of Apalis T30 2GB V1.0C now features the new SK Hynix H26M42003GMR rather than Hynix H26M42002GMR. Even though both chips feature the same silicon they differ in respective eMMC firmware and therefore have a different hardware boot partition layout. This patch enables hardware boot partition support (via 'mmc dev [dev] [part]' command) and handles NVIDIA's proprietary NvFlash/Fastboot\ behaviour now putting their partition table in the second boot partition rather than the regular user area. While at it also get rid of the spurious 'video=tegrafb' kernel boot argument, adjust the optional ubiargs and add 'noatime' to the usbargs.
2014-03-11Revert "mmc: cmd_mmc: Use TOT cmd_mmc.c from Denx's repo - old one didn't build"Marcel Ziswiler
This reverts commit 31cc6903e6790835acd042d078984d98a8277eff.
2014-01-30colibri_t20: hack backlight gpioColibri_T30_LinuxImageV2.1Beta2_20140206Colibri_T20_LinuxImageV2.1Beta2_20140207Apalis_T30_LinuxImageV2.1Beta2_20140206Marcel Ziswiler
Hack backlight GPIO by manually untristating respective pinmux group. While at it add some comment to both the device-tree as well as the gpio command that manual untristating will be required on GPIO pins.
2014-01-30apalis/colibri_t20/t30: fix environmentMarcel Ziswiler
Add some missing back slashes causing compilation failures.
2014-01-30apalis/colibri_t20/t30: add vidargs and fix usbboot optionMarcel Ziswiler
Add default VESA VGA vidargs for our now modedb enabled kernel. This allows easy specifying an alternate parallel RGB resolution. Fix usbboot option to be more in-line with how we do optional MMC/SD card boot on Colibri VF50/VF61. Loads the uimage kernel from the first partition being formatted as VFAT and instructs the kernel to mount the second partition formatted as ext3 as root file system. While at it further checkpatchify our common board file.
2014-01-24gen: usb: Fix EHCI periodic list handlingJulius Werner
Our custom handling for periodic endpoints had some bugs in it: allocating the wrong amount of memory, setting a bit only on low-speed devices that needs to be present on all of them, and mixing up whether to reenable the list after changing it between error and success cases. This patch (hopefully) fixes all of them. BRANCH=None BUG=None TEST=Make sure USB keyboard support in U-Boot works. Change-Id: I0b302007a620927f596f30a48f420eb67371f78f Signed-off-by: Julius Werner <jwe...@chromium.org>
2013-11-29apalis/colibri_t30: add more console uart configurationsMarcel Ziswiler
Add more UART configurations to the device trees allowing easy switching of the console UART port by changing the UART base address of the console node within the device tree e.g. for using UART2 on Apalis T30 as follows: console = "/serial@70006300"; To use it for Linux as well one needs to modify the debug_uartport kernel boot argument e.g. for using UART2 on Apalis T30 as follows: setenv setup 'setenv setupargs gpt gpt_sector=${gptoffset} igb_mac= ${ethaddr} no_console_suspend=1 console=tty1 console=ttyS0,${baudrate}n 8 debug_uartport=lsport,3 ${memargs} fbcon=map:1'
2013-10-22apalis_t30: fix linux otg behaviour by not enabling its powerColibri_T30_LinuxImageV2.1Beta1_20131022Colibri_T20_LinuxImageV2.1Beta1_20131022Apalis_T30_LinuxImageV2.1Beta1_20131022Marcel Ziswiler
Fix Linux USB OTG1 behaviour by not enabling USBO1_EN during boot as USB host functionality on OTG1 port is anyway broken under U-Boot. Enabling USBO1_EN fed back via USBO1_VBUS sensing and caused the OTG state machine to get a bogus peripheral state change rather than staying in suspend which failed subsequent host activation. This was especially bad on Ixora where by default the OTG1 port is jumpered for shared host port functionality.
2013-10-22apalis/colibri_t20/30: fix further issue in HCD conversionMarcel Ziswiler
Fix possible uninitialised array member issue in serial number to hexadecimal coded decimal conversion routine.
2013-08-12apalis/colibri_t20/30: rename shell promptT30_LinuxImageV2.0Beta3_20130820Apalis_T30_LinuxImageV2.0Beta2_20130816Marcel Ziswiler
In order to be able to distinguish what hardware one is running on change the U-Boot shell prompt to something more meaningful.
2013-08-12apalis/colibri_t30: implement emmc pt offset auto detectionMarcel Ziswiler
In preparation for the new Apalis T30 SKUs implement eMMC PT offset auto detection. The PT offset has been calculated from the .cfg eMMC partition configuration file using virtual linearised addressing across all eMMC regions as expected by nvflash. Due to the lack of a region control mechanism in nvflash/.cfg flashing utility in order to obtain the actual PT offset from the start of the user region the size of the boot regions must be subtracted. An eMMC device is specified to have 0 or 2 boot regions and they must have the same size ranging from 0 to 2 MiB. The boot region size can be queried from the device through the BOOT_SIZE_MULT field of the response to the EXT_CSD command sequence. Tested on initial samples of Apalis T30 1GB V1.0A, Apalis T30 2GB V1.0B, Apalis T30 2GB V1.0C and Colibri T30 V1.1C.
2013-08-12apalis/colibri_t30: implement memory size auto detectionMarcel Ziswiler
In preparation for the new Apalis T30 SKUs implement memory size auto detection based on reading the aperture register set by boot ROM from BCT and a simple mirroring detection. Tested on initial samples of Apalis T30 1GB V1.0A, Apalis T30 2GB V1.0B, Apalis T30 2GB V1.0C and Colibri T30 V1.1C.
2013-05-28apalis/colibri_t20/30: fix overflow in HCD conversionT30_LinuxImageV2.0Beta2_20130626Apalis_T30_LinuxImageV2.0Beta1_20130626Marcel Ziswiler
Fix possible overflow condition in serial number to hexadecimal coded decimal conversion routine.
2013-05-09apalis/colibri_t20/30: decrease boot delayMarcel Ziswiler
As we have lots of impatient managers lets decrease the default boot delay. One can still enter the interactive U-Boot console by hitting a key just in time of boot/reset. Please note currently at Toradex we from the Linux team concentrate on feature stability rather than fast booting.
2013-05-09apalis/colibri_t30: increase CPU frequency at bootMarcel Ziswiler
Due to a unoptimised PLL X table we were only running at 400MHz during boot. Incorporated the PLL X table from NVIDIA's latest public U-Boot sources: http://nv-tegra.nvidia.com/gitweb/?p=3rdparty/u-boot.git;a=blob;f=arch/arm/cpu/arm720t/tegra-common/cpu.c;h=119342e9577f6b42f93d118b81c0e931c9c9423a;hb=chromeos/v2013.01.01-tegra114#l67 And actually set up the T30 PLLs regardless of slow flag as this is anyway exclusively used on T20. Issue report courtesy of Mariusz Bulkowski from Draminski.
2013-05-09apalis_t30: activate DVI-D framebuffer consoleMarcel Ziswiler
As Apalis T30 uses DVI-D aka HDMI as its default external display interface make sure to activate the framebuffer console on there.
2013-05-09apalis_t30: adjust available amount of memoryMarcel Ziswiler
Forgot to actually adjust the amount of available memory in the previous commit. Wouldn't it be nice to actually be able to use the full 2GB?
2013-05-09apalis_t30: initial integrationMarcel Ziswiler
Add initial Apalis T30 support based off our current Colibri T30 implementation: - Updated machine ID. - USB host USBH2 and USBH3 support. Note: USBO1 support is currently broken. - Updated MMC and SD card support. - Adjusted available amount of memory.
2013-05-01colibri_t30: emmc: change offset handlingMarcel Ziswiler
Rather than relying on hard-coded offsets actually make use of partition table parsing implementation. While at it bring the whole config more in-line with the Colibri T20.
2013-05-01colibri_t20: sdboot: change offset handlingMarcel Ziswiler
Rather than relying on hard-coded offsets actually make use of partition table parsing implementation.
2013-05-01colibri_t20/30: efi: prepare for gpt offset integrationMarcel Ziswiler
As the partition table parsing offset handling relies on the global data structure prepare the EFI GPT implementation for that.
2013-05-01colibri_t30: emmc: change offset handlingMarcel Ziswiler
Rather than relying on hard-coded offsets actually make use of partition table parsing implementation.
2013-05-01colibri_t20/30: mmc: integrate NVIDIA partition table parsingMarcel Ziswiler
NVIDIA's MMC/SD layout includes a partition table that can be used to generically determine U-Boot environment, kernel, configuration block as well as GPT offsets. As an added benefit this is completely independent of the underlying MMC/SD card used which might differ with various future module versions or particularly cards used for T20 SD boot. Also handles the case of T20 SD boot where the configuration block is still taken from NAND flash while the rest resides on the SD card. Initial partition table parsing courtesy of Mitja Špes from LXNAV.
2013-04-27colibri_t20: nand: fix compat string lengthDaniel Glöckner
There was no space for the null byte. In our case it led to the lowest byte of the pointer mtd used by nand_init_chip being cleared, which made the system crash when it tried to call mtd->priv->select_chip. Signed-off-by: Daniel Glöckner <dg@emlix.com>
2013-01-11colibri_t30: fix MMC/SD card detect GPIOT30_LinuxImageV2.0Beta1_20130314T30_LinuxImageV2.0Alpha1_20130122T20_LinuxImageV2.0_20130305T20_LinuxImageV2.0Beta2_20130129Apalis_T30_LinuxImageV2.0Alpha1_20130315Marcel Ziswiler
The Colibri T30 V1.1 modules actually use a different card detect GPIO.
2013-01-11colibri_t30: migrate to proper machine typeMarcel Ziswiler
After having registered the following proper machine type migrate to actually using it. http://www.arm.linux.org.uk/developer/machines/list.php?id=4493 While at it clean-out some obsolete Cardhu specific device-tree nodes resp. properties and clean-up the mach-types header file as well.
2013-01-08T30: cmdline with rootfs mounted noatime, not the default relatimeMax Krummenacher
2012-12-27T30: cmdline with ext3 rootfs, not ext2T30_LinuxImageV2.0Alpha0_20121227Max Krummenacher
2012-12-19toradex: common: clean-up board fileMarcel Ziswiler
This is a purely cosmetic clean-up of the common Toradex board file.
2012-12-18T30: define USE_PRIVATE_LIBGCC, oe-core can't build withoutT20_LinuxImageV2.0Beta1_20121218Max Krummenacher
2012-12-18u-boot: compile with -O2, some compilers can't cope with -OsMax Krummenacher
2012-12-13colibri_t20: add optional 800x480 timingMarcel Ziswiler
Add optional aka commented out 800x480@60 timing suitable for EDT ET070080DH6.
2012-12-04colibri_t30: USB: fix Ethernet detection faultMarcel Ziswiler
Turns out our simplistic approach of just blindly enabling LAN_V_BUS and releasing LAN_RESET_N does not prove very reliable. Properly resetting the chip for 5 microseconds after VBUS is stable just like we do on the Colibri T20 seems to fix the issue.
2012-12-04colibri_t20/colibri_t30: device tree compatibility matchingMarcel Ziswiler
Include "colibri_" prefix in our board compatibility tables in preparation to properly distinguish future e.g. Apalis modules. While at it bring the device tree matching more in par with Linux kernel 3.1.10 from NVIDIA's L4T R16-R2.
2012-11-28T30:Max Krummenacher
- board.c: changes required by different PMIC variant
2012-11-28T30: - exclude T20 RAM sizeMax Krummenacher
2012-11-28CPU reset bitfields: - fix bitpositions in ↵Max Krummenacher
CLK_RST_CONTROLLER_RST_CPU_CMPLX_SET/CLR_0
2012-11-28ap20.c: - fix FLOW_MODE field location, is 31:29 according to register ↵Max Krummenacher
description in Android code. no bug visible as function is not called with run = 1
2012-11-28ap20.c: - fix use of interleaved use of struct pll vs. struct pll_simple ↵Max Krummenacher
here this use did not show any adverse effects
2012-11-09colibri_t20: USB: fix Ethernet detection faultMarcel Ziswiler
Turns out we completely missed properly resetting the ASIX USB to FastEthernet chip which from time-to-time on certain modules caused severe Ethernet detection faults only a complete hardware reset or power-cycle could eliminate. Properly resetting the chip for 5 microseconds after VBUS is stable seems to fix the issue.
2012-10-31Merge branch 'colibri' of git://git.toradex.com/u-boot-toradex.git into colibriMax Krummenacher
2012-10-31T30: colibri_t30.hMax Krummenacher
- kernel can now be up to 8MB - cleanup, e.g. remove any NAND config - unify with T20 file layout
2012-10-31colibri_t20: nand: fix NVIDIA partition table parsingMarcel Ziswiler
If the USR partition we usually mount as root file system could not be found which is e.g. the case for Android make sure mtdparts does not start with a spurious coma separator the kernel would interpret as an empty partition entry.