summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2016-11-21apalis-tk1: fix device tree pre-fix in dfu alt infoMarcel Ziswiler
Fix device tree pre-fix in DFU_ALT_EMMC_INFO. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
2016-09-29apalis/colibri_t30: enable emmc boot specific commandsColibri_iMX7_LinuxImageV2.6.1Beta1_20160929Colibri_iMX6_LinuxImageV2.6.1Beta1_20160929Colibri_VF_LinuxImageV2.6.1Beta1_20161001Colibri_T30_LinuxImageV2.6.1Beta1_20160929Colibri_T20_LinuxImageV2.6.1Beta1_20160929Apalis_iMX6_LinuxImageV2.6.1Beta1_20160929Apalis_TK1_LinuxImageV2.6.1Beta1_20160929Apalis_T30_LinuxImageV2.6.1Beta1_20160929Marcel Ziswiler
Enable CONFIG_SUPPORT_EMMC_BOOT to provision for eMMC boot specific U-Boot commands. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-09-29apalis-tk1: fix autoboot not prevented in recovery modeMarcel Ziswiler
Turns out CONFIG_ARCH_MISC_INIT was not defined therefore our arch_misc_init() function was never even called. While at it also enable the previously missing CONFIG_OF_LIBFDT. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-09-29apalis-tk1: add optional pcie evalboard initialisationMarcel Ziswiler
Implement optional PCIe EvalBoard initialisation which properly reset the PLX (now Avago) PEX 8605 PCIe switch plus PCIe devices on the Apalis Evaluation carrier board. Please note that you will have to enable the second PCIe port in the dts as well e.g.: diff --git a/arch/arm/dts/tegra124-apalis.dts b/arch/arm/dts/tegra124-apalis.dts index 595aae8..841c676 100644 --- a/arch/arm/dts/tegra124-apalis.dts +++ b/arch/arm/dts/tegra124-apalis.dts @@ -42,6 +42,10 @@ vddio-pex-ctl-supply = <&reg_3v3>; avdd-pll-erefe-supply = <&avdd_1v05>; + pci@1,0 { + status = "okay"; + }; + /* I210 Gigabit Ethernet Controller (on-module) */ pci@2,0 { status = "okay"; While at it also get rid of the DECLARE_GLOBAL_DATA_PTR which is probably a remnant of the Apalis T30 board file where we use it to get the memory size. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-09-29configs: Implement and unify use of fdt_fixup across modulesSanchayan Maity
u-boot allows modifying a device tree after it is loaded into memory. Add fdt_fixup hook in u-boot environment which can facilitate such modifications. Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com> Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-09-29default environment: remove netdevwait from nfs boot argsMax Krummenacher
netdevwait was used in the 2.6.36 based Vibrante kernel for Colibri T20. None of our kernel trees evaluate that cmdline parameter. So drop it from the nfsargs environment variable. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-09-29colibri_imx7: enable OF system setupStefan Agner
This makes sure that the common code passes the Toradex serial number, product id and revision to the device tree. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-07-14compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6Tom Rini
Copy these from Linux v4.5-rc6 tag. This is needed so that we can keep up with newer gcc versions. Note that we don't have the uapi/ hierarchy from the kernel so continue to use <linux/types.h> Signed-off-by: Tom Rini <trini@konsulko.com> (cherry picked from commit 9b2c282b348dfe966bbba967dc7a45ce817cce50)
2016-06-28apalis/colibri_t30: vdd core pmic handlingMarcel Ziswiler
Just release TPS65911 GPIO1 (EN_CORE_DVFS_N) connected to TPS62362 VSEL1 to switch VDD_CORE back to boot set 1 defaulting to 1.200V. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22update.sh: make set<media>update self containedMax Krummenacher
'run setupdate' tries a number of update media to find an update script and then sources it. Each media is probed by its own run set<media>update, however if a script is found it is not sourced immediately but this task is delegated to 'run setupdate'. Thus one cannot just do a 'run setethupdate' to only try to update over Ethernet. This also unifies the functionality with Colibri VF and Colibri iMX7 were it has been implemented like this for a while now. While at it use consistently ${loadaddr}. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-06-22colibri_imx7: prepare environment to boot the M4 coreStefan Agner
Create a variable to boot the Cortex-M4 core. By default, the command is not doing anything. Flash a firmware into the UBI volume using: Colibri iMX7 # ubi part ubi Colibri iMX7 # fatload ${interface} 0:1 ${loadaddr} hello_world.bin Colibri iMX7 # ubi write ${loadaddr} m4firmware ${filesize} And set the command to boot the firmware automatically: Colibri iMX7 # setenv m4boot 'ubi read 0x7F8000 m4firmware && bootaux 0x7F8000' Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22net: increase maximum frame size to accomediate VLAN packetsStefan Agner
Ethernet packages with IEEE 802.1Q VLAN support may be up to 1522 bytes long. Increase the default size used to allocate packet storage by 4 bytes. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22apalis-tk1: change (file) names from apalis_tk1 to apalis-tk1Marcel Ziswiler
Change file and other names resp. strings to apalis-tk1 rather than apalis_tk1 due to upstream Linux kernel device tree maintainers no longer allowing any underscores to be used in any such. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22colibri_vf/imx6/7 apalis_imx6: synchronize/improve memory optionsStefan Agner
Synchronize initramfs related configuration options and improve memory layout. The memory layout with an offset of 16MiB allows to boot bigger kernels. With AUTO_ZRELADDR, which is pretty much the standard nowadays, the kernel relacates itself to PC masked with 0xf8000000 plus a text offset of 0x8000 (hence 0x80008000 for Vybrid/i.MX 7 or 0x10008000 for i.MX 6). To avoid that the kernel overwrites itself during uncompress, move the kernel further away from its decompressed location. With a 16MiB offset from the start of memory and a 16MiB distance to the device-tree, we allow kernel up to ~16MiB. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-06-22colibri_imx7: read kernel and device tree from static UBI volumesStefan Agner
With the next release our update scripts write the kernel and device tree in seperate UBI volumes. This allows to use a lot less UBI/UBIFS support in U-Boot, which should lower the risk of hitting bugs in this area. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22colibri_imx7: get rid of obsolete bootaux qspi stuffMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22colibri_imx7: make use of soc environment variable for dt fileStefan Agner
Use the exact SoC information from the soc environment variable to load the device tree file for the Colibri iMX7S or iMX7D. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22colibri_imx7: remove old environmentStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22colibri_imx7: enable stdio deregister to allow USB resetStefan Agner
The command usb reset potentially requires to deregister USB keyboards, hence enable it if USB Keyboards are enabled. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22colibri_imx7: enable resource domain controllerStefan Agner
Enabled RDC (resource domain controller) to isolate peripherals between the A7(s) and M4 core. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22MLK-11408-2 imx: mx7d: Isolate 26 IP resources to domain 0 for A coreYe.Li
In current design, if any peripheral was assigned to both A7 and M4, it will receive ipg_stop or ipg_wait when any of the 2 platforms enter low power mode. We will have a risk that, if A7 enter wait, M4 enter stop, peripheral will have chance to get ipg_stop and ipg_wait asserted same time. There are 26 peripherals impacted by this IC issue: SIM2(sim2/emvsim2) SIM1(sim1/emvsim1) UART1/UART2/UART3/UART4/UART5/UART6/UART7 SAI1/SAI2/SAI3 WDOG1/WDOG2/WDOG3/WDOG4 GPT1/GPT2/GPT3/GPT4 PWM1/PWM2/PWM3/PWM4 ENET1/ENET2 Software Workaround: The solution is set M4 to a different domain with A core. So the peripherals are not shared by them. This way requires the uboot implemented the RDC driver and set the 26 IPs above to domain 0 only. CM4 image will set the M4 to domain 1 only. This patch enables the CONFIG_MXC_RDC for mx7d SABRESD board and ARM2 boards, and setup the 26 IP resources to domain 0. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-06-22apalis_imx6: fix Ethernet when using gigabit switchStefan Agner
U-Boot on Apalis iMX6 has a known problem: Apparently Apalis iMX6 does not works with Gigabit switches... Limiting speed to 10/100Mbps, and setting master mode, seems to be the only way to have a successful PHY auto negotiation. How to fix: Understand why Linux kernel do not have this issue. However, the current work around did not take effect since the generic phy config function (which gets called after the board level work-around) reenabled gigabit advertisment again. Use the newly introduced environment variable to disable gigabit Ethernet advertisement. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22colibri_t20: read kernel and device tree from static UBI volumesDominik Sliwa
With the next release our update scripts write the kernel and device tree in seperate UBI volumes. This allows to use a lot less UBI/UBIFS support in U-Boot, which should lower the risk of hitting bugs in this area. Boot times are also slightly faster (measurements showed an improvement of ~150ms). Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-22apalis_t30: add optional pcie evalboard initialisationMarcel Ziswiler
Implement optional PCIe EvalBoard initialisation which properly reset the PLX (now Avago) PEX 8605 PCIe switch plus PCIe devices on the Apalis Evaluation carrier board. Please note that you will have to enable the second PCIe port in the dts as well e.g.: diff --git a/arch/arm/dts/tegra30-apalis.dts b/arch/arm/dts/tegra30-apalis.dts index be4f4d6..321c7d6 100644 --- a/arch/arm/dts/tegra30-apalis.dts +++ b/arch/arm/dts/tegra30-apalis.dts @@ -59,6 +59,7 @@ }; pci@2,0 { + status = "okay"; nvidia,num-lanes = <1>; }; Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-21apalis_tk1: fix l4t booting by removing noatime mount optionMarcel Ziswiler
Get rid of the noatime mount option as L4T resp. Ubuntu does not seem to like that one at all and rather fails booting as follows: * Starting NVIDIA specific init script [fail] ... * Starting NSM status monitor [ OK ] The disk drive for / is not ready yet or not present. keys:Continue to wait, or Press S to skip mounting or M for manual recovery * Starting NSM status monitor [ OK ] ... * Starting NSM status monitor [fail] * Stopping NSM status monitor [ OK ] * Starting Bridge socket events into upstart [ OK ] The mount now defaults to relatime. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-30colibri_imx7: cleanup configuration header fileMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-30colibri_imx7: add RN5T567 PMIC support to board fileStefan Agner
Configure the Ricoh PMIC RN5T567 at startup to reset the board without delay. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-03-30power: pmic: add Ricoh RN5T567 PMIC supportStefan Agner
Add power driver for Ricoh PMIC used on Colibri iMX7. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-03-09colibri_vf: read kernel and device tree from static UBI volumesColibri_iMX7_LinuxImageV2.6Alpha1_20160315Stefan Agner
With the next release our update scripts write the kernel and device tree in seperate UBI volumes. This allows to use a lot less UBI/UBIFS support in U-Boot, which should lower the risk of hitting bugs in this area. Boot times are also slightly faster (measurements showed an improvement of ~150ms). Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-09apalis_tk1: adjust defargs for l4t r21.4 bootingMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: load flashscript from {board}/ directoryMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: remove fix MAC addr from default configurationMax Krummenacher
As we now have the configblock handling the MAC address is set from the configblock. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: remove CONFIG_SYS_USE_NANDMax Krummenacher
This lives now in colibri_imx7_defconfig Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09cmd_writebcb_mx7: add command to write FCB, DBBT, Bootloader on MX7Max Krummenacher
Code mostly ported from imx-kobs-5.3. MTD partitioning is set accordingly. writebcb: Write Boot Control Block (FCB and DBBT) writeboot: Write bootloadder Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: change mtd partitionining for kobs-ngMax Krummenacher
kobs-ng needs a partition which holds FCB, DBBT, and Bootloader, not FCB, DBBT alone. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09cmd_writebcb.c: add i.MX7 struct membersMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: unify config and environmentMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: remove CONFIG_VIDEO_MODE / panelMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: set fdt_file for Colibri iMX7Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: updateMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09DDR3 conf: autodetect RAM sizeMax Krummenacher
Use get_ram_size() to autodetect up to 2Gbyte of RAM on rank 0. If chips with two ranks would get stuffed one would have to set the size of one rank in DDRC_ADDRMAP0. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7: add initial, cp from mx7sabresdMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09mx7dsabresd: add NAND/UBI to configMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09iMX6/7 soc.c: allow for board supplied serialMax Krummenacher
Introduce CONFIG_SERIAL_TAG_BOARD which removes the definition of void get_board_serial(struct tag_serialnr *serialnr) in order to allow its definition in board specific code. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09Revert "MLK-11408-2 imx: mx7d: Isolate 26 IP resources to domain 0 for A core"Ye.Li
This reverts commit e7d4767331f1a2cbef61b4e89beb73731f267499.
2016-03-09MLK-11767:imx: Modify the u-boot ENV offset for NAND storageYe.Li
The current 36M offset will conflict with NAND FCB firmware2 when the nand chip block is 1MB size. This patch change it to 36M + 1M offset, so the redundant u-boot at firmware2 will not be broken. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11706: imx6sx: SabreSD: Expand malloc pool to 32MSandor Yu
Same issue as ENGR00321137, commit 3695635. GIS module need total 3M+3M+1.5M+1.5M=9M video memory. and sys reserved 16M memory for malloc. When gis module enabled, malloc may failed to allocate memory for other modules, that may cause system hang. Expand malloc pool to 32M. Signed-off-by: Sandor Yu <R01008@freescale.com>
2016-03-09MLK-11718-3: imx: change the NAND env setting addressHan Xu
The previous 8M address for NAND env might conflict with other boot parameters as the NAND block size increasing, change it to 36M to avoid it. Signed-off-by: Han Xu <b45815@freescale.com>
2016-03-09MLK-11718-1: mtd: nand: change the maximum nange page size and oob sizeHan Xu
enlarge the maximum nand page size and oob size to 16k byte and 1280byte. Signed-off-by: Han Xu <b45815@freescale.com>
2016-03-09MLK-11662-1 imx: mx6ul: Change 14x14 LPDDR2 ARM2 memory size to 256MBYe.Li
The actual memory size is 256MB not 512MB, otherwise it has a wrap problem in memory and will cause memtester failed. Signed-off-by: Ye.Li <B37916@freescale.com>