summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2015-07-22MLK-11123-17 usb: common: remove of_usb_otg_adp_supportLi Jun
Since we have of_usb_set_otg_caps to cover all otg related features, remove of_usb_otg_adp_support. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit aff0f1027cf1d98ea757f440ac6743eed2d6e168)
2015-07-22MLK-11123-16 usb: chipidea: otg: remove adp_support from ci_hdrc_platform_dataLi Jun
Since we introduce usb_otg_caps in ci_hdrc_platform_data to cover all otg related features, remove adp_support from ci_hdrc_platform_data. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit 9eb98ab92fda810838427addfd9a5c3c60ba272e)
2015-07-22MLK-11123-15 usb: otg: remove bcdOTG from usb_otg_descriptorLi Jun
Remove bcdOTG from usb_otg_descriptor since we introduce usb_otg20_descriptor for OTG 2.0 or above, and usb_otg_descriptor is only for OTG 1.x. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit 12128ce1aff92c3ca1ee37214f3fb9a3ac8f5d27)
2015-07-22MLK-11123-10 usb: gadget: add otg descriptor allocate and init interfaceLi Jun
Allocate usb otg descriptor and initialize it according to gadget's otg capabilities, if usb_otg_caps is not set, keep settings as current gadget drivers. With this 2 new interfaces, gadget can use usb_otg_descriptor for OTG 1.x, and usb_otg20_descriptor for OTG 2.0 or above, and otg features can be decided by the combination of usb hardware property and driver config. Reviewed-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit 0587b916c2e8b6ad09e35568cf8503c99f4e1ced)
2015-07-22MLK-11123-8 usb: chipidea: set usb gadeget's otg capabilitiesLi Jun
Set gadget's otg capabilities according to controller's capability and otg properties in device tree. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit ec53d399f649b9d3eeefd0e4f1b7770241f9db63)
2015-07-22MLK-11123-7 usb: common: add API to set otg features by device treeLi Jun
Check property of usb hardware to get otg version and if SRP, HNP and ADP are disabled. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit 0fc1c9fa52cfad6474667c3ef6cad9b2f00b8960)
2015-07-22MLK-11123-4 usb: add usb_otg_caps to usb_gadget structureMacpaul Lin
Add usb_otg_caps pointer to usb_gadget structure to indicate its otg capabilities. Signed-off-by: Macpaul Lin <macpaul@gmail.com> Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit b81a1215ac75f52a95554668617461c8c3318050)
2015-07-22MLK-11123-3 usb: otg: add usb_otg_caps structure for otg capabilitiesLi Jun
This patch adds a structure usb_otg_caps to cover all otg related capabilities of the device, including otg revision, and if hnp/srp/adp is supported. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit 87ebfda21aabd0c4ca9001045533f89b1c01bda5)
2015-07-22MLK-11123-2 usb: add USB_OTG_ADP definitionMacpaul Lin
Add USB_OTG_ADP definition for usb_otg_descriptor.bmAttributes. Signed-off-by: Macpaul Lin <macpaul@gmail.com> Signed-off-by: Li Jun <jun.li@freescale.com> Acked-by: Peter Chen <peter.chen@freescale.com> (cherry picked from commit 7775cc3c4cb8740d98d4a79b9152898fc5472e2a)
2015-07-22MLK-11123-1 usb: add usb_otg20_descriptor for OTG 2.0 and aboveLi Jun
OTG 2.0 introduces bcdOTG in otg descriptor to identify the OTG and EH supplement release number with which the OTG device is compliant, this patch adds structure usb_otg20_descriptor for OTG 2.0 and above. Then the bcdOTG should be removed for usb_otg_descriptor in gadget drivers. Signed-off-by: Macpaul Lin <macpaul@gmail.com> Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit 34c14f444ba653832d0b7d6f5bc747c047b576bb)
2015-07-22MLK-11200 usb: otg: avoid DMA to kernel stack for HNP pollingLi Jun
HNP polling uses a kernel stack variable when sending the HNP polling control message, which causes dma-debug to complain, fix it by adding host_req_flag to otg_fsm struct, so it's done by kmallocing. Signed-off-by: Li Jun <jun.li@freescale.com> (cherry picked from commit 05b5f53b2c4d71761454b47852d5c5a48c5cc93a)
2015-06-30MLK-11178-01 thermal: add a check to avoid orderly_poweroff twiceBai Ping
When temperature >= the 'critical_trip' temperature, the common framework code will call 'orderly_poweroff' function to power off the system. During the power off procedure the thermal framework will go on polling the temp, this will lead to recall the 'orderly_poweroff' again. In the first poweroff flow, some system resource has been freezed, then if the secondary 'orderly_poweroff' frees the resource again, it will lead to kernel dump. Signed-off-by: Bai Ping <b51503@freescale.com>
2015-06-10MLK-11046: arm: imx: clk-imx7d: add adc_root_clkAdrian Alonso
* Add ADC root clock IMX7D_ADC_ROOT_CLK * Update device tree adc node to use IMX7D_ADC_ROOT_CLK Signed-off-by: Adrian Alonso <aalonso@freescale.com>
2015-06-10MLK-10795-1 clock: correct the clock for CSIRobby Cai
correct the clock for CSI Signed-off-by: Robby Cai <r63905@freescale.com> (cherry picked from commit 966477ebcc41a5711e884dfc19998bcad775bfc4)
2015-06-05MLK-10256-03: gpr: Add mipi gpr bit defineSandor Yu
Add mipi csi bits define in gpr head file. Signed-off-by: Sandor Yu <R01008@freescale.com>
2015-06-05MLK-11005-3 usb: chipidea: add OTG ADP support for chipidea usb driverLi Jun
ADP(Attach Detection Protocol) is part of USB OTG 2.0 release, which can be used to find device attachment after session ends(vbus is off). This patch adds OTG ADP feature for chipdea usb driver. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-06-05MLK-11005-2 usb: common: usb-otg-fsm: remove ADP timers when ADP is not activeLi Jun
When otg fsm leaves a_idle or b_idle, ADP probe and sense should be stopped, therefore ADP timers should be removed. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-06-05MLK-11005-1 usb: common: add API to get if OTG ADP is support in device treeLi Jun
Check property of usb hardware to get if ADP is supported. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-06-05MLK-11015-2 imx: rpmsg: add rpmsg for imx amp socRichard Zhu
- enable the rpmsg support for imx amp soc - add the notify mechanism to notify imx_rpmsg in mu isr when there is msg sent from remote m4. - Make sure that the vring alignment is 4096 on both linux and mqx - add double check on MU msg transfer, make sure that the MU MSG is handled by the other side core. Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
2015-06-05MLK-11038 ARM: imx6: add per_bch clk for imx6ulBai Ping
per_bch is used for fabric, need to be enabled when using bch for RAWNAND operation. Signed-off-by: Bai Ping <b51503@freescale.com>
2015-06-01MLK-9618-8 usb: chipidea: otg: add A idle to B disconnect timerLi Jun
B-device detects that bus is idle for more than TB_AIDL_BDIS min and begins HNP by turning off pullup on DP, this allows the bus to discharge to the SE0 state. This timer was missed and failed with one PET test, this patch is to fix this timing issue. Signed-off-by: Li Jun <b47624@freescale.com>
2015-06-01MLK-9617-7 usb: otg: add hnp_polling flag in struct otg_fsmLi Jun
This patch adds a flag hnp_polling to indicate if HNP polling is supported. Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit b19d4b1110fe1fb2ec3141233781a1e016c9a9cf)
2015-06-01MLK-9638-4 usb: ehset: test: start timer for B host switch role backLi Jun
After B device as host enumerates A peripheral and sets configuration, B host should start to hand host role back to A device when this timer expires. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit 3f4a8c8a20ef69721f9e7886b8d245036d41d91a)
2015-06-01MLK-9638-2 usb: otg: test: add otg_hnp_reqd flag in struct otg_fsmLi Jun
This patch adds flag otg_hnp_reqd in struct otg_fsm to indicate A device as host wants to start HNP sequence. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit 92382e06c6902731b05dcbb0db4f0ebfa486969f)
2015-06-01MLK-9638-1 usb: test: define otg_hnp_reqd wIndex byte valueLi Jun
This patch adds otg_hnp_reqd wIndex high byte value for otg test mode. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit c334dc80bc2672aab012cad6926d819feaf4634d)
2015-06-01MLK-9637-4 usb: chipidea: otg: test: add otg_srp_reqd timer for start srpLi Jun
This patch adds a timer for chipidea otg fsm driver to start data pulse after A host ends the session. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit 35e92b59080b58925c3b96e36511056cb51d4a00)
2015-06-01MLK-9637-2 usb: otg: test: add otg_srp_reqd flag in otg_fsmLi Jun
This patch adds flag otg_srp_reqd in struct otg_fsm to indicate A device as host wants B-UUT to do SRP once it ends the session. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit 8e5f1b6b12ec77ec591909b09727049ffff37b9c)
2015-06-01MLK-9637-1 usb: test: define otg_srp_reqd wIndex byte valueLi Jun
This patch adds otg_srp_reqd wIndex high byte value for otg test mode. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit 34660f7aa14972630622406b9dbfc7a106d8d15d)
2015-06-01MLK-9606-2 usb: otg: test: start tst_maint timer and set otg_vbus_off flagLi Jun
This patch adds 2 variables: tst_maint and otg_vbus_off, tst_maint is to check if current session for test device; otg_vbus_off is to notify if A device need turn off vbus immediately after B device disconnects. The otg test device handling is added into ehset driver, for that device, A-device should start a timer for maintain the session, and set otg_vbus_off flag according to its bcdDevice value. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> (cherry picked from commit 78a2c14bdea4b8e334c7e0afad074b61b71193cb)
2015-06-01MLK-10969-6 video: mipi_dsi_samsung: the initial code for samsung's mipi dsiFancy Fang
The initial source code for the new mipi dsi module which can support the basic necessary functions(blank/unblank, set brightness and etc). New functions can be added if required later. Signed-off-by: Fancy Fang <chen.fang@freescale.com>
2015-06-01MLK-10979-2 imx: mx7d add ocotp clkPeng Fan
Add IMX7D_OCOTP_CLK, sourcing from ipg_root_clk. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2015-05-29MLK-10934 mtd: use memcpy to replace the memcpy_fromioHuang Shijie
During the read of NOR, the kernel actually calls the inline_map_copy_from() to read the data out. And inline_map_copy_from() will use the memcpy_fromio() to do the real job. The memcpy_fromio macro maps _memcpy_fromio() in the current code. But the _memcpy_fromio() will use readb() to do the copy work one byte by one byte. This makes the read performance of NOR very slow(about 2~3MB/s). A similiar discussion could be found in: http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/003860.html This patch replace the memcpy_fromio with memcpy which is optimized by the kernel. The following is the result from mtd_speedtest with M29W256GL7AN6E: ================================================= mtd_speedtest: MTD device: 2 mtd_speedtest: not NAND flash, assume page size is 512 bytes. mtd_speedtest: MTD device size 4194304, eraseblock size 131072, page size 512, count of eraseblocks 32, pages per eraseblock 256, OOB size 0 mtd_speedtest: testing eraseblock write speed mtd_speedtest: eraseblock write speed is 845 KiB/s mtd_speedtest: testing eraseblock read speed mtd_speedtest: eraseblock read speed is 19504 KiB/s mtd_speedtest: testing page write speed mtd_speedtest: page write speed is 845 KiB/s mtd_speedtest: testing page read speed mtd_speedtest: page read speed is 19140 KiB/s mtd_speedtest: testing 2 page write speed mtd_speedtest: 2 page write speed is 846 KiB/s mtd_speedtest: testing 2 page read speed mtd_speedtest: 2 page read speed is 19320 KiB/s mtd_speedtest: Testing erase speed mtd_speedtest: erase speed is 233 KiB/s mtd_speedtest: Testing 2x multi-block erase speed mtd_speedtest: 2x multi-block erase speed is 225 KiB/s mtd_speedtest: Testing 4x multi-block erase speed mtd_speedtest: 4x multi-block erase speed is 224 KiB/s mtd_speedtest: Testing 8x multi-block erase speed mtd_speedtest: 8x multi-block erase speed is 225 KiB/s mtd_speedtest: Testing 16x multi-block erase speed mtd_speedtest: 16x multi-block erase speed is 225 KiB/s mtd_speedtest: Testing 32x multi-block erase speed mtd_speedtest: 32x multi-block erase speed is 225 KiB/s mtd_speedtest: Testing 64x multi-block erase speed mtd_speedtest: 64x multi-block erase speed is 224 KiB/s mtd_speedtest: finished ================================================= (cherry-picked from: f1e5914ffd82d5326cbd30507d4f37d02a0da099) Signed-off-by: Huang Shijie <b32955@freescale.com>
2015-05-26MLK-10897-1 ARM: imx7d: Add CAAM support for i.mx7dDan Douglass
CAAM only has a single clock in i.mx7d. Logic was added to initialize only the single clock. The Secure Memory registers moved in CAAM era included in i.mx7d. This required changes to support access to two different versions of the register map. The registers are access through a data structure that overlay the register region. Two new Secure Memory register structures were created to support the different versions. Logic was also added to determine which version is implemented based on the CAAM era, and access functions were added to support register access to the Secure Memory Command and Status registers. Signed-off-by: Dan Douglass <dan.douglass@freescale.com>
2015-05-21MLK-10930-3 usb: chipidea: add delay if phy-clkgate-delay-us property is presentLi Jun
For some platforms, time delay is requried between putting PHY into low power mode and gate PHY clock. Signed-off-by: Li Jun <jun.li@freescale.com>
2015-05-19MLK-10919 net: phy: micrel: add ksz8081 resume functionFugang Duan
Add ksz8081 resume function since the phy has some non-standard register init process that has some fixup. Signed-off-by: Fugang Duan <B38611@freescale.com>
2015-05-18MLK-10913-2: ARM: imx: Add the SIM clock support on i.MX6UL.Luwei Zhou
Set the usb_otg_pll as the pareent of clks[IMX6UL_CLK_SIM_PRE_SEL].The RM is wrong in description of 6~9 bit of CCM_CCGR6. These are used as clock gate of SIM1 and SIM2. Update the clock tree code. Signed-off-by: Luwei Zhou <b45643@freescale.com>
2015-05-15MLK-10879-01 ARM: imx: update clk info for ca7_secondary_sel on i.mx6ulBai Ping
On i.MX6UL, the 'CA7_SECONDARY_SEL' clk can be used by the ARM core as clock source. Signed-off-by: Bai Ping <b51503@freescale.com>
2015-05-08MLK-10788-2 ARM: imx: rename busfreq from imx6 to imxAnson Huang
As busfreq need to cover both i.MX6 and i.MX7 and maybe later SoCs, so better to change the name to support common imx SoC. Signed-off-by: Anson Huang <b20788@freescale.com>
2015-05-08MLK-10814-1 ARM: imx: no need to add audio mclk for imx6ulZidan Wang
No need to add audio mclk for imx6ul, because codec mclk is routing from sai2 mclk instead of audio mclk. This reverts commit 18283848bcf6ee5a6e713517a5e35e21c5b7b657. Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
2015-05-08MLK-10777 ARM: imx: add audio mclk for imx6ulZidan Wang
add audio mclk for imx6ul Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
2015-05-08MLK-10765 usb: otg-fsm: move 2 otg fsm timers definition to otg_fsm_timerLi Jun
B_DATA_PLS(data-line pulse time) and B_SSEND_SRP(session end to SRP init) are also from OTG&EH 2.0 Specification and they are not chipidea specific. Signed-off-by: Li Jun <jun.li@freescale.com> Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-05-08MLK-10759-2 imx: imx6ul support enent2 and phy fixup for MIIFugang Duan
1. add enet2 clock init 2. add micrel phy fixup for MII mode Signed-off-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2015-05-08MLK-10724-4 ARM: imx: add i.mx6ul msl supportAnson Huang
i.MX6UL is a new SOC, add MSL support, including timer, clk tree and cpu etc.. Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Bai Ping <b51503@freescale.com> Signed-off-by: Fugang Duan <B38611@freescale.com>
2015-05-08MLK-10724-1 ARM: dts: add i.mx6ul dts supportAnson Huang
Add new SOC i.MX6UL dtb file support, including ddr3 arm2 board support, clock file and pinfunc head file. Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Bai Ping <b51503@freescale.com> Signed-off-by: Fugang Duan <B38611@freescale.com>
2015-05-08MLK-10643 ARM:imx:Fix kernel build break when CPU_FREQ or CPU_IDLE is not ↵Ranjani Vaidyanathan
defined. Kernel build fails when CPU_FREQ or CPU_IDLE is disabled in the kernel config. This patch fixes the problem. When CPU_FREQ is disabled the system will run at the frequency setup by uboot. Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com>
2015-05-08MLK-10723-1 mxc IPUv3: Remove some unused IPU deblock register basesLiu Ying
The driver doesn't have functional support for IPU_DISP0/1_BASE, IPU_ISP_REG_BASE, IPU_DP_REG_BASE, IPU_IRT_REG_BASE, IPU_LUT_REG_BASE, and IPU_ISP_TBPR_REG_BASE. Let's remove them to save some lines. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2015-05-08MLK-10712 mxc IPUv3: PRG: Fix PRE/PRG muxingLiu Ying
The i.MX6QP IOMUX_GPR5 PRE_PRG_SEL0/1 fields control the PRE/PRG muxing. The muxing could be described by the following table. ------------------------------------------------------------------ |\ | PRG0/IPU0 | PRG1/IPU1 | | mux |-----------------------------------------------------------| | \ |ch0/ch23 |ch1/ch27 |ch2/ch28 |ch0/ch23 |ch1/ch27 |ch2/ch28 | |------------------------------------------------------------------| | PRE0 | fixed | n/a | n/a | n/a | n/a | n/a | |------------------------------------------------------------------| | PRE1 | n/a | A(2b'00)| A(2b'01)| n/a | A(2b'10)| A(2b'11)| |------------------------------------------------------------------| | PRE2 | n/a | B(2b'00)| B(2b'01)| n/a | B(2b'10)| B(2b'11)| |------------------------------------------------------------------| | PRE3 | n/a | n/a | n/a | fixed | n/a | n/a | ------------------------------------------------------------------ (Note - A: GPR5 bit12-13, B: GPR5 bit14-15) We should bind PRG[x] channel[y] with IPU[x] channel[y+26] statically instead of dynamically, where x=0or1, y=1or2. Also, the values for A/B cannot be the same due to a SoC design requirement(even if one of the PRE1/PRE2 is disabled, the two values cannot be the same). This patch fixes the PRE/PRG muxing logic. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2015-05-08MLK-10618: ARM: imx: fix the clock tree setting for i.MX6QPBai Ping
According the latest Reference Manual of i.MX6QP, the GPU3d_AXI_CLOCK_ROOT and GPU2D_AXI_CLOCK_ROOT are derived from MMDC_CH0_AXI_CLOCK_ROOT. The origin GPU2D_AXI_CLOCK_ROOT in CCM is not used anymore, the origin GPU3D_AXI_CLOCK_ROOT in CCM is change to PRE_CLOCK_ROOT used by the PRE0/1/2/3. Tested-by: Liu Ying <Ying.Liu@freescale.com> Signed-off-by: Bai Ping <b51503@freescale.com>
2015-05-08MLK-10600-1: mxc: sim: Add SIM IP driver support on the i.MX7d-12x12-arm2 ↵Luwei Zhou
platform. This driver is based on the current code which runs the the EMV test on the i.MX258 platform. Since there are still many cases that can't pass on the i.MX258 and i.MX7d platform. The driver will need to be improved after per-test work. Just check in as a base code. There would be definitly some timing improvement work to do in the future. Signed-off-by: Luwei Zhou <b45643@freescale.com>
2015-05-08MLK-10571-1 clk: core: add CLK_SET_PARENT_ON flags to support clocks require ↵Dong Aisheng
parent on On Freescale i.MX7D platform, all clocks operations, including enable/disable, rate change and re-parent, requires its parent clock on. Current clock core can not support it well. This patch introduce a new flag CLK_SET_PARENT_ON to handle this special case in clock core that enable its parent clock firstly for each operation and disable it later after operation complete. The most special case is for set_parent() operation which requires both parent, old one and new one, to be enabled at the same time during the operation. Acked-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com> Signed-off-by: Dong Aisheng <b29396@freescale.com>