camera clocks (cam_src_clk, cam_clk, cci_src_clk and cci_clk) are not
disabled if sensor probe fails. Call CCI release and disable cam
sensor clocks to fix the issue.
Change-Id: I8da3e01898be540af3f9876826b576ecb42a4fbd
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
Change buffer config to use stride info.
Add case to avoid config CBCR plane as single planar.
Change-Id: Ia897320da0e346bafe176766b3628a7ffca775f8
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
Fix camera preview by including vb2_streamon/vb2_streamoff
in camera_v4l2_streamon/camera_v4l2_streamoff, and fixing
buffer cirulation in the vb2 queue.
Change-Id: Ibbd12941b9b774376cc86712e3ca660942550c68
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
(1) ISP interface(ISPIF) sits between sensor(CSID) and ISP.
It's responsible to mux sensor's output path to
ISP input path. ISPIF driver contains two parts, i.e.,
user space driver and kernel driver. The kernel driver is
mainly for register write and read.
(2) Image signal processing(ISP) driver's responsiblity is to
processed the sensor's raw image to generate the YUV image
for rending/video encoding and snapshot. ISP driver has
following main functional blcoks:
- Image bus(AXI) management and configuration
- ISP processing pipeline configuration and run time update
- ISP input interface(CAMIF) configuration
- Image buffer management
- ISP interrupt handling
- ISP kernel event notification to user space
- ISP hardware start/stop state machine.
This patch implemented the ISP kernel driver.
Change-Id: I5f222c6a2df8b4c26b0948ef3fb2e36e859d0964
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
Enable msmb for reimplemented camera driver for 8974/8064.
Enable csiphy and csid for 8960.
Change-Id: I34f43a3fe2c0db95c5fa86e83f134b9651496b19
Signed-off-by: Hody Hung <hhung@codeaurora.org>
Makefile changes to enable msmb for reimplemented camera driver
Change-Id: Id0839d3dfd371272cae0c9ba34403b6597af94a2
Signed-off-by: Hody Hung <hhung@codeaurora.org>
CSIPHY (Camera Serial Interface Physical Layer) and CSID (Camera
Serial Interface Decoder Layer) is used to receive sensor data
received over MIPI channel and decode them as per MIPI CSI standard.
Add CSIPHY and CSID kernel drivers that configures their
respective hardware modules to receive sensor data from MIPI channel.
Create V4L2 subdev per hardware block and register with MSM camera
layer.
Change-Id: I01fbaa609e014fbffe7037ace769fc3e98249eef
Signed-off-by: Hody Hung <hhung@codeaurora.org>
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
Camera sensor driver architecture is redesigned to have move control
at user space. The current kernel driver has provision for probing
to find whether a particular camera sensor is connected. A video node
is created for every successful camera probe. This request consists of
samsung S5K3L1YX 12 MP sensor driver, CCI (Camera Control Interface)
driver to perform I2C calls on I2C master bus, I2C MUX driver to select
2D / 3D MUX, QUP driver to perform legacy I2C calls and other utility
functions (msm_sensor) that can be reused by kernel sensor drivers.
Change-Id: I057e3a36b9e08e5b57eb7b90cb0643c84777d0bc
Signed-off-by: Hody Hung <hhung@codeaurora.org>
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
This change reimplements MSM camera V4L2 driver for camera
2.0. Current architecture cannot support 2.0 API very well.
This initial change contains plumbing code for v4l2 device
node creation, ioctls, events, videobuf2, etc.
The new code avoids payload deep-copy by passing them
between user space processes via IPC.
Change-Id: I8598cce8dd25fbd19743398ae0d228081f847d98
Signed-off-by: Jignesh Mehta <jigneshm@codeaurora.org>
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
follow the new bootcode flow in IC to update touch firmware.
Change-Id: I848714e4c24aaf89eab3337f343b22891ee83d55
Signed-off-by: mars_kao <mars_kao@asus.com>
Group and other users can't get the permission to write.
Change-Id: If371f5cd6e5276884690b125b05a1208c15f9d0f
Signed-off-by: chiayi_wu <chiayi_wu@asus.com>
This reverts commit f2cf9d3d1ea2b5c5a40434b4426e0c7e8299f53e.
board file change at AU029
do the same change in board-flo
Author is Praveen Chavan <pchava@codeaurora.org>
Reference change-id is ebc47e10a212d374fcc1db24f700dbbd4b5be1bd
Change-Id: If6d7407d47bc6be6e7db2f002a7ec2e325138c8e
Signed-off-by: yetta_wu <yetta_wu@asus.com>
Load the parameters of focus by reading OTP.
The patch is from QCT's Kyong Hwa Bae.
Change-Id: I8d7239f6f85010966cc594f6fbdecdd78dc0b0fe
Signed-off-by: chiayi_wu <chiayi_wu@asus.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Modify the initial settings for IQ tuning
Modify the function of setting exposure gain for IQ tuning.
Modify the settle_cnt to 0x07 for stability
Support reading vendor id by loading OTP.
Only support 2592*1944 and 1536*864 for output dimensions.
Remove unnecessary codes for rear camera.
Change-Id: I6c16ee115c602e3a8e2ad8cf453d740ead9e39e9
Signed-off-by: chiayi_wu <chiayi_wu@asus.com>
The GPIO is changed to 10, 11, and 24 for detecting vendor id
Change-Id: Ic4e4eafc2ce6f195276658fa6156740671c9ddce
Signed-off-by: chiayi_wu <chiayi_wu@asus.com>
The angle of 90 was only for SR1,
we have to modify it for the future.
Change-Id: Iec64d23e3c56c20e1680ba539c781757b92baa87
Signed-off-by: chiayi_wu <chiayi_wu@asus.com>
Enable rtc_write_enable to store APQ8064 real time clock.
Change-Id: Ic5aa7250b238f58ffc4bb8130d684146a4a29bb1
Signed-off-by: paris_yeh <paris_yeh@asus.com>
LCD_ID is composed of PCB_ID2 and PCB_ID3 on legacy boards, and
it is downsized on flo and deb hardware and configured with PCB_ID2
only starting from hardware revision c.
Bypass PCB_ID3 telling routine in probe so that variant LCD panel
type is decided by PCB_ID2 only.
Change-Id: Ie9a7aed51dab4a2bad16c81edcd0be690892b712
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/71399
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Change volume keys from msmgpio to PM8921. A known issue is
observed that WCNSS firmware drive gpio 14 and 15 in default.
This may affect behavior of volume up button.
SR#01109596: How to disable FM function in WCNSS firmware?
Change-Id: I46d0656f8152e5d109395342bebe0f83ce265143
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/70235
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Refer to HW schematic with V0.9, change gpio settings as below
for hardware revisoin b.
------------------------------------------------------------
|Function | Original | New | Notes |
------------------------------------------------------------
|VOL_UP | gpio#53 |gpio#15| Wakeup INT. for power saving|
------------------------------------------------------------
|VOL_DOWN | gpio#54 |gpio#36| Wakeup INT. for power saving|
------------------------------------------------------------
|PCB_ID5 | gpio#15 |gpio#53| Switch due to changed VOL_UP|
------------------------------------------------------------
Change-Id: If78ee0f4b7a932ebfe1d03f09e938271fb68958e
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/69685
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
set gpio 2, 13, 37 to input and no internal pull.
Change-Id: I837ecbcb8fa588625eba2f0c7884ef1ba6f7ba55
Signed-off-by: xinchuan_wu <xinchuan_wu@asus.com>
Report battery current to check charging/discharging
of system
Change-Id: I49705758992c9d21529a2e3f7874b990c7474d1b
Signed-off-by: hank_lee <hank_lee@asus.com>
Signed-off-by: alan_lu <alan_lu@asus.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
The contorl bit should be 0 shift for RX HPF frequency setting.
Change-Id: Ida8981c7e5c3fe693dadf62e95f31a99e1b05001
Signed-off-by: sam_chen <sam_chen@asus.com>
Export function to headset driver to know whether we should disable
badgap power or not after headset detection.
Change-Id: I1b890c559a26537f510dfabed3cfec16120f59de
Signed-off-by: sam_chen <sam_chen@asus.com>
1. Enable display related gpio when kernel init.
2. Config PWM to .output_value = 0 in mipi_JDI_set_backlight() function
to prevent PWM be inverted.
Change-Id: I4b9137cf482bfe760a1a1ac3eb9d03abf0100243
Signed-off-by: yetta_wu <yetta_wu@asus.com>
1. The backlight turns on before framebuffer comes out.
In command mode panel like JDI, there would be messy screen
when resuming.
2. Framebuffer comes out at first msm_fb_commit_wq_handler()
-> mdp4_overlay_commit() after resume.
We should delay backlight to after framebuffer comes out.
3. Add set_recovery_backlight for the backlight in recovery mode.
Default backlight 40/255, may modify afterwards.
case 01124703
Change-Id: I62ace8bb85ac62b6eaf214588caa8a89ba094a67
Signed-off-by: yetta_wu <yetta_wu@asus.com>
If vertical porch is too small, we need to set pinfo.lcd.blt_ctrl = 1.
Basically, the vertical porch should be above 10% of active lines.
The fail log of video playback stress test is:
fence timeout on [ec2c0c80] after 1000ms
case number: 01130006
Change-Id: I035386a5dd33d7b779197cc063c0a2ad80edafa9
Signed-off-by: yetta_wu <yetta_wu@asus.com>
flo and deb use slimport as HDMI output
remove 5V power control to avoid current leakage
Change-Id: I0e0670a333507df75ce9090b7b91bd2a60ff85f2
Signed-off-by: yetta_wu <yetta_wu@asus.com>
some panel gpio are changed in different hardware version,
modify codes to support both SR1 and SR2
Change-Id: I2ba9b7bc1341ef47aaa307655af63996b2f3e722
Signed-off-by: yetta_wu <yetta_wu@asus.com>
1. for SR1 gpio
2. use pwm to control backlight
in the run afterwards, we would use mipi commands to control backlight
Change-Id: Ie7b6de6fb5a8866f5e929d12284a1d85dda8582a
Signed-off-by: yetta_wu <yetta_wu@asus.com>
1.Use gpio-85: low = debug board and high = no debug board.
2.Only support hardware revison A and after.
Change-Id: If4db1fd8f94036dfb7428e63e54b4ae41b60e0cd
Signed-off-by: sam_chen <sam_chen@asus.com>
Text-based representation hardly follows up rapid changes of
hardware schematics among multiple projects. Different hardware stage
and naming was given even if the same pcbid value is defined.
Translate the text-based representation (eg, SR, ER, and etc) into
index-based one to avoid development confusion.
Change-Id: I11cf63b84b9597fb100cc0c9730b36c8f386b4e4
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/69010
Reviewed-by: Sam hblee <Sam_hblee@asus.com>
Signed-off-by: paris_yeh <paris_yeh@asus.com>
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/69665
Enables uhid for the user space driver required by Bluedroid HID module.
Change-Id: I564dd660d6ed2c5ed61bacb2a5c6e31e52ead346
Signed-off-by: rock_shen <rock_shen@asus.com>
git://codeaurora.org/external/wlan/prima.git
84e056c wlan: Release 3.2.2.2
18064b9 wlan: update WCNSS_cfg.dat
77ee64d wlan: (1) fix issues encounter when building with GCC 4.7
352bd47 wlan: cs release 3.2.0.75a
d1a02f9 wlan: Fixing copyright issue with Augment ioctl WLAN_PRIV_SET_MCBC_FILTER
f2d27a6 wlan: cs release 3.2.0.75
8da16ff Add Null check for psessionEntry in MTRACE code
5ed2cf6 wlan: Fix for SAP start failure after GO turnoff.
8d2f188 wlan: cs release 3.2.0.74
edbcce0 Integrate memory corruption fixes from windows core stack
4abca74 Fix for the crash at the time of driver unload
5bd90ee Increase the maximum TDLS peer connections
0de5997 Remove TDLS connected peers on Missed Beacon Indication
8bc168d Fix multiple acquires for the same mutex lock and data stall.
263ccc9 Not to do multiple setups during setup negotiation with same peer
f9e2454 Fix to enhance the mutex lock acquire
3dc8765 wlan: cs release 3.2.0.73
a21df9e Fix WLAN connection issues with BTC
35fcf02 wlan: sme: remove obsolete "INTEGRATED_SOC" featurization
4a844a0 wlan: mac: remove obsolete "INTEGRATED_SOC" featurization
2d79528 wlan: sys: remove obsolete "INTEGRATED_SOC" featurization
d901a10 wlan: svc: remove obsolete "INTEGRATED_SOC" featurization
f7c43d6 wlan: sap: remove obsolete "INTEGRATED_SOC" featurization
e3876c5 wlan: tl: remove obsolete "INTEGRATED_SOC" featurization
5d9e3c7 wlan: Fixing issue with Remove access to GPL only APIs
c0e741d wlan: cs release 3.2.0.72
872cde3 Fix for device not coming to BMPS after teardown TDLS link
89cecd7 TDLS mgmt.frame encapsulated to data frame uses WDA/DXE MGMT path
bd7ae7d wlan: dot11f: Fix to parse the received RIC IE appropriately
deaec4a wlan: cs release 3.2.0.71
0284fd7 wlan: Remove obsolete USB and SDIO conditional code
0eb1e22 wlan: update Listen Interval with change in multisession
a9e9b45 wlan: add a counter for RX free packets
491ee19 wlan: bap: remove obsolete "INTEGRATED_SOC" featurization
769e952 wlan: move mcast list to adapter context
1a18f3b wlan: FirstSet of Run Time Config variables
5618b49 wlan: Add SSR protection to WEXT APIs
a4014df wlan: (2)Fixing issue with WCNSS_qcom_cfg.ini values for specific OEM
2a693a8 wlan: Fixing issue with WCNSS_qcom_cfg.ini values for specific OEM
832b99d wlan: cs release 3.2.0.70
f249fcd Update WCNSS_qcom_cfg.ini values for specific OEM
d0f91d1 Fix P2P connection failure
7cea016 wlan: Fixed issue in handling of EAPOL keys
b798dc1 wlan: Fix for ARP offload issue
225a1b4 wlan: Augment ioctl WLAN_PRIV_SET_MCBC_FILTER
6e2d2a4 wlan: cs release 3.2.0.69
2b84761 P2P : Fix related to P2P connection reliability improvement
a2e0214 TDLS: feature enhancement for discovery and teardown
87d2686 wlan: Enable ARP offload config
888e289 wlan: fix issues encounter when building with GCC 4.7
d61fc9f wlan: cs release 3.2.0.68
7156822 wlan: qnx awareness to corestack
535117a wlan : Fast transition (11r)
c1c88ff wlan: CSR should only indicate lostlink once
c748428 wlan: MAC context set to NULL in HDD context after driver shutdown in SSR
af6c227 wlan: cs release 3.2.0.67
bac0b58 Revert "wlan: Abort scan on receiving remain_on_channel request"
bc57cf3 wlan: Fix for sending probe request at 6 MBps in WifiDirect
68e2b1c wlan: Array out of bound due to invalid session Id
77b39ec wlan: do not retry pre-auth after response with status 17.
9ddfa02 wlan: Remove access to GPL only APIs
1d657ea wlan: cs release 3.2.0.66
8e5188e Fix to stop doing discovery after maximum retry
36166bc wlan: cs release 3.2.0.65
41e53fd wlan: Set TxBF csn value based on ini configuration.
35d901d Send unicast deauth when GO terminates
75d87b1 wlan: prevent timer callback after unload during SSR
313daf4 wlan: cs release 3.2.0.64
5c68731 Fix to send TDLS frames at basic rates
d8051e4 Register TDLS peer to TL at link enable
051a555 Fix for Multiple Invitation pop window seen during P2P connection
178aedb wlan: Define flag WLAN_OPEN_SOURCE for the open source driver
74b767b wlan: Fixing comments
2dc03b9 wlan: removing files that were accidentally submitted
4fe5c95 wlan: cs release 3.2.0.63
2c2b281 Fix to not flood TDLS Discovery Request frames
08a1d1c wlan: Remove obsolete LIM_TIMER_EXPIRY_LIST support
1969045 wlan: remove obsolete RTL8652 and LX5280 conditional code
aea6e42 Fix the conflicts of cfg.txt autogenerated files
0d293c4 wlan: cs release 3.2.0.62
fa97d49 Fix to delete all connected tdls peer
f251c0c Fix TDLS link rate to operate with 11AC AP
961f80a wlan: cs release 3.2.0.61
944580a Disable LDPC in sta mode when AP is TXBF capable
1aca8dc wlan: Initialization of structure variable
da382fb wlan: Multiple Memory Leaks @File wlan_qct_wdi.c
79d1506 wlan: fix ioctl interfaces to get driver/firmware version
8811415 wlan: Do not reference userspace memory in the driver
15fb73f wlan: Set correct CB mode for channel 165.
68940f7 wlan: remove obsolete phyGlobal.h
680f7b0 wlan: cs release 3.2.0.60
6b6ec95 Fix vos_assert and kernel panic during wlan_exit
7a6d70b wlan:Debugging Log Enhancement and Log CleanUp
21930fe Padding up to 46 octet for TDLS setup confirm
b92ff61 Remove packet filter dependency on connected state
11fbd74 wlan: cs release 3.2.0.59
5758f30 wlan: MTRACE LFR Debug Enhancements.
15d08b7 wlan: Fix for P2P connection failure in 5GHz Auto GO
a1645f1 wlan: cs release 3.2.0.58
aed5e67 wlan: Fix for SAP/P2P GO to come up on configured channel
5d2067e Quarky read reg support
83fe58c wlan: Fixes to support 802.11K functionality
1d21b6d WLAN: Update cfg.txt file so that it is in sync with the auto generated .h files
fee3fe5 wlan: cs release 3.2.0.57A
756a8e5 Send teardown with correct address.
111254e wlan: cs release 3.2.0.57
9b553eb PRIMA: Avoiding memory leak while setting dynamic MCBC filter.
9321800 wlan: Fix for address scheme for p2p device administrated.
Signed-off-by: Iliyan Malchev <malchev@google.com>
PCM driver was configured for fixed buffer
size on the playback path. With this, varying
the buffer sizes on the playback path was not
possible. To fix this, support for flexible
period sizes is added by setting different
values for min and max buffer sizes
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
Change the parameter of eye diagram for Flo. This value is hardware
specific.
Change-Id: I91e9ba9b747ac31c5af517fd65f00e349c8a4d5a
Signed-off-by: Raphanus Lo <raphanus_lo@asus.com>