Age | Commit message (Collapse) | Author |
|
Update documentation for ADV7180 TV Decoder.
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
The CMA support marked as the experimental in the kernel Kconfig.
After turns it on, we found many memory issues. Since this CMA
support on the 3.5.7 kernel is not mature enough, just turn it
off and use back the consistent remap DMA.
Signed-off-by: Jason Liu <r64343@freescale.com>
|
|
500us would be too short for some extreme cases, so we here keep it same
as Kernel 3.0.35 did, using 1sec timeout.
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit cfb9d8a8c7004e9689b4e7eddebb6bd946ef4d66)
|
|
Multiple mapping on cacheable buffer might cause bd status updating delay.
So we use strongly order allocate for sdma bd to prevent it.
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit 5b39c20ade01d4f9474c25bdda60ed4839d07601)
|
|
commit 5e4ba617c1b584b2e376f31a63bd4e734109318a upstream.
Martin Storsjö reports that the sequence:
ee312ac1 vsub.f32 s4, s3, s2
ee702ac0 vsub.f32 s5, s1, s0
e59f0028 ldr r0, [pc, #40]
ee111a90 vmov r1, s3
on Raspberry Pi (implementor 41 architecture 1 part 20 variant b rev 5)
where s3 is a denormal and s2 is zero results in incorrect behaviour -
the instruction "vsub.f32 s5, s1, s0" is not executed:
VFP: bounce: trigger ee111a90 fpexc d0000780
VFP: emulate: INST=0xee312ac1 SCR=0x00000000
...
As we can see, the instruction triggering the exception is the "vmov"
instruction, and we emulate the "vsub.f32 s4, s3, s2" but fail to
properly take account of the FPEXC_FP2V flag in FPEXC. This is because
the test for the second instruction register being valid is bogus, and
will always skip emulation of the second instruction.
Reported-by: Martin Storsjö <martin@martin.st>
Tested-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
|
|
CONFIG_VFPv3 set
commit 39141ddfb63a664f26d3f42f64ee386e879b492c upstream.
After commit 846a136881b8f73c1f74250bf6acfaa309cab1f2 ("ARM: vfp: fix
saving d16-d31 vfp registers on v6+ kernels"), the OMAP 2430SDP board
started crashing during boot with omap2plus_defconfig:
[ 3.875122] mmcblk0: mmc0:e624 SD04G 3.69 GiB
[ 3.915954] mmcblk0: p1
[ 4.086639] Internal error: Oops - undefined instruction: 0 [#1] SMP ARM
[ 4.093719] Modules linked in:
[ 4.096954] CPU: 0 Not tainted (3.6.0-02232-g759e00b #570)
[ 4.103149] PC is at vfp_reload_hw+0x1c/0x44
[ 4.107666] LR is at __und_usr_fault_32+0x0/0x8
It turns out that the context save/restore fix unmasked a latent bug
in commit 5aaf254409f8d58229107b59507a8235b715a960 ("ARM: 6203/1: Make
VFPv3 usable on ARMv6"). When CONFIG_VFPv3 is set, but the kernel is
booted on a pre-VFPv3 core, the code attempts to save and restore the
d16-d31 VFP registers. These are only present on non-D16 VFPv3+, so
this results in an undefined instruction exception. The code didn't
crash before commit 846a136 because the save and restore code was
only touching d0-d15, present on all VFP.
Fix by implementing a request from Russell King to add a new HWCAP
flag that affirmatively indicates the presence of the d16-d31
registers:
http://marc.info/?l=linux-arm-kernel&m=135013547905283&w=2
and some feedback from Måns to clarify the name of the HWCAP flag.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dave Martin <dave.martin@linaro.org>
Cc: Måns Rullgård <mans.rullgard@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[ herton: no uapi directory on 3.5 ]
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
|
|
commit 846a136881b8f73c1f74250bf6acfaa309cab1f2 upstream.
Michael Olbrich reported that his test program fails when built with
-O2 -mcpu=cortex-a8 -mfpu=neon, and a kernel which supports v6 and v7
CPUs:
volatile int x = 2;
volatile int64_t y = 2;
int main() {
volatile int a = 0;
volatile int64_t b = 0;
while (1) {
a = (a + x) % (1 << 30);
b = (b + y) % (1 << 30);
assert(a == b);
}
}
and two instances are run. When built for just v7 CPUs, this program
works fine. It uses the "vadd.i64 d19, d18, d16" VFP instruction.
It appears that we do not save the high-16 double VFP registers across
context switches when the kernel is built for v6 CPUs. Fix that.
Tested-By: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
|
|
The patch of "ENGR00264855 backlight: Support backlight shared by
multiple fbs" doesn't consider that bd->props.fb_blank could be
shared by several framebuffers which use the same backlight device.
This causes the pwm backlight wrongly check the fb blank status.
This patch corrects the setting for the fb blank status by
considering all the framebuffers in question to fix the issue.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 68b97d114629f22f64b3d8c14d0a0b7d07d6ebb2)
|
|
Yocto detects all the module alias as its standard for module auto load,
so add module alias here to support this feature.
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit 8c40b6c7c1584229745561b01bb212001c87ae51)
|
|
This patch adds a new ipu1 csi0 port group to support
the parallel 16-bit port on imx6dl-sabreauto platform.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 98897b70edd220952d217146d33b3a624fca933e)
|
|
This patch will do the following:
1. For mlb will not be able to know whether the final package is
completely sent, add a delay for final package to be sent.
2. Adjust MLB's iram buffer usage. Old code will add addtional usage of
iram buffer.
3. Code format change.
Signed-off-by: Terry Lv <r65388@freescale.com>
|
|
isfr clock should enable when HDMI enable for cable detection.
Signed-off-by: Sandor <R01008@freescale.com>
|
|
Updated Video for Linux device tree documentation.
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
Cleaned up code.
-corrected regulator settings
-corrected whitespace errors
-remove unneeded structure fields and incldues
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
Added pin group for 16-bit parallel CSI configuration.
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
Disable the SSI in the trigger function instead of in the shutdown
Signed-off-by: Shengjiu Wang <b02247@freescale.com>
(cherry picked from commit 75ff0c342df325269f5f671212c84d71dc56fef6)
|
|
This patch disables framebuffer ywrap flag when we enable overlay,
because the display double buffers are not ywrapped. This may avoid
wrong preview pictures on platforms which use NV12 pixel format for
overlay framebuffer.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit ab87ade3dbfa38b6abc003a9409cda10f58ccb94)
|
|
Regarding to the following community commit, remove all the boot
partition access codes added before.
-
371a689f64b0da140c3bcd3f55305ffa1c3a58ef
mmc: MMC boot partitions support.
Allows device MMC boot partitions to be accessed. MMC partitions are
treated effectively as separate block devices on the same MMC card.
-
Boot partition access howto:
-
To enable write access to /dev/mmcblkXbootY, disable the forced
read-only access with:
echo 0 > /sys/block/mmcblkXbootY/force_ro
To re-enable read-only access:
echo 1 > /sys/block/mmcblkXbootY/force_ro
-
Signed-off-by: Richard Zhu <r65037@freescale.com>
|
|
Integrate 4.6.9p12 release kernel part code.
Cherry-pick from 3.0.35 branch.
Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Lily Zhang
|
|
Select vivante drm modules as default config.
Signed-off-by: Loren HUANG <b02279@freescale.com>
|
|
-DRM copyright update
Cherry-pick from 3.0.35 branch.
Signed-off-by: Loren Huang <b02279@freescale.com>
|
|
Add vivante drm modules code and select it in default config. Integrate
these code from vivante.
Cherryed-pick from 3.0.35 branch.
Resolve some build issue since minor DRM change.
Signed-off-by: Allen Xu <allen.xu@freescale.com>
Acked-by: Lily Zhang
|
|
In August 2012, Matthew Gretton-Dann checked a change into binutils
labelled "Error on obsolete & warn on deprecated registers", apparently as
part of ARMv8 support. Apparently, this was supposed to emit the message
"Warning: This coprocessor register access is deprecated in ARMv8" when
using certain mcr/mrc instructions and building for ARMv8. Unfortunately,
the message that is actually emitted appears to be '(null)', which is
less helpful in comparison.
Even more unfortunately, this is biting us on every single kernel
build with a new gas, because arch/arm/boot/compressed/head.S and some
other files in that directory are built with -march=all since kernel
commit 80cec14a8 "[ARM] Add -march=all to assembly file build in
arch/arm/boot/compressed" back in v2.6.28.
This patch reverts Russell's nice solution and instead marks the head.S
file to be built for armv7-a, which fortunately lets us build all
instructions in that file without warnings even on the broken binutils.
Without this patch, building anything results in:
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:565: Warning: (null)
arch/arm/boot/compressed/head.S:676: Warning: (null)
arch/arm/boot/compressed/head.S:698: Warning: (null)
arch/arm/boot/compressed/head.S:722: Warning: (null)
arch/arm/boot/compressed/head.S:726: Warning: (null)
arch/arm/boot/compressed/head.S:957: Warning: (null)
arch/arm/boot/compressed/head.S:996: Warning: (null)
arch/arm/boot/compressed/head.S:997: Warning: (null)
arch/arm/boot/compressed/head.S:1027: Warning: (null)
arch/arm/boot/compressed/head.S:1035: Warning: (null)
arch/arm/boot/compressed/head.S:1046: Warning: (null)
arch/arm/boot/compressed/head.S:1060: Warning: (null)
arch/arm/boot/compressed/head.S:1092: Warning: (null)
arch/arm/boot/compressed/head.S:1094: Warning: (null)
arch/arm/boot/compressed/head.S:1095: Warning: (null)
arch/arm/boot/compressed/head.S:1102: Warning: (null)
arch/arm/boot/compressed/head.S:1134: Warning: (null)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: stable@vger.kernel.org
Cc: Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[Fix merge conflict]
Singed-off-by: Jason Liu <r64343@freescale.com>
|
|
Enable CONFIG_TOUCHSCREEN_EGALAX_SINGLE_TOUCH to make the touch works
under the yocto with new xorg. Need check the multi-touch support later.
Signed-off-by: Jason Liu <r64343@freescale.com>
|
|
Add MIPI and VDOA drivers to the SabreAuto device tree.
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
Add SabreAuto board to imx6q_csi_mux_init so the CSI0 on IPU1 is set to
parallel CSI interface.
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
Added ADV7180 to Sabre Auto device tree.
Added ADV7180 to kernel config.
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
Changes to support device tree in 3.5.7.
Added ADV7180 to Kconfig and Makefile.
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
Driver copied from branch imx_3.0.35
commit 871c22325d619ee1c4d2107ab9298e7ef5193c21
engr00243315-6 ADV7180:Remove unnecessary header files
Fixed sytle warnings from review-commits:
WARNING: unnecessary whitespace before a quoted newline
WARNING: line over 80 characters
Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
|
|
Or it will cause system hang on resume.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
|
|
For managed resources, we do not need to remove it maunually.
And no need to call clk_disable_unprepare(drvdata->clk_mlb3p) when
get clk_mlb3p failed.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
|
|
When suspend, we disable clk_mlb3p. So when resume, we should
enable clk_mlb3p, not clk_mlb6p.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
|
|
Fix the build break for the perf tool
Signed-off-by: Jason Liu <r64343@freescale.com>
|
|
This patch adds 'CONFIG_TOUCHSCREEN_ELAN=y' support in imx_v6_v7_defconfig.
It's generated in the following way:
1) make ARCH=arm imx_v6_v7_defconfig
2) make menuconfig and choose the above option
3) make ARCH=arm savedefconfig
4) cp -avf defconfig arch/arm/configs/imx_v6_v7_defconfig
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
Add elan touchscreen device tree and the dts document.
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
- use dts framework
- add initialization process for elan
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
Driver copied from branch imx_3.0.35:
commit 1c584293e60f067f6e10db6e8afd880aeade25aa
ts: fix elan touch screen gets no response upon suspend/resume
Fixed style warning reported by review-commits:
+ if (rc < 0) {
+ return -EINVAL;
+ }
WARNING: printk() should include KERN_ facility level
+ printk("hello packet: [0x%02x 0x%02x 0x%02x 0x%02x]\n",
WARNING: braces {} are not necessary for single statement blocks
+ if (rc != bytes_to_recv) {
+ return -EINVAL;
+ }
....
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
In probe(), we set LEFT_ADC_VOLUME but failed to set RIGHT_ADC_VOLUME due to
typo during coding, thus fix it.
Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit ae3eb591ed9f61579a4217c6ddfd19d32e8f3cc5)
|
|
Enable USB audio, USB camera, and zero gadget
Signed-off-by: Peter Chen <peter.chen@freescale.com>
|
|
Add firmware for EPDC waveform
Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit 8187e68d0659d2540ffd9b9420b6e2858be57105)
|
|
- use clock_prepare_enable and clock_disable_unprepare
- use devm_request_and_ioremap and devm_request_irq
- use devm_regulator_get
Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit c4c629f5d32cc1cc28425de5ab1db9b6f0b451a6)
|
|
set pxp axi and epdc axi clock to maximum freq: 200MHz (on imx6dl, it's IPU2).
Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit a070e0037109ef139ad16beab318f7e8609262f2)
|
|
add a detection earlier than mfd_add_devices() thus if the pmic chip is
not detected then the regulator device will not be registered.
Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit d9864db4288410315ef52d8b5f9f1d0ee0302ee3)
|
|
- Move common part to imx6dl.dtsi, and board-specific part
to imx6dl-sabresd.dts
- add early parameter for epdc to control enable/disable status
- fix the epdc address in of_dev_auxdata.
Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit a2f1ac612dbd59df9f5522fa4cec7c41cd9d74c7)
|
|
Add dts for sensor power ctrl, this is needed for light sensor,
eCompass, disp pmic, etc.
Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit da2346d4b04ea92829067c4c6898a2840c77ebf4)
|
|
add the missing header file to fix the yocto build issue
Signed-off-by: Jason Liu <r64343@freescale.com>
|
|
If system run higher cpu loading with bigger current, such as GPU or VPU,
the voltage of battery will decrease down quickly and rise up later.But the
battery driver only permit voltage decreasing while discharging before, in
other words, in the above case , the voltage will keep in very low level,
although the voltage will rise back again.
Now, remove the constrain in the code. Of course, with the patch, voltage will
down and rise back when run high loading user case, but it's better than
LOW ALWAYS, in worst case, the battery capacity will be 0 as test team reported
Please note :
Current battery capaity is not accurate because of hardware
design defect(ENGR00219632) on Sabresd.So please ignore the accuracy issue.
Signed-off-by: Robin Gong <b38343@freescale.com>
|
|
We currently call cancel_work_sync() to have all left work be done. But,
this is not safe to make sure all left work being done successfully.
Instead, chances are that some work may be cancelled before starting
to be done, which may cause frame lost and make us hang at upcoming
wait_event_interruptible() in videobuf_waiton() called from video buffer
core v1 framework's dqbuf API. This patch replaces the function
call cancel_work_sync() with flush_workqueue() to fix the issue.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit df551ae02c600f8bc9244441700f7da7ac62ac88)
|
|
Users may call VIDIOC_S_CTRL ioctrl to do rotation, such as 90 degree
rotation, when a video is streaming in IC bypass mode. The runtime
rotation setting may make the vout driver lose the track for a previous
video buffer and finally cause the streaming hang. This patch releases
that video buffer in this case and invalidates previous video buffers
when necessary.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 643c97731677fb54d25c45de513154c07b21bbe3)
|
|
When the local timer freq changed, the twd_update_frequency function
should be run all the CPUs include itself, otherwise, the twd freq will
not get updated and the local timer will not run correcttly.
smp_call_function will run functions on all other CPUs, but not include
himself, this is not correct,use on_each_cpu instead to fix this issue.
Signed-off-by: Jason Liu <r64343@freescale.com>
|