]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
11 years agoENGR00217388: imx6sl_arm2: Add software poweroff support via SNVS
Robby Cai [Tue, 17 Jul 2012 06:14:35 +0000 (14:14 +0800)]
ENGR00217388: imx6sl_arm2: Add software poweroff support via SNVS

Add s/w poweroff support via SNVS setting.
Use `poweroff' command to power down ARM2 board.

Signed-off-by: Robby Cai <R63905@freescale.com>
11 years agoENGR00216013-4 vpu: add phy address check ioctl.
Zhang Jiejing [Mon, 16 Jul 2012 05:53:26 +0000 (13:53 +0800)]
ENGR00216013-4 vpu: add phy address check ioctl.

this patch is adding a ioctl for vpu to check the phy addr before vpu
start using this addr, this use case is common in some Direct Render case,
the VPU 's framebuffer phy memory is allocate by GPU, if the address given
by GPU have some wrong, like pass a virtual address, vpu will hang the system.

Add this IOCTL to be the goalkeeper, this IOCTL can check whether the phy
address was virtual memory or the address is within phy memory of your DDR.

The phy memory valild check is now doing best effort:
1. check whether is was allocated by vmalloc(), which must be a phy un-continus
2. check whether is was beyound DDR's top address, usually the other driver
   pass a virtual address as a phy address.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
11 years agoENGR00216013-3 vpu: add VPU_IOC_PHYMEM_CHECK ioctl.
Zhang Jiejing [Mon, 9 Jul 2012 04:58:16 +0000 (12:58 +0800)]
ENGR00216013-3 vpu: add VPU_IOC_PHYMEM_CHECK ioctl.

Add VPU_IOC_PHYMEM_CHECK ioctl in header file.
This IOCTL will check the phy memory address is valid or not.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
11 years agoENGR00216013-2 mx6: not call memblock_free after reserve memory.
Zhang Jiejing [Mon, 16 Jul 2012 05:51:30 +0000 (13:51 +0800)]
ENGR00216013-2 mx6: not call memblock_free after reserve memory.

Remove call memblock_free after reserve memory with memblock_allocate().
The function of memblock_free is to remove the memory block from reserve list
of memblock, it will totally lost the info about how much phy memory
we have.

Skipping call this can make the reserved memory be accountable in
memblock With no side-effect.

After doing this, we can know how much our phy memory is, then can add check
in our driver like(vpu) to check the phy memory valid or not before vpu start
use the address.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
11 years agoENGR00216013-1 memblock: add memblock_end_of_DRAM_with_reserved() function.
Zhang Jiejing [Mon, 9 Jul 2012 04:38:05 +0000 (12:38 +0800)]
ENGR00216013-1 memblock: add memblock_end_of_DRAM_with_reserved() function.

add a function to check the end address including reserved memory,
this API can provide the top address of phy memory,
it can be used to check if the phy memory is valild in some driver
like VPU.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
11 years agoENGR00217120 mmc: esdhc: implement std tuning for fsl sdhc ip
Ryan QIAN [Mon, 25 Jun 2012 23:39:36 +0000 (07:39 +0800)]
ENGR00217120 mmc: esdhc: implement std tuning for fsl sdhc ip

1. in mx6sl, it adds sd3.0 uhs mode capability indicator bits.
2. in mx6sl, exe_tune and smp_clk_sel bits for standard tuning procedure
have been put in ACMD12_ERR reg

Signed-off-by: Ryan QIAN <b32804@freescale.com>
11 years agoENGR00217122 mmc: esdhc: move sd3.0 tuning routine into pltfm
Ryan QIAN [Fri, 13 Jul 2012 07:11:31 +0000 (15:11 +0800)]
ENGR00217122 mmc: esdhc: move sd3.0 tuning routine into pltfm

in mx6q/dl, move fsl tuning procedure into platform driver code from common
code hacking.

Signed-off-by: Ryan QIAN <b32804@freescale.com>
11 years agoENGR00217371: imx6sl_arm2: Add WDOG_B pad configuration
Robby Cai [Tue, 17 Jul 2012 02:54:11 +0000 (10:54 +0800)]
ENGR00217371: imx6sl_arm2: Add WDOG_B pad configuration

Add missing WDOG_B pad configuration. Default setting is GPIO function
which is not appropriate for WDOG_B generation.

Signed-off-by: Robby Cai <R63905@freescale.com>
11 years agoENGR00217242 [MX6SL]: VDDSOC_CAP voltage to 1.1V in idle mode
Nancy Chen [Tue, 17 Jul 2012 03:52:58 +0000 (22:52 -0500)]
ENGR00217242 [MX6SL]: VDDSOC_CAP voltage to 1.1V in idle mode

Drop VDDSOC_CAP voltage from 1.2V to 1.1V in idle mode.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
11 years agoENGR00217258 mxc_vpu: return error when ioctl was not supported.
Zhang Jiejing [Mon, 16 Jul 2012 01:51:47 +0000 (09:51 +0800)]
ENGR00217258 mxc_vpu: return error when ioctl was not supported.

MXC_VPU will return 0 if IOCTL don't support, for user space, it think
this IOCTL success, but it's needs actually return a failed return
value.

Signed-off-by Zhang Jiejing <jiejing.zhang@freescale.com>

11 years agoENGR00216961: MMC/SDIO: gate off sdio clk when MMC_POWER_OFF is set
Ryan QIAN [Wed, 11 Jul 2012 00:50:12 +0000 (08:50 +0800)]
ENGR00216961: MMC/SDIO: gate off sdio clk when MMC_POWER_OFF is set

1. For sdio card, only when MMC_POWER_OFF is set,
sdhci_disable_clk will be called for sdio. otherwise sdio clk
will not be gated.
2. Set MMC_CAP_POWER_OFF_CARD caps in esdhc, so that
sdio_bus power off and clock gate off card through
to pm_runtime interface.

Signed-off-by: Ryan QIAN <b32804@freescale.com>
11 years agoENGR00217123 VPU kernel driver: enable/disable PU LDO
Hongzhang Yang [Fri, 13 Jul 2012 10:20:01 +0000 (18:20 +0800)]
ENGR00217123 VPU kernel driver: enable/disable PU LDO

VPU driver will enable/disable PU LDO by calling regulator API

Enable PU LDO in vpu_open
Disable PU LDO in vpu_release

Signed-off-by: Hongzhang Yang <Hongzhang.Yang@freescale.com>
11 years agoENGR00216293 V4L2 output: Check input params for progressive tiled format
Wayne Zou [Fri, 13 Jul 2012 07:01:59 +0000 (15:01 +0800)]
ENGR00216293 V4L2 output: Check input params for progressive tiled format

Check input params for progressive tiled format to remind the application
input wrong params and make driver more robust.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00216109 MX6Q/DL clock: VDOA needs OCRAM clock and DDR clock enabled
Wayne Zou [Thu, 5 Jul 2012 05:14:46 +0000 (13:14 +0800)]
ENGR00216109 MX6Q/DL clock: VDOA needs OCRAM clock and DDR clock enabled

VDOA needs OCRAM clock and DDR clock enabled when video playback,
and set bus clock high to finish work quickly.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00216976 ESAI: add support for 4,6channel p2p
Chen Liangjun [Fri, 13 Jul 2012 06:11:19 +0000 (14:11 +0800)]
ENGR00216976 ESAI: add support for 4,6channel p2p

Add support for 4, 6 channels p2p playback in ESAI.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
11 years agoENGR00216998: battery: add usb charger voltage offset sysfs interface
Rong Dian [Fri, 13 Jul 2012 05:07:38 +0000 (13:07 +0800)]
ENGR00216998: battery: add usb charger voltage offset sysfs interface

add usb charger voltage offset sysfs interface

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00209905 WM8962: support for continuously playback diff sample bit streams
Gary Zhang [Wed, 11 Jul 2012 02:15:42 +0000 (10:15 +0800)]
ENGR00209905 WM8962: support for continuously playback diff sample bit streams

support for continuously playback different sample bit audio
streams with -Dplughw:0,0 option
such as the command: 'aplay -Dplughw:0,0 16bit.wav 24bit.wav'
before prohibit reenter hw_params, now remove this limitation
to support this feature.

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00217018 [Mx6 ]Need to set 1.1V as PU default voltage
Anson Huang [Thu, 12 Jul 2012 09:58:11 +0000 (17:58 +0800)]
ENGR00217018 [Mx6 ]Need to set 1.1V as PU default voltage

1. Need to set 1.1V as default PU value, as when first time VPU
or GPU try to enable PU regulator, it will use this default
value as PU voltage setting.
2. For DL, as its default setpoint is set to middle point,
we need to add a usecount for 400M PFD, because when system
enter 24M, it will disable 400M PFD if its previous setpoint
is middle, if not add this usecount when we init the bus freq
setpoint, then the usecount will be wrong when first time system
enter 24M bus mode.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00216955 MX6 General : Fix a typo when defining OCOTP fuse name
Eric Sun [Thu, 12 Jul 2012 05:28:58 +0000 (13:28 +0800)]
ENGR00216955 MX6 General : Fix a typo when defining OCOTP fuse name

The name in BANK2, "SOTPMK1" should be "OTPMK1"

Signed-off-by: Eric Sun <jian.sun@freescale.com>
11 years agoENGR00216946: battery: increase update period to 2 minutes
Rong Dian [Thu, 12 Jul 2012 03:20:17 +0000 (11:20 +0800)]
ENGR00216946: battery: increase update period to 2 minutes

increase update period to 2 minutes. Due to improper hardware design,
when enable HDCP function, the I2C2 bus pins function is change to DDC
function,the CPU loading is high when I2C failed transfer data via I2C
bus,so decrease battery update voltage frequency.

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00172077 [MX6Q_ARD]TVIN: Kernel dump and Error Messages
Israel Perez [Mon, 9 Jul 2012 16:59:23 +0000 (11:59 -0500)]
ENGR00172077 [MX6Q_ARD]TVIN: Kernel dump and Error Messages

adv7180.c code was not working properly in this new release because some
changes done in mxc_v4l_capture.c driver.
Also mostly of the error messages and kernel dump problem which were related
to csi_enc are already fixed on this release.
In order to fix on previous releases csi and ipuv3 fixes
should be applied or back ported.

Signed-off-by: Israel Perez <B37753@freescale.com>
11 years agoENGR00216031 [MX6]Need to force bus freq to highest point when suspend
Anson Huang [Fri, 6 Jul 2012 11:10:06 +0000 (19:10 +0800)]
ENGR00216031 [MX6]Need to force bus freq to highest point when suspend

1. When bus freq is at 400M setpoint, currently bus freq will not
set to high setpoint when suspend, but some drivers which need
high bus freq enable clock before bus freq resume, so the request
of high bus freq will be ignore until next high bus freq device is
enabled,it will result in some devices need high bus freq but bus freq
dirver stay at med setpoint. So we need to force bus freq to
highest setpoint before suspend to avoid such scenario.

2. Clean up PU LDO turn on/off, move to regulator driver and maintain by
VPU and GPU driver.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00216282 [MX6 SABREAUTO(ARD)] No mxs-perfmon.0 directory
Eric Sun [Wed, 11 Jul 2012 03:21:17 +0000 (11:21 +0800)]
ENGR00216282 [MX6 SABREAUTO(ARD)] No mxs-perfmon.0 directory

The problem is caused because "mx6_board_init" don't add the
corresponding device node. Problem resolved after add them.

Signed-off-by: Eric Sun <jian.sun@freescale.com>
11 years agoENGR00211653 [MX6Q ARD] IMX UART add support for loopback mode.
Israel Perez [Wed, 30 May 2012 21:00:06 +0000 (16:00 -0500)]
ENGR00211653 [MX6Q ARD] IMX UART add support for loopback mode.

ttymxc serial uart driver add  support loopback mode.
returns TIOCM_LOOP set when reading the status.

Signed-off-by: Israel Perez <B37753@freescale.com>
11 years agoENGR00216327: battery: fail to update battery voltage with usb charger attached
Rong Dian [Tue, 10 Jul 2012 11:23:50 +0000 (19:23 +0800)]
ENGR00216327: battery: fail to update battery voltage with usb charger attached

when usb charger is online, driver also updates battery voltage

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00216254 mx6 sabresd battery:change battery status update strategy
Lin Fuzhen [Tue, 10 Jul 2012 01:57:53 +0000 (09:57 +0800)]
ENGR00216254 mx6 sabresd battery:change battery status update strategy

update the  battery info just when the value is changed.

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
11 years agoENGR00215810-2 AHCI: sata drops to 1.5Gbps after suspend/resume several times
Richard Zhu [Tue, 10 Jul 2012 05:14:02 +0000 (13:14 +0800)]
ENGR00215810-2 AHCI: sata drops to 1.5Gbps after suspend/resume several times

Add the AHCI platform suspend/resume function callback to
fix this issue.

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00215810-1 AHCI: sata drops to 1.5Gbps after suspend/resume several times
Richard Zhu [Tue, 10 Jul 2012 02:31:06 +0000 (10:31 +0800)]
ENGR00215810-1 AHCI: sata drops to 1.5Gbps after suspend/resume several times

Add the AHCI platform suspend/resume function callback to
fix this issue.

Signed-off-by: Richard Zhu <Hong-Xing.Zhu@freescale.com>
11 years agoENGR00216268 Ov5642 camera:Fix green line issue for 2 modes
Liu Ying [Tue, 10 Jul 2012 04:00:17 +0000 (12:00 +0800)]
ENGR00216268 Ov5642 camera:Fix green line issue for 2 modes

This patch fix green line issue on captured frames for
720x480p@30 and 720x576p@30 modes by changing register
0x302c's bit[6:5] to 0'11 to enhance output driving
capability to 4x.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00215792 USB:fix gadget issue when boot kernel with USB connected
make shi [Thu, 5 Jul 2012 05:57:59 +0000 (13:57 +0800)]
ENGR00215792 USB:fix gadget issue when boot kernel with USB connected

- USB gadget disconnected when system boot kernel with USB connected. Commit
68b1c60f7f6c436340206679a18d61d9 induce the issue, call dr_discharge_line(1)
to ensure no abnormal usb wakeup interrupt happen after plug out the cable.
There are two cases cause dr_discharge_line(1) of fsl_otg_event() be called.
One case is switch the otg mode form Host mode to Device mode. Another case is
boot kernel with USB connected. The host_first_call is true when system boot
kernel with USB connected, otherwise it is false. So dr_discharge_line(true)
should not be called in fsl_otg_event() if host_first_call is true.

- USBOH3 clock is still on after plug out the cable when boot kernel with USB
connected, If the suspended bit is 0x1 and stopped is 0x0,the case is regarded
as suspend connected to usb charger. USB clock will be turn on, otherwise the
second suspend is processed without USB clock and it causes system hang. But
system boot kernel with cable connected, suspended is 0x1 and stopped is 0x0.
USB clock will be on by mistake. And stopped is cleared in dr_controller_run()
when system boot kernel with USB connected. We should check the suspended and
stopped bit before call dr_controller_run() to fix the issue.

Signed-off-by: make shi <b15407@freescale.com>
11 years agoENGR00215999 Export API for update gpu active clock dynamically
Loren Huang [Fri, 6 Jul 2012 10:59:08 +0000 (18:59 +0800)]
ENGR00215999 Export API for update gpu active clock dynamically

The patch is from vivante.

Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00216008 ov5642: Add exposure calculation when set mode
Yuxi Sun [Fri, 6 Jul 2012 09:29:03 +0000 (17:29 +0800)]
ENGR00216008 ov5642: Add exposure calculation when set mode

Originally only QSXGA mode use exposure calculation, now we enable
this function on every mode to fix image dark problem.

Signed-off-by: Yuxi Sun <b36102@freescale.com>
11 years agoENGR00216010-3: spdc: Make clock enable/disable paired for PIX and AXI
Robby Cai [Mon, 9 Jul 2012 06:05:59 +0000 (14:05 +0800)]
ENGR00216010-3: spdc: Make clock enable/disable paired for PIX and AXI

Really disable pix/axi clock when SPDC is idle.

Signed-off-by: Robby Cai <R63905@freescale.com>
11 years agoENGR00216010-2: [e|s]pdc: re-initialize the controller after resume
Robby Cai [Fri, 6 Jul 2012 10:07:24 +0000 (18:07 +0800)]
ENGR00216010-2: [e|s]pdc: re-initialize the controller after resume

Because we have DISPLAY power down/up request when do suspend/resume,
EPDC/SPDC has been powered off and powered on again, thus re-initialization
is needed.

Signed-off-by: Robby Cai <R63905@freescale.com>
11 years agoENGR00216010-1: gpc: Add missing display_pup_req config after system resumes
Robby Cai [Fri, 6 Jul 2012 09:51:13 +0000 (17:51 +0800)]
ENGR00216010-1: gpc: Add missing display_pup_req config after system resumes

There's only DISPLAY power down request setting before system suspends,
but without the paired DISPLAY power up request setting after resume.
This will cause ePxP/EPDC/SPDC module nonfunctional because the modules
will be powered down once pdn_req is asserted but not powered up again.

With this patch, ePxP/EPDC/SPDC survived (need reinitialize each, however)
on resume.

Signed-off-by: Robby Cai <R63905@freescale.com>
11 years agoENGR00216001 MX6 Kernel : Fix a typo when defining "IO_ADDRESS" macro
Eric Sun [Fri, 6 Jul 2012 09:40:34 +0000 (17:40 +0800)]
ENGR00216001 MX6 Kernel : Fix a typo when defining "IO_ADDRESS" macro

When defining macro "IO_ADDRESS", the address is checked against PERIPH
address.
     ((x) <= (unsigned long)(ARM_PERIPHBASE + ARM_PERIPHBASE)) ...
The second "ARM_PERIPHBASE" is obviously a typo, should changed to
ARM_PERIPHBASE_SIZE

Signed-off-by: Eric Sun <jian.sun@freescale.com>
Signed-off-by: Garg Nitin <b37173@freescale.com>
11 years agoENGR00216005 OV5640 mipi camera:Correct sensor chip name
Liu Ying [Fri, 6 Jul 2012 12:41:05 +0000 (20:41 +0800)]
ENGR00216005 OV5640 mipi camera:Correct sensor chip name

This patch corrects ov5640 mipi camera sensor chip name
to distinguish it from ov5640 csi camera.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00215955 cpufreq interactive mx6: set cpufreq lowest point if cpu idling
Robin Gong [Fri, 6 Jul 2012 05:07:25 +0000 (13:07 +0800)]
ENGR00215955 cpufreq interactive mx6: set cpufreq lowest point if cpu idling

Consider the below scenario:  there is one CPU enter idle state before
switch happen, and the CPU frequency is set on high point(1G with userspace
cpufreq profile). After cpufreq profile is switched to interactive, all of the
cpus's target_freq will be set to the current CPU frequency  1G. Then after one
sample window, interactive profile will revalue the current cpu loading in
every cpu(except idle cpu), and get the desired frequency and compared with
target_freq to decide up or down frequency.  Until all of cpus's target_freq
is lower than desired frequency , down frequency will happen. But the idle
CPU's frequency has been set on 1G , so cpu frequency miss the chance to set
lower cpu frequency , although there is no loading in all of cpus.CPU frequency
will be down unless the idled CPU exit idle to revalue cpu loading and get the
right target_freq, in the worst case, it will never happen.

Now we can do this:
If we judge cpu idle state and set taget_freq to lowest frequency when switch
to interactive, then CPU frequency modify will never be blocked on idled CPU.
Signed-off-by: Robin Gong <B38343@freescale.com>
11 years agoENGR00215970 [MX6]Enable BUS freq driver by default
Anson Huang [Fri, 6 Jul 2012 14:33:02 +0000 (22:33 +0800)]
ENGR00215970 [MX6]Enable BUS freq driver by default

Enable BUS freq by default for i.MX6DQ and i.MX6DL

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00215968[MX6]Enable bus freq for i.MX6DL
Anson Huang [Fri, 6 Jul 2012 14:11:35 +0000 (22:11 +0800)]
ENGR00215968[MX6]Enable bus freq for i.MX6DL

Compared to i.MX6DQ, DL is not having high setpoint,
so just map the high setpoint to med setpoint for
DL.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00215844 OV5642 camera: Add FPS checking for mode change
guoyin.chen [Thu, 5 Jul 2012 06:11:09 +0000 (14:11 +0800)]
ENGR00215844 OV5642 camera: Add FPS checking for mode change

For fast mode setting, ov5642_change_mode does not check the fps setting.
New mode in ov5642_change_mode will have to be the same FPS as previous mode.
Only schedule the fast setting if previous fps is same as new one.

Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
11 years agoENGR00215893 [MX6]No need to set high bus when hdmi_clk is enabled
Anson Huang [Fri, 6 Jul 2012 04:37:54 +0000 (12:37 +0800)]
ENGR00215893 [MX6]No need to set high bus when hdmi_clk is enabled

hdmi_clk is used to access hdmi register only, it is not a high
speed clk, no need to set high bus flag.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00215884-2 MX6 SabreSD:Refine OV csi camera reset sequence
Liu Ying [Thu, 5 Jul 2012 10:58:13 +0000 (18:58 +0800)]
ENGR00215884-2 MX6 SabreSD:Refine OV csi camera reset sequence

This patch refines OV csi camera reset sequence according to
OV's recommendation:
reset --------------------|_____|----------------
                        ->| 1ms |<-
pwdn  ----------|_________________________|------
              ->|   5ms   |<- ->|   5ms   |<-
    ->|   5ms   |<-

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit b4d3898a01c232b2525637fa1bb443f8b6208d0e)

11 years agoENGR00215884-1 MX6 SabreSD:Refine OV mipi camera reset sequence
Liu Ying [Thu, 5 Jul 2012 10:42:02 +0000 (18:42 +0800)]
ENGR00215884-1 MX6 SabreSD:Refine OV mipi camera reset sequence

This patch refines OV mipi camera reset sequence according to
OV's recommendation:
reset --------------------|_____|----------------
                        ->| 1ms |<-
pwdn  ----------|_________________________|------
              ->|   5ms   |<- ->|   5ms   |<-
    ->|   5ms   |<-

This change makes the OV mipi camera be at a correct status
after reset, otherwise, the wrong status of OV mipi camera
will reduce the ~2.78V analog camera power to ~2.3V, which
causes random thin colorful lines on OV5642 CSI camera image
as OV5642 CSI camera uses the same analog power.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 9e78895d8856651b769908e63d4ebc514314eeaa)

11 years agoENGR00215851 ASRC:fix datawidth type mismatch
Chen Liangjun [Thu, 5 Jul 2012 07:10:14 +0000 (15:10 +0800)]
ENGR00215851 ASRC:fix datawidth type mismatch

When ESAI call ASRC for p2p playback. The datawidth may be
changed. The cpu dai would configure the ESAI data width according
to the modified datawidth(output_bits). The type mismatch between output_bits
and cpu dai's switch branch cause cpu dai's hardware parameter set
fail.

Match the type of output_bits to the switch branch in cpu dai's hardware
parameter configuration function.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
11 years agoENGR00215797: max11801:don't update wrong ADC data when I2C is unavailable
Rong Dian [Thu, 5 Jul 2012 03:19:28 +0000 (11:19 +0800)]
ENGR00215797: max11801:don't update wrong ADC data when I2C is unavailable

If fail to communicate with I2C2 in any potential possibility,
driver doesn't update wrong ADC sample data into buf for battery.

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00215762 OV5642 camera:Improve XGA@30 image quality
Liu Ying [Wed, 4 Jul 2012 09:32:13 +0000 (17:32 +0800)]
ENGR00215762 OV5642 camera:Improve XGA@30 image quality

This patch changes output drive capability of ov5642
camera register 0x302c's bit[6:5] to 0'11 to get 4x
drive capability so that green lines cannot be seen
in the captured frames.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit f3e5d9944e989e66167cbbaa4f3433d8a9baf84d)

11 years agoENGR00215718: battery: fix issure that coulomb data increases in discharger
Rong Dian [Wed, 4 Jul 2012 04:51:17 +0000 (12:51 +0800)]
ENGR00215718: battery: fix issure that coulomb data increases in discharger

Hardware cannot support battery internal resistance and coulomb calculation,
estimate data only by battery voltage.The true battery voltage will change to
a bit lower about 50mV~500mV than normal voltage with playing game or video or
other consumption actions, then change back to normal voltage with finishing
playing game or video or other consumption actions in the discharger stage.

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00215607: CAAM: kernel can't boot up sometimes
Terry Lv [Wed, 4 Jul 2012 05:34:55 +0000 (13:34 +0800)]
ENGR00215607: CAAM: kernel can't boot up sometimes

ahash still has a scatterlist problem which cause this problem.
Thus we disable ahash feature in defconfig and wait for later patch to
fix it.
Also, we remove caam high freq flag to make bus freq run.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00182441 V4L2 output: set screen black when resizing during video playback
Wayne Zou [Mon, 2 Jul 2012 06:54:07 +0000 (14:54 +0800)]
ENGR00182441 V4L2 output: set screen black when resizing during video playback

set screen black when resizing during video playback.
Fix bug: when video playback, switch to full screen or leave full screen,
sometime it has the colour stripe

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00215668 [MX6]Only restore PU field value instead of whole reg value
Anson Huang [Tue, 3 Jul 2012 20:09:37 +0000 (04:09 +0800)]
ENGR00215668 [MX6]Only restore PU field value instead of whole reg value

Only need to save and restore PU field register value instead of the
whole CORE REG value to avoid changing SOC and ARM voltage.

No need to increase BUS freq before CPU freq increase when system
is in audio bus mode.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00215592 - EPDC fb: Fix bug in selecting next LUT when 0-31 busy
Danny Nold [Mon, 2 Jul 2012 17:57:58 +0000 (12:57 -0500)]
ENGR00215592 - EPDC fb: Fix bug in selecting next LUT when 0-31 busy

If LUT 63 is busy and LUTs 0-31 are busy, the epdc_choose_next_lut
function was not correctly selecting an available LUT between 32-62.
Instead, it was returning 0.  This fixes that issue by properly
offsetting the available LUT from the second 32-bit segment of the
64-bit LUT field.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00180493 SabreSD: register perfmon driver
Frank Li [Tue, 3 Jul 2012 05:23:56 +0000 (13:23 +0800)]
ENGR00180493 SabreSD: register perfmon driver

Fix perfmon:no mxs-perfmon.0 directory after inserting mxs-perfmon.ko.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00215531-6 V4L2:OV8820_mipi:Correct sensor data attribute
Liu Ying [Mon, 2 Jul 2012 09:01:10 +0000 (17:01 +0800)]
ENGR00215531-6 V4L2:OV8820_mipi:Correct sensor data attribute

This patch corrects sensor data struct by adding static
attribute.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00215531-5 V4L2:OV5642:Correct sensor data attribute
Liu Ying [Mon, 2 Jul 2012 09:00:49 +0000 (17:00 +0800)]
ENGR00215531-5 V4L2:OV5642:Correct sensor data attribute

This patch corrects sensor data struct by adding static
attribute.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00215531-4 V4L2:OV5640_mipi:Correct sensor data attribute
Liu Ying [Mon, 2 Jul 2012 08:58:57 +0000 (16:58 +0800)]
ENGR00215531-4 V4L2:OV5640_mipi:Correct sensor data attribute

This patch corrects sensor data struct by adding static
attribute.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00215531-3 V4L2:OV5640:Correct sensor data attribute
Liu Ying [Mon, 2 Jul 2012 08:58:13 +0000 (16:58 +0800)]
ENGR00215531-3 V4L2:OV5640:Correct sensor data attribute

This patch corrects sensor data struct by adding static
attribute.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00215531-2 V4L2:OV3640:Correct sensor data attribute
Liu Ying [Mon, 2 Jul 2012 08:56:07 +0000 (16:56 +0800)]
ENGR00215531-2 V4L2:OV3640:Correct sensor data attribute

This patch corrects sensor data struct by adding static
attribute.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00215531-1 V4L2:ADV7180:Correct sensor data attribute
Liu Ying [Mon, 2 Jul 2012 08:42:47 +0000 (16:42 +0800)]
ENGR00215531-1 V4L2:ADV7180:Correct sensor data attribute

This patch corrects sensor data struct by adding static
attribute.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00213014-8 HDMI: add head define for HDMI HDCP
Sandor Yu [Tue, 26 Jun 2012 10:00:25 +0000 (18:00 +0800)]
ENGR00213014-8 HDMI: add head define for HDMI HDCP

Added HDMI I2C Master register define and bit setting.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00213014-7 MXC EDID: Export function mxc_edid_parse_ext_blk
Sandor Yu [Tue, 26 Jun 2012 09:57:58 +0000 (17:57 +0800)]
ENGR00213014-7 MXC EDID: Export function mxc_edid_parse_ext_blk

Export function mxc_edid_parse_ext_blk.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00213014-6 MXC EDID: define mxc_edid_parse_ext_blk function
Sandor Yu [Tue, 26 Jun 2012 09:55:13 +0000 (17:55 +0800)]
ENGR00213014-6 MXC EDID: define mxc_edid_parse_ext_blk function

added function mxc_edid_parse_ext_blk defined.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00213014-5 MX6x SabreSD: IOMUX setting for HDMI HDCP
Sandor Yu [Tue, 26 Jun 2012 09:51:35 +0000 (17:51 +0800)]
ENGR00213014-5 MX6x SabreSD: IOMUX setting for HDMI HDCP

Added enable_pins/disable_pins functions for Mx6q/dl sabresd HDMI.
Added HDMI DDC IOMUX setting.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00213014-4 HDMI HDCP: IOMUX define for MX6X
Sandor Yu [Tue, 26 Jun 2012 09:47:16 +0000 (17:47 +0800)]
ENGR00213014-4 HDMI HDCP: IOMUX define for MX6X

Added IOMUX and pad setting for HDMI DDC for mx6q/mx6dl.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00213014-3 MX6x ARM2: Added IOMUX setting for HDMI HDCP
Sandor Yu [Tue, 26 Jun 2012 09:45:10 +0000 (17:45 +0800)]
ENGR00213014-3 MX6x ARM2: Added IOMUX setting for HDMI HDCP

Added enable_pins/disable_pins functions for Mx6q/dl arm2 HDMI.
Added HDMI DDC IOMUX setting.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00213014-2 MX6x Sabreauto: IOMUX setting for HDMI HDCP function
Sandor Yu [Tue, 26 Jun 2012 09:42:55 +0000 (17:42 +0800)]
ENGR00213014-2 MX6x Sabreauto: IOMUX setting for HDMI HDCP function

Added enable_pins/disable_pins functions for Mx6q/dl sabreauto HDMI.
Added HDMI DDC IOMUX setting.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00213014-1 MX6x Sabrelite: IOMUX setting for HDMI HDCP
Sandor Yu [Tue, 26 Jun 2012 09:28:33 +0000 (17:28 +0800)]
ENGR00213014-1 MX6x Sabrelite: IOMUX setting for HDMI HDCP

Added enable_pins/disable_pins functions for Mx6q sabrelite HDMI.
Added HDMI DDC IOMUX setting.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00215182-2 MXC HDMI CEC: Add basic support for HDMI CEC
Zhang Xiaodong [Mon, 2 Jul 2012 07:02:41 +0000 (15:02 +0800)]
ENGR00215182-2 MXC HDMI CEC: Add basic support for HDMI CEC

- Add MXC HDMI CEC to kconfig and makefile under driver/mxc
- Add initial mxc_hdmi-cec.c file to provide basic HDMI CEC
functionality:
    - Basic HDMI CEC resource initilize functional
    - Support for sending and receiving CEC message via CEC line
    - Report HDMI cable status to CEC lib at userspace.
Signed-off-by: Zhang Xiaodong <B39117@freescale.com>
11 years agoENGR00215182-1 sabresd: Add basic support for HDMI CEC
Zhang Xiaodong [Mon, 2 Jul 2012 06:48:35 +0000 (14:48 +0800)]
ENGR00215182-1 sabresd: Add basic support for HDMI CEC

- Changes to IOMUX to allow HDMI CEC controller to use KEY_ROW2
  pin that it needs
- Add cec device in platform-mxc_hdmi.c
- Add MXC_HDMI_CEC in imx6_defconfig

Signed-off-by: Zhang Xiaodong <B39117@freescale.com>
11 years agoENGR00215492-4: Enable caam ahash feature in config.
Terry Lv [Mon, 2 Jul 2012 04:57:30 +0000 (12:57 +0800)]
ENGR00215492-4: Enable caam ahash feature in config.

Enable caam ahash feature in config.
Add caam init to other 6q platforms.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215492-3: Detect HW features during alg registration
Steve Cornelius [Sat, 30 Jun 2012 23:11:00 +0000 (16:11 -0700)]
ENGR00215492-3: Detect HW features during alg registration

i.MX6 instantiates a CAAM with a low-power MDHA block, which does not
compute digests larger than 256 bits. Since the driver installs handlers
for hashes longer than 256 bits in several places, added the ability to
read and interpret the CHA version and instantiations registers, and then
only register handlers that it can support.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215492-2: Add SGT error to formerly reserved entry
Steve Cornelius [Sat, 30 Jun 2012 23:08:09 +0000 (16:08 -0700)]
ENGR00215492-2: Add SGT error to formerly reserved entry

Add SGT error to formerly reserved entry.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215492-1: Fix DMA size in extended descriptor for ahash_digest()
Steve Cornelius [Fri, 29 Jun 2012 22:53:46 +0000 (15:53 -0700)]
ENGR00215492-1: Fix DMA size in extended descriptor for ahash_digest()

Save of DMA size in extended descriptor was missing, thus crashes could
occur during post-request unmapping.

Also, removed lingering DEBUG def that shouldn't have been there.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215516 MX6x HDMI, keep HDMI HPD clock on when display blank
Sandor Yu [Mon, 2 Jul 2012 08:20:31 +0000 (16:20 +0800)]
ENGR00215516 MX6x HDMI, keep HDMI HPD clock on when display blank

HDMI Hotplug function should work when display blank,
So keep HDMI HPD clock on.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00215354 MX6 USB Host:fix kernel dump when no platform_data
make shi [Fri, 29 Jun 2012 08:56:02 +0000 (16:56 +0800)]
ENGR00215354 MX6 USB Host:fix kernel dump when no platform_data

Kernel dump when no platform_data.
PC is at hub_thread+0xdb0/0x1538
LR is at 0xbfd43400
pc : [<80311eb4>]    lr : [<bfd43400>]    psr: 60000013
sp : bfdbff08  ip : ba3cd500  fp : ba3cd600
r10: bfd43400  r9 : 00000000  r8 : 00000001
r7 : 00000000  r6 : 00000000  r5 : ba3cd600  r4 : 00000001
r3 : 00000000  r2 : bfd24c60  r1 : bfd43400  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c53c7d  Table: 1000404a  DAC: 00000015
Process khubd (pid: 338, stack limit = 0xbfdbe2f0)
Stack: (0xbfdbff08 to 0xbfdc0000)
ff00:                   00000101 00000000 80a01d38 8c008f40 bfdbff3c 8006612c
ff20: bff8c000 bfd43400 bfd43400 ba3cd648 ba62a220 ba3cd608 bfd4349c ba62a200
ff40: 00000000 ba3cd644 ba3cd640 00000101 00000001 0000009e ba3cd500 ba62a220
ff60: 00000009 ba3cd64c bfdbff9c 800654ac ba3cd6a4 bfdbe000 00000000 bfeac3a0
ff80: 8008d700 bfdbff84 bfdbff84 00000000 01010000 00000001 bfdbffbc bff8bf48
ffa0: bfdbffcc 00000000 80311104 00000000 00000000 00000000 00000000 8008d330
ffc0: bff8bf48 00000000 00000000 00000000 00000000 00000000 bfdbffd8 bfdbffd8
ffe0: 00000000 bff8bf48 8008d2ac 80042040 00000013 80042040 00000000 00000000
[<80311eb4>] (hub_thread+0xdb0/0x1538) from [<8008d330>] (kthread+0x84/0x8c)
[<8008d330>] (kthread+0x84/0x8c) from [<80042040>] (kernel_thread_exit+0x0/0x8)

If no platform_data ,the pdata will be NULL.If the driver try to access the
pdata->platform_set_disconnect_det,dump will occor.SO we should check the
pdata is NULL before checking  pdata->platform_set_disconnect_det.

Signed-off-by: make shi <b15407@freescale.com>
11 years agoENGR00215491 [MX6]Need to increase BUS freq when CPU freq is increased
Anson Huang [Mon, 2 Jul 2012 11:23:23 +0000 (19:23 +0800)]
ENGR00215491 [MX6]Need to increase BUS freq when CPU freq is increased

When BUS freq is running at DLL off mode(24M or 50M), when CPU
freq is increased, we need to increase BUS freq to 400M setpoint
in order to achieve high performance when CPU is busy.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00215489-2 WDOG :add watchdog irq in device structure
Robin Gong [Mon, 2 Jul 2012 02:48:50 +0000 (10:48 +0800)]
ENGR00215489-2 WDOG :add watchdog irq in device structure

1.add watchdog irq in device structure
2.modify watchdog irq macro define to meet _SOC_
Signed-off-by: Robin Gong <B38343@freescale.com>
11 years agoENGR00215489-1 WDOG:add WDIOC_SETPRETIMEOUT and WDIOC_GETPRETIMEOUT interface
Robin Gong [Mon, 2 Jul 2012 02:41:57 +0000 (10:41 +0800)]
ENGR00215489-1 WDOG:add WDIOC_SETPRETIMEOUT and WDIOC_GETPRETIMEOUT interface

Add these two interface, so than user can set and get pre-timeout value to save
some important data before watchdog reboot.
Signed-off-by: Robin Gong <B38343@freescale.com>
11 years agoENGR00215344 GPU became slow after long time run some applications
Richard Liu [Mon, 2 Jul 2012 01:34:31 +0000 (09:34 +0800)]
ENGR00215344 GPU became slow after long time run some applications

GPU became slow after long time run some applications
root cause is when GPU reserved memory exhaust, GPU will request continue physical
memory which will trigger defregment operation in kernel and cause system slow

Signed-off-by: Richard Liu <r66033@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00215340 HDMI PHY config adjust to pass electrical compliance test
Sandor Yu [Fri, 29 Jun 2012 10:18:55 +0000 (18:18 +0800)]
ENGR00215340 HDMI PHY config adjust to pass electrical compliance test

In the HDMI PHY internal, there are two register that can adjust
waveform of eyediagram.
0x0e -- voltage level control; it can adjust the single end data signals;
0x09 -- define pre-emphasis factor;
(it will affect the rise time and fall time of D0/D1/D2);

Adjust HDMI PHY register 0x09 and 0xe for MX6DL SabreSD and MX6Q SabreSD
waveform of eyediagram to pass HDMI compliance test electrical test case.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00215041-3 MX6 SabreSD:Correct camera and audio mclk freq
Liu Ying [Wed, 27 Jun 2012 08:12:22 +0000 (16:12 +0800)]
ENGR00215041-3 MX6 SabreSD:Correct camera and audio mclk freq

This patch corrects camera mclk and audio mclk frequency
to be 24MHz to align with 24MHz osc clock.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 00ea48ba38940c3a908f9a5d2e72ae285a221329)

11 years agoENGR00215041-2 MX6 SabreSD:Set clko parent to be clko2
Liu Ying [Wed, 27 Jun 2012 08:08:49 +0000 (16:08 +0800)]
ENGR00215041-2 MX6 SabreSD:Set clko parent to be clko2

On MX6 SabreSD board, gpio_0 is muxed to clko to be
audio mclk and camera mclk. 24MHz osc clk is a stable
clock source, which can meet the requirement of audio
mclk and camera mclk. This patch sets clko parent
clock to be clko2 clock so that camera mclk and audio
mclk can source from osc clk.
There are 2 benifits after applying this patch:
1) clko's original parent clock(pll4_audio_main_clk)
can be gated off to save power or used by another
module.
2) ov5640/ov5642 camera most settings can reach
claimed 15fps or 30fps with no human eye recognizable
video quality downgrade.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit ace3723ceff0d546e0176f74ad38d58a6d11b7ee)

11 years agoENGR00215041-1 MX6 clock:Support clko2 to be clko's parent clk
Liu Ying [Wed, 27 Jun 2012 08:08:23 +0000 (16:08 +0800)]
ENGR00215041-1 MX6 clock:Support clko2 to be clko's parent clk

This patch supports clko2 clock to be clko's parent clock.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 3827c82e439b6a8bbb6569a01327043251875964)

11 years agoENGR00215195 MX6 PM:Add necessary info for waitmode to help debug system issue
Lin Fuzhen [Thu, 28 Jun 2012 06:54:36 +0000 (14:54 +0800)]
ENGR00215195 MX6 PM:Add necessary info for waitmode to help debug system issue

Add debug message for wait mode to check it was enabled or not.
it will easy to get the wait mode status from this info
e.g, if wait mode is enabled, there are below info from console:

wait mode is enabled for i.MX6

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
11 years agoENGR00176555 ESAI: Increase DMA buffer size to reslove occasional aplay underrun
Lionel Xu [Fri, 29 Jun 2012 04:50:32 +0000 (12:50 +0800)]
ENGR00176555 ESAI: Increase DMA buffer size to reslove occasional aplay underrun

The underrun warning appears when playback high bit-rate and multi-channel(
greater than 6) wav, increase DMA buffer size can resolve this issue.

Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
11 years agoENGR00215228-17: Disable ahash in configs
Terry Lv [Fri, 29 Jun 2012 07:23:24 +0000 (15:23 +0800)]
ENGR00215228-17: Disable ahash in configs

The ahash() still has a dma mapping bug.
So if we turn on hashes, it will crash.
Thus currently we need to disable ahash feature.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215228-16: Add API module for asynchronous hashing
Steve Cornelius [Thu, 28 Jun 2012 23:19:46 +0000 (16:19 -0700)]
ENGR00215228-16: Add API module for asynchronous hashing

Add API module for asynchronous hashing

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215228-15: Add API module for /dev/hw_random
Steve Cornelius [Thu, 28 Jun 2012 22:42:23 +0000 (15:42 -0700)]
ENGR00215228-15: Add API module for /dev/hw_random

Add API module for /dev/hw_random

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215228-14: Add in RNG4 kickstart function
Steve Cornelius [Thu, 28 Jun 2012 22:40:43 +0000 (15:40 -0700)]
ENGR00215228-14: Add in RNG4 kickstart function

Add in RNG4 kickstart function

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-13: Add cache coherence to externalized key generation
Steve Cornelius [Thu, 28 Jun 2012 22:39:18 +0000 (15:39 -0700)]
ENGR00215228-13: Add cache coherence to externalized key generation

Add cache coherence to externalized key generation

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-12: Move scatter/gather cache coherence into chained function.
Steve Cornelius [Thu, 28 Jun 2012 22:27:16 +0000 (15:27 -0700)]
ENGR00215228-12: Move scatter/gather cache coherence into chained function.

Last driver revisions began to incorporate optimized mapping functions
for scatter/gather list management, and then centralized them as inlinable
functions usable from multiple modules. Since these became more globally
useful, moved the coupled cache-coherence functions out of the mainline code
and into the inlined ones for simplification.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-11: Enable ahash and rng configurations
Steve Cornelius [Tue, 26 Jun 2012 01:19:09 +0000 (18:19 -0700)]
ENGR00215228-11: Enable ahash and rng configurations

Add in ahash and rng options for build. Note that because of the way
platform devices detect (as opposed to of-based detection), modularization
of API interfaces is suppressed. Once CONFIG_OF is possible, this
can go away.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-10: Descriptor optimizations, misc whitespace fixes.
Steve Cornelius [Tue, 26 Jun 2012 00:58:49 +0000 (17:58 -0700)]
ENGR00215228-10: Descriptor optimizations, misc whitespace fixes.

Descriptor optimizations, misc whitespace fixes.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215228-9: Add hash and RNG initializers for non-OF builds
Steve Cornelius [Tue, 26 Jun 2012 00:51:58 +0000 (17:51 -0700)]
ENGR00215228-9: Add hash and RNG initializers for non-OF builds

Inserted explicit initializers for split-out startup and shutdown functions
needed for kernels using platform devices in place of OF-device-tree
initialization and detection.

Also added necessary ahash algorithm list head to driver private storage
block.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-8: Add pointer length extensions, non-error-propgation definition.
Steve Cornelius [Sun, 24 Jun 2012 23:18:14 +0000 (16:18 -0700)]
ENGR00215228-8: Add pointer length extensions, non-error-propgation definition.

Add pointer length extensions, non-error-propgation definition.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-7: Externalize SG lists plus split-key generation
Steve Cornelius [Fri, 22 Jun 2012 23:39:43 +0000 (16:39 -0700)]
ENGR00215228-7: Externalize SG lists plus split-key generation

Split out inline scatter-gather list handlers into an external header,
and moved key generation into standalone source.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00215228-6: Externalize scatter-gather handling for multiple API modules.
Steve Cornelius [Fri, 22 Jun 2012 23:32:08 +0000 (16:32 -0700)]
ENGR00215228-6: Externalize scatter-gather handling for multiple API modules.

Moved scatter-gather list management outside of single API module
in anticipation of multiple API modules which may be switch selectable.
This includes a number of list management optimizations, as well as
some aead descriptor optimizations.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-5: Add <md5.h> inclusion for expanded aead processing.
Steve Cornelius [Fri, 22 Jun 2012 23:27:01 +0000 (16:27 -0700)]
ENGR00215228-5: Add <md5.h> inclusion for expanded aead processing.

Add <md5.h> inclusion for expanded aead processing.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-4: Synchronize scatter/gather table definitions with QorIQ defs
Steve Cornelius [Fri, 22 Jun 2012 23:13:53 +0000 (16:13 -0700)]
ENGR00215228-4: Synchronize scatter/gather table definitions with QorIQ defs

Update scatter/gather definitions to more closely correspond with
those in the QorIQ 1.2 release tree. Note that the definition of
the CAAM-local scatter-gather table for QorIQ/Power-based devices
assumed big-endian, and therefore does not burst-read properly into
an ARM-based little-endian instantiation. Therefore, applied
close-as-practical definitions to at least get close until a merge
can be accomplished.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00215228-3: Merge in RNGB changes
Steve Cornelius [Mon, 18 Jun 2012 22:49:28 +0000 (15:49 -0700)]
ENGR00215228-3: Merge in RNGB changes

Added in register changes to enable RNGB initialization when it is present.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>