Commit Graph

45 Commits

Author SHA1 Message Date
Ray Zhang 221493aef0 init: early_boot: Change user/group permission of autorefresh node
HWC will access this sysfs node msm_cmd_autorefresh_en
hence change the permission

CRs-fixed: 970102

Change-Id: I0e5191f6398f7307a8a3146491ab4a80305418cc
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2016-02-02 14:49:24 +08:00
Ramakant Singh 185405f559 common : Enable ubwc based on hardware support
Some target may or may not have support for ubwc.
Hence based on support available enabling the ubwc.

Change-Id: I46a901228dba9c9aef26283ce97cd5f425a9cdb8
2016-01-14 13:38:29 +05:30
Ramakant Singh 51f8045d96 init: early_boot:make default lcd density independent
Making default lcd density independent which is based
on framebuffer width from target. It will not overwrite
the previous density, if any target is setting forcefully.

Change-Id: I807550276fb0579ba88ecdd0a15c7dbe78bbb73e
2015-12-24 17:00:51 +05:30
Mao Jinlong fc20dc844e set ro.alarm_boot as true if ro.boot.alarmboot is true.
ro.boot.alarmboot indicates that reboot reason of device is rtc
alarm. It is also alarm boot.

Change-Id: I4535daa6bdc6d904580769c325259c0ab2a409c2
2015-12-22 10:12:46 -08:00
Ramakant Singh 353eb0f3d9 init: early_boot: set up HDMI permissions
Setup ownership and permissions for HDMI display nodes.

Change-Id: Ibeca73b4903ac98d19656199b36a809ce812cf36
2015-12-16 09:06:09 -08:00
Hareesh Gundu 8eb44826d0 early_boot: Set lcd density to 480 for msm8937
Set "ro.sf.lcd_density" to 480 for msm8937

Change-Id: Id7a8f3772e29fa0b3838200e39e256ff9a1deb09
2015-12-16 16:17:19 +05:30
Hareesh Gundu 25b62e7196 init: qcom: Fix post boot syntax errors for MSM8937
"soc_hwid" is undefined in post boot script,
Move this to init qcom early boot script.

CRs-Fixed: 951241
Change-Id: I0d1f77347ac0d0d2717e6e547aa9345f62d79d6f
2015-12-14 20:23:14 +05:30
Linux Build Service Account 38b74aecd1 Merge "update permissions for audio on hdmi_audio_cb node." 2015-11-20 18:12:56 -08:00
Mingming Yin a2255668dc update permissions for audio on hdmi_audio_cb node.
- grant write permissions on hdmi_audio_cb node for
  audio HAL. hdmi_audio_cb is used for HDMI audio
  device switch acknowledgement feature.
  Audio hal updates hdmi_audio_cb with HDMI audio device
  switch status. hdmi driver monitors hdmi_audio_cb and
  send connect/disconnect events accordingly.

Change-Id: I053a9eb8bd3bdc76e990e69ff3625e0dc6a4e76c
2015-11-17 14:16:58 -08:00
Ray Zhang b9851bd27a init: early_boot: Use virtual_size to set lcd_density
Calculating density depending on FB resolution is more accurate
than depending on platform or target ID, since in some cases there
might be multiple panels supported on a single target or a single
target can have multiple hwplatform variants

Change-Id: Ibf238b269d3c64ffc06d798998dcd68343977003
2015-11-16 15:56:53 +05:30
Mao Jinlong 6256eb0439 common: set alarm and boot animation properties during early boot
If boot is trrigerred by rtc alarm, set ro.alrm_boot as true and set
debug.sf.nobootanimation as '1' to disable boot animation.

Change-Id: I55ca254e63f24a9a7255f0d8600ef3ede91d4a97
2015-11-03 01:01:02 -08:00
Saurabh Shah 1852c96f21 early_boot: Add permissions for msm_cmd_autorefresh_en
Add permissions for /sys/class/graphics/fb0/msm_cmd_autorefresh_en
node. This can be read from / written to by display stack.

Change-Id: Ibe6854d076f176d34986edcde365e3dab91b2660
2015-10-27 12:05:32 -07:00
Dileep Marchya fb7374c47a Add permissions for graphics on hdmi nodes.
- Add system.graphics permissions on hdmi_audio_cb
  & hdcp2p2/min_level_change nodes.

Change-Id: I888e9d5143ec1c6a2f6e1505a50edbf015ca2a1e
2015-10-07 18:23:13 -07:00
Mathew Joseph Karimpanal 7c31425f1e init_earlyboot: Support APQ8096 Dragonboard 820
Set LCD density to 240 for typical 10" Dragonboard FWVGA displays.
Enable Software Navigation Bar for Dragonboard.

Change-Id: Ie48ef1987a00941866ed0ef9e6e67519359cb360
2015-08-17 12:12:07 -07:00
Arun Kumar K.R 4a981c3c6a init_earlyboot: set lcd density for 8996
Set the property ro.sf.lcd_density to 480 for 8996

Change-Id: I0a36b3516df8201cc865e79896c14872891e1d09
2015-08-07 12:53:50 -07:00
Naseer Ahmed 8e9fc0c83c init: early_boot: Set up display permissions
Setup ownership and permissions on display primary and external nodes.

Change-Id: I01abc29a630e6a35ada940dba80e8e8c3e9b4a2e
2015-08-04 20:20:51 -04:00
Ilia Lin 1adcc37407 init: qcom: Set ro.sf.lcd_density for SBC APQ8084
Set the property ro.sf.lcd_density value to comply the
SBC APQ8084 display size.
qemu.hw.mainkeys is set to 0, because SBC is headless device
and doesn't have HW buttons.

Change-Id: I3e4e56245f95a061ea218f16c0af3f10a797ad4b
2014-03-11 14:00:59 +02:00
Vijay Ganti e47e385274 apq8084: Update LCD density setting for APQ8084 MTP and Liquid
Update LCD density on Liquid to 320 and MTP to 480
based on UX profiling and Jank analysis

CRs-fixed: 612032
Change-Id: I1d2ee7671b7fd388967087df4f4bf8711f010478
2014-02-12 17:16:34 -08:00
Zohaib Alam 3751c74d59 mpq8092: setting lcd-density & enabling hwcomposer and gralloc
setting lcd-density for 8092, and enabling hwcomposer and
gralloc

Change-Id: Ifce52c4b7015a69e5c180c32a7ee2cb7c9354108
2013-12-09 16:15:35 -05:00
Biswajit Paul 5ff61d4cce Revert "Set default time before Zygote init to year 2009".
The original gerrit was a workaround needed for Zygote
class initialitation before JB_MR2. it is not needed from JB_MR2

This reverts commit 620710d7a8.

Change-Id: I8640654322dfe7df14509ba1166179b95b9c8678
2013-12-06 09:46:18 -08:00
Biswajit Paul 2e2d79df93 Modified chown/chmod to not follow symlink.
Enable symlink to not follow target file if "-h" option is
provided.

CRs-fixed: 545883
Change-Id: I94dbc32e7635d06a2121b3a1b07cc2616d06b5a4
2013-11-20 13:53:51 -08:00
David Ng be28a20adf apq8084: Update lcd density setting for APQ8084 Liquid and CDP/MTP
Set display lcd density property to match actual APQ8084 MTP/CDP
and Liquid display.

Change-Id: I4b03dc317bd580d6926c0869404e80eba633f469
2013-10-02 13:36:59 -07:00
Praveena Pachipulusu 3224c380e0 init.qcom: Added proper sys fb path file name
Permissions for HDMI nodes were not getting set
due to improper naming for sys class fb path.

Change-Id: Ie188cb060d42a76028783baf21f656b1dc5ad3a7
2013-09-26 15:46:50 +05:30
Linux Build Service Account 7e2b40c1ee Merge "init.qcom: Modified symlink for /dev/graphics/hdmi" 2013-09-25 04:48:08 -07:00
Linux Build Service Account d341838d6f Merge "init: qcom: Update HDCP topology sysfs permissions" 2013-09-14 05:59:08 -07:00
Praveena Pachipulusu 08fb6e36ea init.qcom: Modified symlink for /dev/graphics/hdmi
Symlink for /dev/graphics/hdmi was pointing to
wrong path leading to CTS test case failure.

CRs-Fixed: 471554
Change-Id: Ic422dea3e79e2421b1770621870bfa4c360b0094
2013-08-23 16:21:14 +05:30
Satya Durga Srinivasu Prabhala b1b89e15db Replace sysdev path
sysdev gets deprecated in 3.10 Kernel. Hence, replacing
sysdev path with relevant path/s.

Change-Id: Ia951a720fb7012ca7e0c034935024b9f69faf1f3
2013-08-16 21:19:20 -07:00
Ajay Singh Parmar 4663cec554 init: qcom: Update HDCP topology sysfs permissions
This change updates the sysfs node "hdcp/tp" permissions
such that it can be accessed by system modules

Change-Id: Iafc1788b5454cb034a7a62fa3e9c0ff62d46dbdc
2013-08-10 10:00:15 -07:00
Ilia Lin 4bc963fed1 init: qcom: Set ro.sf.lcd_density for Dragonboard APQ8074
Set the property ro.sf.lcd_density value to comply the
Dragonboard APQ8074 display size.

Change-Id: Ia6d23bfcb2cd9cf1e03dc0ecf80f5d21e635f077
2013-07-02 20:27:55 +03:00
Linux Build Service Account 908946b067 Merge "Set default time before Zygote init to year 2009" 2013-05-09 15:14:23 -07:00
Jalaj Swami 620710d7a8 Set default time before Zygote init to year 2009
There is a Zygote issue that prevents time classes from
initializing properly when the system time is before 2008.
The Daylight Savings Time (DST) is not supported when that happens.
There is a race condition between Zygote init and time_daemon
setting the system time so sometimes the system time seen by Zygote
init is the dafault value (year 1970). This fix sets the time just
before Zygote init to year 2009 and that allows Zygote classes to
initialize.
Google recently has a fix for Zygote init to support time before
2008, (see https://code.google.com/p/android/issues/detail?id=26419),
but that will come in JB_MR2. Till then we need this fix.

CRs-Fixed: 467157

Change-Id: I7e101f576347230f017400b1d41f36eb939acf84
2013-05-08 14:38:55 -07:00
David Ng 1130a3b4a6 qcom: Add initial support for APQ8084 target
Add APQ8084 target to QCOM platform list and set default USB
enumeration/LCD density setting for initial device bring-up.

Change-Id: I57ebbcc5d510f1e41869ab3f3b72f5200dc67e9b
2013-04-25 19:06:37 -07:00
David Ng 829aff1fc1 init: msm8610: Change display density to 240
Correct display density to 240.

Change-Id: Ib7748efddddcd7e5bb8037b60ec78670e78c997a
2013-04-25 19:06:08 -07:00
Arun Kumar K.R 075a85d159 init.qcom.early_boot.sh: Add SPD support for HDMI nodes
SPD means Source Product Description of the HDMI Source
Add support for SPD nodes and its corresponding permissions

Change-Id: Iaf8b53d899ea23556908516de94d4e9c432c4995
2013-03-27 08:18:47 -07:00
Arun Kumar K.R 0e1a857208 init.qcom: Modify init.qcom files for HDMI node
- HDMI fb number will not be known until the device
  boot up, it will be set depending on the driver
  registration
- check the panel type and determine the HDMI fb node
  and change the permissions accordingly

Change-Id: I49f9e8a957b1eb1fad111a321cf04a4963a1365e
CRs-fixed: 451094
2013-03-20 13:26:16 -07:00
Duy Truong 0c0744e022 Update copyright to The Linux Foundation
Change-Id: Id084b09bf3a083ea5c0389900bbeb5ef149b3108
2013-02-10 06:35:11 -08:00
David Ng 9c88b6c815 init: qcom: Set ro.hw.nav_keys property for 8974 liquid
MSM8974 Liquid device do not have hardware navigation keys.
Set property ro.hw.nav_keys to 0 to enable Android sw
navigation bar.

Change-Id: I1dd00dcf4c87727d1c92cc9daf77dd238b35c59b
2013-01-16 14:48:59 -08:00
David Ng 9f3e3c450b init: Update display density on 8974 and 8610/8226
Change display density from the measured 340 dpi to the nearest
official Android display density setting of 320.

CRs-Fixed: 428798
Change-Id: I2367dafdf0fe5db9be7fea16e4e4514ba0fce399
2013-01-08 10:37:51 -08:00
David Ng 0f87afbfb7 qcom: Add initial support msm8226 and rename msm8910 to msm8610
Add MSM8226 to QCOM platform list and set default USB
enumeration/LCD density setting for initial device bring-up.
Rename MSM8910 target to MSM8610.

Change-Id: Ice3679ddb38e3c8cf5aa27f1f8dbf5ce814e923e
2012-11-26 15:02:19 -08:00
Naomi Luis 411bd34449 init: Enable c2d comp. for 8960AB, 8930AB and 8930AB variants
Change-Id: I686c25f30d9de86796e7cac7a5e69e98a2190274
2012-11-14 16:49:51 -08:00
David Ng 12f9679dcc qcom: Add initial support msm8910
Add MSM8910 to QCOM platform list and set default
USB enumeration/LCD density setting for initial
device bring-up.

Change-Id: Ic949f6df629a50b3718190f4eb08386fe836f6f8
2012-11-08 10:55:01 -08:00
Naomi Luis 9eab7cc647 init: Override the composition type for 8960 and 8064 V2 Prime
- Use dyn composition for 8960
- Use c2d composition for 8064 V2 Prime.
- Remove the call to set setprop c2d.api.supported which is a
redundant property.

Change-Id: Ibd7791b234feafe35c01b52e8a62327ff7379685
2012-11-02 14:05:17 -07:00
Arun Kumar K.R e9d66d7caf init.qcom.early_boot. sh: set c2d.api.supported if needed
- If the target has the 2D core set the c2d.api.supported property
- This property should be set for MDP 3.x targets also
- This will be used in hwcomposer to call into c2d API's

Change-Id: I005f502098b225f22ec72b7e0d431a50c1095acf
2012-10-15 19:19:00 -07:00
David Ng 2a76cfa880 init: Add LCD density setting for MSM8974
Move LCD density property setting from MSM8974-specific build.prop.
Set 160dpi for Liquid devices and 340dpi for all others.

Change-Id: I6c4d4e47166c77c55baaf0d8dec7861123d6af99
2012-09-27 17:48:45 -07:00
David Ng c92bdf00f5 init: Move Android system property setting to early-boot stage
Move system property settings such as LCD density to early-boot.
This ensures the properties are set before any service is
started.

CRs-Fixed: 390942
Change-Id: Iba5dfb5b55f33904bd09d4b618b5399d7bda8cbd
2012-09-05 19:26:03 -07:00