summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-10-18colibri_t20: integrate PWM LED functionalityMarcel Ziswiler
Backlight PWM now runs at 1 kHZ rather than 500kHz. Make PWM B, C, D accessible from userspace. e.g as /sys/class/leds/pwm_b. Make PWM A or C a led PWM depending on MECS_TELLURIUM.
2012-10-18tegra: fix PWM clockMarcel Ziswiler
Fix PWM clock's special registry layout for parent clock.
2012-10-18colibri_t20: enable USB audioMarcel Ziswiler
Enable kernel configuration for USB audio.
2012-10-18colibri_t20: enable IPv6 recommended by systemdMarcel Ziswiler
To avoid the following systemd failure and as recommended we activate IPv6 kernel configuration straight from NVIDIA's tegra_defconfig. [ 21.532106] systemd[1]: could not find module by name='ipv6' [ 21.555061] systemd[1]: Failed to insert 'ipv6'
2012-10-18colibri_t20: analog input ugly hackMarcel Ziswiler
While the ADC platform data passing worked just fine in kernel 2.6.36.2 this currently fails. Therefore introduce an ugly hack to explicitly get said data via a board level call back.
2012-10-18colibri_t20: clean-up ADC platform dataMarcel Ziswiler
Clean-up ADC platform data. While at it fix some white space in the clock initialisation table and add some comment concerning missing AC97 clock mux availability.
2012-10-11tegra: colibri_t30: add more video modesMarcel Ziswiler
Add the following tested (e.g. framebuffer console and X) video modes: - 800x480@60 (e.g. for EDT ET070080DH6) - 800x600@60 - 1024x768@60 - 1024x768@75 - 1280x720@60 aka 720p - 1366x768@60 The define TEGRA_FB_VGA in board-colibri_t30.h can be used to switch between VGA and 800x480.
2012-10-10colibri_t30: fix touch interrupt and tune touch responsivenessMarcel Ziswiler
Enable touch interrupt GPIO and tune STMPE811 platform parameters for better touch responsiveness.
2012-10-10input: stmpe-ts: fix touch release detectionMarcel Ziswiler
Previous HZ / 50 calculation allowed for a touch sampling time of 20 ms which is not sufficient if either the touch detect delay or the settling time is longer than 500 us.
2012-10-10input: stmpe-ts: add BTN_TOUCH eventsMarcel Ziswiler
Add BTN_TOUCH event reporting to stmpe-ts touchscreen driver. This will make this touchscreen driver behave consistently wrt. BTN_TOUCH. cd2d64b1a0a12283d63c9d853d5b1403d5cd6c9d 65db86ac07e2f7f91a552490c0be6a99aab8e4a8
2012-10-03asoc: colibri_t30: initial sgtl5000 codec integrationMarcel Ziswiler
Integrate ALSA SoC SGTL5000 codec on Toradex Colibri T30.
2012-10-03tegra: colibri_t30: hack to avoid clock warningsMarcel Ziswiler
Hack to avoid extensive warnings being logged during boot-up due to CPU clock adjustments before regulator being ready.
2012-10-03tegra: colibri_t30: initial Toradex Colibri T30 L4T R16 supportMarcel Ziswiler
Tested on early prototype Colibri T30 V1.0a eMMC module. Known issues: - spurious boot hang after following kernel message [ 5.595219] Timed out waiting for lock bit on pll pll_a - no audio (SGTL5000) support integrated yet - NAND detection/support disabled for now due to boot hang - USB OTG support disabled for now due to boot hang - trying to spawn L4T R16 X driver seems to hang Note: requires uImage with adjusted entry point/load address as follows mkimage -A arm -C none -O linux -T kernel -a 0x82008000 -e 0x82008000 -n 'Linux-3.1.10-colibri_t30' -d zImage uImage
2012-10-03tegra: colibri_t20: clock clean-upMarcel Ziswiler
Clean-up some of the early clock initialisation hacks.
2012-10-02tegra: colibri_t20: add more video modesMarcel Ziswiler
Add the following tested (e.g. framebuffer console and X) video modes: - 800x480@60 (e.g. for EDT ET070080DH6) - 800x600@60 - 1024x768@60 - 1024x768@75 - 1280x720@70 aka 720p - 1366x768@60 The define TEGRA_FB_VGA in board-colibri_t20.h can be used to switch between VGA and 800x480.
2012-10-01tegra: colibri_t20: fix pwm backlightMarcel Ziswiler
Fix PWM backlight by using PWM<A> rather than PWM<C> by default. Invert brightness value due to unified TFT interface displays (e.g. EDT ET070080DH6) inverted LEDCTRL pin behaviour (e.g. 0V brightest vs. 3.3V darkest) and use PWM frequency of 1 kHz as recommended. Add comment about PWM pin muxing. While at it do some ifdef and indentation clean-up.
2012-10-01usb: colibri-otg: remove tegra_gpio_enableMarcel Ziswiler
Removing tegra_gpio_enable calls as they are supported through set direction calls in the driver.
2012-10-01asoc: tegra20_ac97: remove tegra_gpio_enb/disableMarcel Ziswiler
Removing tegra_gpio_enable and disable calls as they are supported through set direction calls in the driver.
2012-10-01tegra: fix usb_phy build breakage if gadget as moduleMarcel Ziswiler
Add missing symbol exports to address gcc 4.7.2 from oe-core throwing following errors if usb gadget stuff compiled as modules (cf. 328d61af72a8f59f5dc53db8cddf8c8e572ad958).
2012-09-25asoc: colibri_t20: activate microphone biasMarcel Ziswiler
Activate microphone bias which is used to enable microphone ground on Colibri T20.
2012-09-10tegra: colibri_t20: incorporate l4t-r16 changesMarcel Ziswiler
Incorporate L4T R16 changes from NVIDIA Ventana. Note: USB OTG port not functional as of yet.
2012-09-10Merge branch 'l4t/l4t-r16' into colibriMarcel Ziswiler
Merge with latest NVIDIA L4T R16. Only real conflict concerning inverted VBUS gpio support.
2012-09-10tegra: colibri_t20: USB clean-upMarcel Ziswiler
Re-enable USB Ethernet gadget. Clean-up USB platform data.
2012-09-07usb: gadget: f_rndis: Set rndis vendor parametersBenoit Goby
Add a variant of rndis_bind_config to let gadget drivers change rndis vendorID and manufacturer parameters. Signed-off-by: Benoit Goby <benoit@android.com> [make rndis_bind_config a static inline function] Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-02tegra: colibri_t20: fix i2c usageMarcel Ziswiler
The I2C2 controller is used for display EDID via DDC_CLOCK/DATA on X3 pin 15/16. The regular GEN2_I2C pins can not be used for I2C functionality on the Colibri T20. The I2C3 controller can optionally be used via CAM/GEN3_I2C on SODIMM pin 127/133.
2012-08-24mtd: tegra: initialize writebufsizeMarcel Ziswiler
Using UBI on tegra can give messages like: root@colibri-t20:~# ubiattach -m 0 [ 115.218710] UBI: attaching mtd0 to ubi0 [ 115.229108] UBI error: io_init: bad write buffer size 0 for 4096 min. I/O unit ubiattach: error!: cannot attach mtd0 error 22 (Invalid argument) The writebufsize concept was introduce by commit "0e4ca7e mtd: add writebufsize field to mtd_info struct" and it represents the maximum amount of data the device writes to the media at a time. This is an important parameter for UBIFS which is used during recovery and which basically defines how big a corruption caused by a power cut can be. Set writebufsize to the flash page size because it is the maximum amount of data it writes at a time.
2012-08-20usb: gadget: tegra_udc: Enable DR IRQ in udc_starttegra-l4t-r16-rcPreetham Chandru
Currently dr_controller_run() is called only during otg state change. When we unload a gadget driver, for example g_mass_storage gadget driver, dr_controller_stop() is called but when it is loaded back dr_controller_run() won't get called becasue of the if condition failure. i.e if (!udc->transceiver) { dr_controller_run(udc); } So when the gadget driver is loaded for the second time without removing the cable (i.e without otg state change), the device won't get enumerated on the host because DR IRQs are not enabled. This CL fixes the above issue. Bug 1012787 Signed-off-by: Preetham Chandru <pchandru@nvidia.com> Change-Id: Ia127630e24dbe4c1e418163c2b858efb3baa8e45 Reviewed-on: http://git-master/r/114592 (cherry picked from commit be3e9def273181d1b44c1891de8602faebd719a8) Reviewed-on: http://git-master/r/124283 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-20usb: ehci: tegra: Fix Slab corruption errorPreetham Chandru
Give ownership of the DMA buffer back to the processor first and then free the buffer. Otherwise processor won't be able to access the dma mapped buffers and this would lead to slab corruption. When the DMA buffer is freed without a call to dma_sync_single_for_cpu(), the kernel won't be able to set the buffer as POISON FREE and when we acquire this memory back again the kernel will start printing slab corruption output as the memory is not set to POISON FREE Bug 1017884 Bug 1018161 Reviewed-on: http://git-master/r/#change,122151 Signed-off-by: Preetham Chandru R <pchandru@nvidia.com> Reviewed-on: http://git-master/r/122390 (cherry picked from commit 642d37a0eee196d0ce811dd11bb7af5ba281ee3a) Change-Id: I00d6cb185cd2314cccb56f968eb0a05288588c13 Reviewed-on: http://git-master/r/123907 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-15ARM: tegra: usb: regulator on during lp0 on T20Krishna Yarlagadda
Tegra 2 requires regulator to be on during lp0 Bug 1012273 Bug 1030730 Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-on: http://git-master/r/116743 (cherry picked from commit 50331bba385d880f74dd9dcbce8a32d6f4e49f8c) Change-Id: I8106582529fbb5d6fed76e56b32871af8806b918 Reviewed-on: http://git-master/r/123681 Tested-by: Peer Chen <pchen@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-10arm: tegra: fb: Apply new mode even if its currentShashank Sharma
Set activation of a mode forcefully via setting FB_ACTIVATE_FORCE flag. Required for stereo modes also. Bug 1005399 Change-Id: I37872cc2a04abc8774a5f9f9df7d9e90f2c977f6 Signed-off-by: Shashank Sharma <shashanks@nvidia.com> Reviewed-on: http://git-master/r/122087 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-07arm: tegra: cardhu: Reserve 16MB on RAM for HDMIShashank Sharma
Reserve 16MB for HDMI maximum possible resolution (1920x1080) at 32 bpp and double buffering. Change-Id: Id719a875b805723758485f970ab9e2f1a28ed19b Signed-off-by: Shashank Sharma <shashanks@nvidia.com> Reviewed-on: http://git-master/r/121562 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Kiran Adduri <kadduri@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Jon Mayo <jmayo@nvidia.com> Tested-by: Winnie Hsu <whsu@nvidia.com>
2012-08-07video: tegra: fb: Configure dc from fbShashank Sharma
This patch contains following changes: 1. Modify tegra_fb_update_monspecs to select best mode to apply on framebuffer, in HDMI hotplug. 2. Add a console_lock to prevent corruption while fbcon running in multiple threads. 3. Add a tegra_dc_disable/enable in tegra_fb_set_par to reflect the programmed new mode applied on DC. Bug: 1005399 Change-Id: I133b38b00f25f767afc05549550fecde8d092fb2 Signed-off-by: Shashank Sharma <shashanks@nvidia.com> Reviewed-on: http://git-master/r/120932 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Kiran Adduri <kadduri@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-07video: tegra: nvmap: Fix breakage for T20Hiroshi DOYU
NVMAP_CONVERT_CARVEOUT_TO_IOVMM is only available for IOMMU less SoCs. This was introduced by (in 'main'): commit b8b0b4c42fc77d94b8deadaa46f795784f3bbb5e video: tegra: nvmap: Make IOMMU/IOVMM selectable in Kconfig Bug 1017112 Change-Id: I2a6f101b15085ece600f77690bc77adc042eb29f Reviewed-on: http://git-master/r/117976 (cherry picked from commit a68ae587edbc3ca5d3216d39c462abd84f469027) Reviewed-on: http://git-master/r/121409 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com> Tested-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-07ARM: tegra: usb_phy: prevent illegal access to registersRakesh Bodla
Adding the conditions to prevent illegal register access. Bug 993380 Change-Id: I8e275846612cbac70c1f50251d5f5d0700e845b0 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/117289 (cherry picked from commit c1513eaf68090a268f8ec1b2b6c7e7381c16dfdd) Reviewed-on: http://git-master/r/117996 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Preetham Chandru <pchandru@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-03ARM: tegra3: clock: Put graphic clks to safe rangeJong Kim
Initialize graphic and video input clocks in to safe frequency ranges. bug 966041 Change-Id: I48a035b42bad5a6d36f56e2b0610baf0703c3bcd Signed-off-by: Jong Kim <jongk@nvidia.com> (cherry picked from commit c33f503e768c44913af8d96898da43be05cdc01a) Reviewed-on: http://git-master/r/119792 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-02usb: ehci: tegra: prevent illegal register accessRakesh Bodla
Make sure phy is turned ON before reading USB registers. Bug 993380 Bug 1006579 Bug 1018601 Change-Id: Ib951cad822f90f59fe829d016e2c1bda7a7cc243 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/116045 (cherry picked from commit a1a6db7dc88880fb3d4bca0036ce421e4032adae) Reviewed-on: http://git-master/r/117972 Tested-by: Preetham Chandru <pchandru@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Kiran Adduri <kadduri@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-08-02ARM: tegra: usb_phy: prevent illegal access to registersRakesh Bodla
Adding the conditions to prevent illegal register access. Bug 993380 Bug 1006579 Bug 1018601 Change-Id: Ifdeae6c8a16a87cf565ef7c954b363e9de885a20 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/113138 (cherry picked from commit a3c026a229bbce614d7f40319bada1d7bf42942d) Reviewed-on: http://git-master/r/117966 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Preetham Chandru <pchandru@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Kiran Adduri <kadduri@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2012-07-27net: usb: asix: disable failing auto detachT20_LinuxImageV2.0Alpha1_20120808Marcel Ziswiler
Disable failing auto detach stuff for now as it caused the following issue upon cable disconnect: [ 49.504039] eth0: EEPROM (0x18) = : 0800 [ 49.624580] eth0: EVENT: AX_CHK_AUTODETACH
2012-07-25net: usb: asix: update to driver 4.4.0Marcel Ziswiler
We noticed stability issues trying to mount a root file system over NFS. Looks like an updated driver from Asix works much better. BTW: The mainline driver also has issues doing the same: [ 174.422441] asix 1-1:1.0: eth0: asix_rx_fixup() Bad Header Length [ 174.430045] asix 1-1:1.0: eth0: asix_rx_fixup() Bad RX Length 1645 Further investigation pending (e.g. backporting post 3.5 mainline driver).
2012-07-25tegra: colibri_t20: decrease NAND clockMarcel Ziswiler
Looks like the older modules prior to V1.2 using Micron MT29F8G08ABCBB NAND flash parts have some timing issue. Decreasing the NAND flash controller clock from 144 back to 108 MHz seems to make it work again. Further investigation pending (e.g. explicitly setting timing mode 4).
2012-07-20tegra: colibri_t20: fbmem/nvmem handlingMarcel Ziswiler
Clean-up some obsolete init stuff while at it. Add note that V1.1c modules require proper BCT setting 666 rather than 721.5 MHz EMC clock in order for EMC scaling not to crash. Specify zero carveout argument to tegra_reserve() for special handling due to already reserved fbmem/nvmem. Requires our latest U-Boot 2011.06 from today which is compatible to both V1.x as well as V2.x images.
2012-07-20tegra: carveout and framebuffer memory sizingMarcel Ziswiler
Support fbmem in addition to tegra_fbmem kernel argument for backwards compatibility reason. Support nvmem kernel argument for carveout definition to be backward compatible. Add special handling in case of already reserved fbmem/nvmem.
2012-07-20tegra: colibri_t20: emc clean-upMarcel Ziswiler
Fix typo and get rid of obsolete 333 MHz SDRAM table entry.
2012-07-20tegra: colibri_t20: optimised configurationMarcel Ziswiler
Optimise kernel configuration in the following areas: - limit CGROUP options - OPTIMIZE_FOR_SIZE - no more HARMONY, VENTANA, KAEN, PAZ00, TRIMSLICE, WARIO or WHISTLER specific HW support - ARM_ERRATA_752520 - VMSPLIT_2G - no more IP_MULTICAST, IP_PNP_BOOTP, IP_PNP_RARP, TCP_CONG_ADVANCED or IPV6 support - no more NETFILTER_XT support - support Ambicom WL250N-USB Wireless 802.11b/g/n (V1.0a) with Ralink RT3070 chipset (Note: proprietary rt2870.bin firmware required) - UBI support - no more CONFIG_MD or CONFIG_DM support - no more CONFIG_PPP_FILTER or CONFIG_PPP_SYNC_TTY support - no more legacy joystick and PS/2 keyboard/mouse support - provision for external octal UART support - provision for analog input support - no more CONFIG_TEGRA_CAMERA or CONFIG_TEGRA_DTV support - no more CONFIG_TEGRA_DSI or CONFIG_TEGRA_NVHDCP support - no more CONFIG_LCD_CLASS_DEVICE support - CONFIG_HIDRAW and CONFIG_USB_HIDDEV required for Toradex Oak - CONFIG_USB_SERIAL_GENERIC instead of CONFIG_USB_SERIAL_OPTION - CONFIG_USB_ETH failed to build - no more CONFIG_MMC_TEST support - no more CONFIG_MSDOS_FS support - no more CONFIG_LOCKUP_DETECTOR, CONFIG_DEBUG_SLAB, CONFIG_DEBUG_MUTEXES or CONFIG_DEBUG_SG support - no more CONFIG_CRYPTO_TEST support
2012-07-18net: wireless: bcm4329: Fix GCC 4.6 warningDan Willemsen
This module has -Werror turned on, so this was causing the build to break on GCC 4.6: drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_pmksa': drivers/net/wireless/bcm4329/wl_iw.c:5149:5: error: array subscript is above array bounds [-Werror=array-bounds] drivers/net/wireless/bcm4329/wl_iw.c:5152:5: error: array subscript is above array bounds [-Werror=array-bounds] It's a partial 'backport' of a change made to the bcmdhd driver: commit 09a8dc7361d0e603d9935ec7f736fabaa2e6dc7a net: wireless: bcmdhd: Combined P2P fix Change-Id: Ie62ad82f884c213553772ac91eaf85e17a807503 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/88694 GVS: Gerrit_Virtual_Submit Reviewed-by: Stephen Warren <swarren@nvidia.com>
2012-07-18asoc: tegra2: fix ac97 das build dependencyMarcel Ziswiler
Building an ac97 only configuration failed due to missing SND_SOC_TEGRA20_DAS. While at it fix build time warning caused by two unused local variables.
2012-07-18tegra: fix usb_phy build breakage if gadget as moduleMarcel Ziswiler
Add missing symbol exports to address gcc 4.7.1 from oe-core throwing following errors if usb gadget stuff compiled as modules: ERROR: "tegra_usb_phy_memory_prefetch_on" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! ERROR: "tegra_usb_phy_memory_prefetch_off" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! ERROR: "tegra_usb_phy_charger_detect" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! ERROR: "tegra_usb_phy_power_off" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! ERROR: "tegra_usb_phy_close" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! ERROR: "tegra_usb_phy_power_on" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! ERROR: "tegra_usb_phy_open" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined! While at it following build time warning addressed as well: arch/arm/mach-tegra/usb_phy.c: In function 'utmi_phy_postresume': arch/arm/mach-tegra/usb_phy.c:1678:16: warning: unused variable 'inst' [-Wunused-variable]
2012-07-18tegra: fix tegra_emc_to_cpu_ratio() if cpu runs > 1 GHzMarcel Ziswiler
Function erroneously checked the > 1 GHz case assuming cpu frequency being in Hz rather than kHz.
2012-07-17regulator: tps6586x support for tps658623 and tps658643Marcel Ziswiler
From a regulator point of view those PMICs differentiate in their SM2 voltage tables. While the older tps658621a and tps658621d as utilised on Harmony resp. Ventana have a range from 3000 to 4550 mV the tps658623 goes from 1700 to 2475 mV and the tps658643 just from 1025 to 1800 mV. Using its VERSIONCRC register the type of PMIC is queried and the right ranges applied.
2012-07-16ARM: tegra: iovmm: Fix build error w/o CONFIG_IOVMMHiroshi DOYU
Update function prototype along with: commit 6cbf4c7465b7b70936cb422b509da0ad0829c306 ARM: tegra: iovmm: Allow alloc_client to take struct device Change-Id: I11d173429413ab268f6ab789d90f321e3d33de2c Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/115391 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>