summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2016-07-14mcc_linux.c: silence compiler warningsMax Krummenacher
arch/arm/mach-imx/mcc_linux.c:100:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (mcc_shm_ptr->gate_val != (MCC_CORE_NUMBER + 1)) ^~ arch/arm/mach-imx/mcc_linux.c:102:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' return MCC_SUCCESS; ^~~~~~ Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2016-06-27imx6qdl-apalis.dtsi: Update display timings for LDB (LVDS)Bhuvanchandra DV
Update the display timings for LDB (LVDS), as LDB driver now supports the native-mode property. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-27colibri_imx6:Add MCP2515 SPI CAN controller to DTDominik Sliwa
MCP2515 is available on colibri evaluation board, include it in the device tree for colibri i.mx6. Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-24apalis_imx6/colibri_imx6: Enable ADV7280 decoder for iMX6 modulesSanchayan Maity
Enable ADV7280 decoder for iMX6 modules. ADV7280 and ADV7180 have same addresses viz. 0x21 respectively, changing the ADV7280 address to 0x20 would result in a conflict with MAX9526. As a result enable ADV7280 by default and disable ADV7180. Signed-off-by: Sanchayan Maity <sanchayan.maity@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-06-24imx6qdl-apalis-eval.dtsi: follow changed compatibility stringMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-06-24ARM: dts: imx7s-colibri: add fsl,imx7d compatible stringStefan Agner
The main i.MX 7 SoC compatible string is fsl,imx7d. By that compatible string, the whole machine init in mach-imx7d.c is registered. While some might not be necessary for i.MX 7Solo (e.g. SMP init), it seems not to hurt. On the other hand, not using the i.MX 7 machine init bypasses a lot of low level init such as PM or basic ethernet clocking. So far it seemed not to have caused negative effects (likely since the bootloader initialized those stuff already reasonable...). Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-24ARM: imx: fix clock for i.MX 7 when Cortex-M4 is runningStefan Agner
Commit 619c5719cf ("MLK-11566-7 ARM: imx: support single SOC config") ifdef'd clock functionality for SoloX only if Cortex-M4 is running. However, i.MX 7 also provides a Cortex-M4, hence the true branch in those if statements have been taken. Since the whole block was ifdef'd, the functions were rendered useless for i.MX 7. Fix this by just doing the same thing as if Cortex-M4 is not running. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-24ARM: dts: imx7d-colibri: use 24MHz clock for UART3Stefan Agner
Use the same clock parent for UART3 as we use for UART2 and UART1. Using the 240MHz clock caused issue for the Cortex-M4 core (freeze/ UART2 stopped working). Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-06-24ARM: dts: apalis_imx6: specify 512MiB of memoryStefan Agner
Specify a safe value for the memory node. Apalis iMX6 Dual is the module with the least amount of memory of our Apalis module family, hence specify 512MiB. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-21ARM: disable_nonboot_cpus before poweroffColibri_iMX6_LinuxImageV2.6Beta1_20160331Apalis_iMX6_LinuxImageV2.6Beta1_20160331Stefan Agner
If poweroff takes a bit more time (e.g. due to I2C call), it is quite likely that another timer interrupt fires. Timer interrupt get broadcasted through the timer interrupt callback tick_handle_oneshot_broadcast. This code broadcasts the timer interrupt to all CPU's in tick_broadcast_oneshot_mask. The only function which removes CPU from this mask is tick_shutdown_broadcast_oneshot which ultimately get called by _cpu_down (in kernel/cpu.c). The function disable_nonboot_cpus makes sure that the CPU's get properly taken down and _cpu_down gets called. With that no more broadcasts are sent to CPU's which are no longer online. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-18ARM: dts: imx7d-colibri: disable power keyStefan Agner
Disable SNVS power key functionality by default for Colibri i.MX 7 modules. The SNVS power key uses the ONOFF signal, which is directly controlled by reset and therefor not really a power key available to the user. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09imx7d-colibri.dts: fix double declared UART1 DSR/RI pinmuxingColibri_iMX7_LinuxImageV2.6Alpha1_20160315Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09imx7d-colibri.dts: add PMIC / TOUCH interrupt gpioMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09imx7d-colibri.dts: implement mmc card detectMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7_defconfig: fix NAND / Thermal Sensor / USBMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09arm/mach-imx: add i.MX7 features to SOC_IMX7Max Krummenacher
Allow for a build targeting iMX 7 devices without relying on configuration from i.MX6 and friends. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7_defconfig: cleanup and sync with Colibri iMX6Stefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-09ARM: imx: fix i.MX7D build without i.MX6Stefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-09ARM: dts: imx7d-colibri: use external Ethernet PHY clockMax Krummenacher
Add workaround for M4 NMI issue. Set the Ethernet PHY reference clock to be generated externaly from the i.MX 7 by default (Colibri i.MX 7 V1.1 sample batch) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09mach-imx7d.c: use enet_out clk to decide on PHY clockMax Krummenacher
The i.MX 7 can provide a reference clock to the PHY or use a reference clock from an external circuit. If the device-tree node with compatible "fsl,imx7d-fec" has a clock named enet_out then provide the clock from the i.MX 7, if such a clock is missing use a clock provided from an external circuit. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09ARM: dts: imx7s-colibri: add working dts for soloMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09ARM: dts: imx7d-colibri: add AD7879 device tree nodeStefan Agner
Add device tree node for resistive touch screen controller AD7879. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-09ARM: dts: imx7d-colibri: add Cortex-M4 related nodesStefan Agner
Add TCM and OCRAM specifications required by the PM code, otherwise booting Linux will fail in imx7d_pm_init. Also add mcctest, mcctty and rpmsg nodes required to enable rpmsg based communciation examples between the two cores. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-08ARM: imx: gpc: exit with error if IPG clock is missingMax Krummenacher
If IPG clock of the GPC block is missing, we won't be able to get the IPG bus clock later on. Return with an error if the IPG clock is missing. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> [exit with error on missing IPG clock] Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-08ARM: imx: enet1: output reference clockMax Krummenacher
Enable output driver of Ethernet reference clock. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-08colibri_imx7_defconfig: add initialMax Krummenacher
Do not include MXC V4L2 capture drivers for now, they cause compile time errors: | ERROR: "foreground_sdc_deselect" [drivers/media/platform/mxc/capture/mxc_v4l2_capture.ko] undefined! | ERROR: "bg_overlay_sdc_deselect" [drivers/media/platform/mxc/capture/mxc_v4l2_capture.ko] undefined! | ERROR: "bg_overlay_sdc_select" [drivers/media/platform/mxc/capture/mxc_v4l2_capture.ko] undefined! | ERROR: "foreground_sdc_select" [drivers/media/platform/mxc/capture/mxc_v4l2_capture.ko] undefined! | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-08ARM: dts: imx7d-colibri: add initial device treeMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-08arm: imx7d-pinfunc: add daisychain setting for UART2_DTE_RXMax Krummenacher
MX7D_PAD_UART2_TX_DATA__UART2_DTE_RX was missing the daisychain register address and value resulting in a non working RX path. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-08Revert "arm: Export cache flush management symbols when !MULTI_CACHE"Max Krummenacher
This reverts commit 87b3f4287b8a9d31ad4d732fac769d97dcf7469a. Has been fixed upstream differently 3241216e250430a27b30eaf7f7df3e5e006acfb5
2016-03-08imx6 device-tree: reduce SPI clock to datasheet maximumMax Krummenacher
According to the datasheet the SPI clock (for read) must not exceed 1 / 55ns for i.MX6Q/D and 1 / 43ns for i.MX6DL/S. Reflect that correctly in the device tree. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-03-08imx6dl-colibri-cam-eval-v3.dts: add fusion_F07 backlight extensionsMax Krummenacher
Synchronize with imx6dl-colibri-eval-v3.dts. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-03-08apalis/colibri_imx6: synchronize USB serial optionsStefan Agner
Compile USB device classes such as WDM and CDC ACM as modules. Enable FTDI USB-to-serial adapter chips and serial console which allows to use USB serial device drivers as a serial console at boot time. Compile USB driver for GSM and CDMA modems (Option and others) as a module. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-08ARM: dts: imx: fix invalid #address-cells valueTim Harvey
The invalid value of #address-cells in the imx6 pcie host controller node causes of_irq_parse_raw() to incorrectly advance through an interrupt-map table of more than one interrupt. We also take the opportunity to drop the unused #size-cells here. This patch resolves this issue and allows proper interrupt mapping for an imx6 pcie host connected to a P2P bridge when using legacy interrupts. Signed-off-by: Tim Harvey <tharvey@gateworks.com> Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Cc: Jingoo Han <jg1.han@samsung.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-samsung-soc <linux-samsung-soc@vger.kernel.org> Cc: Richard Zhu <r65037@freescale.com> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Simon Horman <horms@verge.net.au> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Ben Dooks <ben-linux@fluff.org> Cc: linux-tegra <linux-tegra@vger.kernel.org> Cc: Kukjin Kim <kgene.kim@samsung.com> Cc: Shawn Guo <shawn.guo@linaro.org> Cc: Grant Likely <grant.likely@linaro.org>
2016-03-08ARM: dts: apalis_imx6: stream-line MMC/SD drive strengthMarcel Ziswiler
This stream-lines the drive strength pad settings across both the MMC and the SD slots. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-08ARM: dts: apalis_imx6: add explicit okay status to adv7180 & max9526Marcel Ziswiler
This adds explicit okay status' to adv7180 and max9526 nodes to be more in-line with the Evaluation board device-tree. Please note that this does not have any functional effect as by default any node is enabled anyway. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-08ARM: dts: apalis_imx6: fix Ethernet PHY reset & interruptMarcel Ziswiler
This fixes the Ethernet PHY reset and interrupt handling. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-08ARM: dts: apalis_imx6: clarify module type and carrier board modelMarcel Ziswiler
Clarify exact Apalis iMX6Q/D module type and Ixora carrier board in model node. While at it also make sure the compatible node fits into 80 char length lines. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-08ARM: dts: apalis_imx6: happy new yearMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2015-12-26pm-imx6.c: fix power off by stop modeMax Krummenacher
With the 3.14.28 release of the kernel imx6_stop_mode_poweroff() does not enter stop mode. Thus the function does not switch of power but returns. This seems to be caused by the second processor which has been stopped. Set the WFI event mask for the stopped processor works around the issue. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2015-12-26process.c: if power off fails, do at least a haltMax Krummenacher
Otherwise power_machine_power_off() returns and e.g. unexpected interrupts create stack traces. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2015-12-26apalis/colibri_imx6: Enable RTL8192CU driverBhuvanchandra DV
Enable RTL8192CU driver to support LM006 USB WiFi adapter. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2015-12-26imx6qdl-apalis.dtsi: adapt to changed ldb driver (LVDS)Max Krummenacher
The ldb driver which controls the LVDS output got heavily overhauled and its configuration from the cmdline seem no longer working. This adds a configuration to the device tree which can be activated from the cmdline with: video=mxcfb0:dev=ldb Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2015-12-26ARM: apalis/colibri_imx6: add namespace support in defconfigStefan Agner
Newer systemd variants need network namespace support for various services such as systemd-hostnamed or systemd-localed. (cherry picked from commit 4bb3acd58f8d2074cd8e7a6ddb914a0954d0906a)
2015-12-26apalis/colibri_imx6: remove duplicate stmpe adc from defconfigMarcel Ziswiler
Remove duplicate CONFIG_STMPE_ADC from both defconfigs. While at it also remove obsolete commented out CONFIG_NET_VENDOR_ATHEROS being not set on Colibri iMX6.
2015-12-26Apalis/Colibri iMX6 dtbs: add routing for line-inMax Krummenacher
We do provide the line in jack, so add it in the routing.
2015-12-26Apalis/Colibri iMX6 dtbs: add status okay to the camerasMax Krummenacher
This allows for easier disabling of unused cameras.
2015-12-26apalis_imx6_defconfig: provide PCIe SATA/AHCI driver as a moduleMax Krummenacher
2015-12-26ARM: imxqdl-colibri: Increase speed field of DSIP0 padsBhuvanChandra.DV
Increase SPEED field from 50MHz to 100MHz the avoid pixel flickering on RGB666 at Full HD resolutions. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> (cherry picked from commit a700491ac9cc18d27ddfadee3a7787039485ed40) Conflicts: arch/arm/boot/dts/imx6qdl-colibri.dtsi commit 5202ebd189bac35987bf79335fe4568aabbf2b0e: The capacitive touch 10" display does react badly react badly to the current pad control settings. E.g. only the upper half of the display was somewhat readable with the lower half being whitish.
2015-12-26imx6qdl-apalis.dtsi: use correct function for CAM_MCLKMax Krummenacher
2015-12-26imx6qdl-colibri.dtsi: mux CAM MCLK pin only onceMax Krummenacher