]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/device-ti-jacinto6evm.git/log
android/device-ti-jacinto6evm.git
6 years agoMerge branch 'd-oreo-r6-core-release' into d-oreo-mr1-core-release d-oreo-mr1-core-release
Praneeth Bajjuri [Mon, 15 Jan 2018 18:43:48 +0000 (12:43 -0600)]
Merge branch 'd-oreo-r6-core-release' into d-oreo-mr1-core-release

* d-oreo-r6-core-release:
  jacinto6evm: fastboot.sh: remove oem spi
  jacinto6evm: make drivers built-in
  jacinto6evm: Add back auto configuration for initial bringup
  jacinto6evm: Make modules built-in
  jacinto6evm: Remove car configuration
  jacinto6evm: remove jamr services

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
6 years agojacinto6evm: fastboot.sh: remove oem spi d-oreo-r6-core-k49-release d-oreo-r6-core-release
Praneeth Bajjuri [Fri, 12 Jan 2018 19:39:54 +0000 (13:39 -0600)]
jacinto6evm: fastboot.sh: remove oem spi

core release supports emmc ( which is default when we do
oem format). hence removing unsupported oem spi.

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
6 years agojacinto6evm: remove legacy dhcpcd services
Vishal Mahaveer [Thu, 11 Jan 2018 17:27:35 +0000 (11:27 -0600)]
jacinto6evm: remove legacy dhcpcd services

dhcpcd daemon is removed from Android, remove the
obsolete service definitions.

Change-Id: Ia7a3c379858d61c99313306160ee900ac92593e6
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: add pinner service config
Vishal Mahaveer [Thu, 11 Jan 2018 17:20:43 +0000 (11:20 -0600)]
jacinto6evm: add pinner service config

Add default files for pinning.

Change-Id: Ibe49d39d02b701ed462d26cc637d9b9c1fa79157
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: make drivers built-in
Praneeth Bajjuri [Thu, 28 Dec 2017 21:05:06 +0000 (15:05 -0600)]
jacinto6evm: make drivers built-in

For initial bringup , make drivers built-in.

Todo: make the drivers modularas per treble requirement

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
6 years agojacinto6evm: Initial changes for O MR1 d-oreo-mr1-release
Vishal Mahaveer [Wed, 22 Nov 2017 13:54:43 +0000 (07:54 -0600)]
jacinto6evm: Initial changes for O MR1

- RRO feature results in build break, disbaling for now.
- Automotive vehicle service needs to be added explicitly to product

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: Add back auto configuration for initial bringup
Praneeth Bajjuri [Wed, 6 Dec 2017 16:42:50 +0000 (10:42 -0600)]
jacinto6evm: Add back auto configuration for initial bringup

for initial bringup of Android 4.9 we need to keep android device project
in sync with d-oreo-r6-release.

TODO: cleanup automotive features

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
6 years agoMerge branch 'd-oreo-r6-core-release' of git.ti.com:android/device-ti-jacinto6evm...
Praneeth Bajjuri [Wed, 6 Dec 2017 16:38:11 +0000 (10:38 -0600)]
Merge branch 'd-oreo-r6-core-release' of git.ti.com:android/device-ti-jacinto6evm into d-oreo-r6-core-release

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Conflicts:
device.mk

6 years agojacinto6evm: fastboot.sh: support multiple dra76 evm revisions d-oreo-r6-release
Vishal Mahaveer [Wed, 15 Nov 2017 00:19:48 +0000 (18:19 -0600)]
jacinto6evm: fastboot.sh: support multiple dra76 evm revisions

There are multiple versions of dra76 boards (A, A.1), don't
check for board revision in case of dra76.

Change-Id: I0d9d685fa16c4c57ad29c11bdbe5156a328ba10f
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: include dalvik definitions
Vishal Mahaveer [Wed, 8 Nov 2017 23:36:05 +0000 (17:36 -0600)]
jacinto6evm: include dalvik definitions

Fixes: 736085b ("jacinto6evm: initial O changes")
In initial Oreo bring up commit, this line was commented
by mistake.

Change-Id: If10291688471c3687fbe24c3d284205b03623997
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: Make modules built-in
Praneeth Bajjuri [Fri, 27 Oct 2017 05:25:40 +0000 (00:25 -0500)]
jacinto6evm: Make modules built-in

Temp fix to make the modules built-in.

After the intial o enablement stage, re-enable back as
modular.

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
6 years agojacinto6evm: Remove car configuration
Praneeth Bajjuri [Fri, 27 Oct 2017 05:20:16 +0000 (00:20 -0500)]
jacinto6evm: Remove car configuration

Remove car configuration

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
6 years agojacinto6evm: remove jamr services
Praneeth Bajjuri [Fri, 27 Oct 2017 05:14:35 +0000 (00:14 -0500)]
jacinto6evm: remove jamr services

Remove JAMR services ( Vision, APPE, Radio )

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
6 years agojacinto6evm: fastboot.sh: update script based on new device names
Praneeth Bajjuri [Fri, 6 Oct 2017 22:48:58 +0000 (17:48 -0500)]
jacinto6evm: fastboot.sh: update script based on new device names

device names has been changed in u-boot code now.

This patch also introduces DRA76 device tree flashing capability

Change-Id: I19bd427f6392a5f16231a360ca00cc5328955e29
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
6 years agoaudio: Combine the JAMR3 HAL into the primary HAL
Misael Lopez Cruz [Thu, 19 Oct 2017 06:52:02 +0000 (01:52 -0500)]
audio: Combine the JAMR3 HAL into the primary HAL

JAMR3 line-in audio support was provided through a separate audio HAL
which caused significant code duplication.  Line-in audio support is
now combined into the primary HAL.

Change-Id: Ibd1d481954f1ebb71bb543c5a9d8dbd3ba61b002
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
6 years agojacinto6evm: remove old EVM touch screen files
Vishal Mahaveer [Mon, 23 Oct 2017 18:15:09 +0000 (13:15 -0500)]
jacinto6evm: remove old EVM touch screen files

We don't support Rev-D EVM any more, remove corresponding
files from build.

Change-Id: If93575a5088abc0378b40d61535583b6725ef940
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: init: cleanup old entries
Vishal Mahaveer [Fri, 20 Oct 2017 21:32:12 +0000 (16:32 -0500)]
jacinto6evm: init: cleanup old entries

- Remove lines that are already taken care in core/init.rc and atrace.rc
- Remove old services

Change-Id: Ie31dc1f752a37ccca63303426f9e6c301bd0eb8d
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: enable RRO on framework-res
Vishal Mahaveer [Thu, 19 Oct 2017 20:39:34 +0000 (15:39 -0500)]
jacinto6evm: enable RRO on framework-res

Convert overlay part of framework-res to RRO. This enables
moving overriden part of default settings in framework to
vendor partition.

Change-Id: I4aa78d15027d52fd880a3840c1f132ebbcf82798
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: remove obsolete storage_list.xml
Vishal Mahaveer [Thu, 19 Oct 2017 20:35:21 +0000 (15:35 -0500)]
jacinto6evm: remove obsolete storage_list.xml

storage_list resource overlay is no longer used, this was used prior
to Android 5.0. Remove the old file from overlay.

Change-Id: Ie93c6a7abd9dfe711e6ec3391981550a897e3988
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: move vendor properties to vendor partition
Vishal Mahaveer [Thu, 19 Oct 2017 20:31:35 +0000 (15:31 -0500)]
jacinto6evm: move vendor properties to vendor partition

As part of treble, move the vendor specific properties
to /vendor partition

Change-Id: I4ff39234ebd014323a7f484641c35a6c1b2cb7e1
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: modules: remove unused kernel modules
Vishal Mahaveer [Wed, 18 Oct 2017 03:09:27 +0000 (22:09 -0500)]
jacinto6evm: modules: remove unused kernel modules

Remove kernel modules that are not needed for J6 EVMs.

By reducing number of modules, it also helps in working
around an issue where some driver modules are not loaded
by init at boot time.

Change-Id: I9a696492737078c66410f51faf8a3e54422e7497
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: update cmem module arguments for larger pools
Vishal Mahaveer [Mon, 9 Oct 2017 18:36:35 +0000 (13:36 -0500)]
jacinto6evm: update cmem module arguments for larger pools

Update cmem arguments for larger pools, this is needed for
APPE HAL record to function for all APPE configurations.

Change-Id: I30f6a09900ca8ddbe2ca433faf7a89c7eded3ee8
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: sepolicy: add new rules for hal_camera_default
Vishal Mahaveer [Tue, 10 Oct 2017 22:39:51 +0000 (17:39 -0500)]
jacinto6evm: sepolicy: add new rules for hal_camera_default

Changes for addressing new SELinux errors reported
with camera HAL.

Change-Id: Id95bd4a3de208fc31b93ba6675576461ef49bea5
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: Include camera provider modules
David Huang [Mon, 9 Oct 2017 19:12:56 +0000 (14:12 -0500)]
jacinto6evm: Include camera provider modules

Add the default camera provider to build.
Camera provider is necessary for camera
functionality.

Change-Id: Icf78f40bf6a0ba61b30aa62a461761f9934b1b3c
Signed-off-by: David Huang <d-huang@ti.com>
6 years agojacinto6evm: use vendor modprobe for loading modules
Vishal Mahaveer [Fri, 6 Oct 2017 14:45:38 +0000 (09:45 -0500)]
jacinto6evm: use vendor modprobe for loading modules

Use modprobe from vendor parition for loading modules
in vendor partition. This fixes the selinux errors like below,

[    5.231785] audit: type=1400 audit(5.229:3): avc:  denied { module_load }
for  pid=136 comm="modprobe" path="/vendor/lib/modules/wlcore.ko"
dev="mmcblk0p11" ino=169 scontext=u:r:modprobe:s0
tcontext=u:object_r:vendor_file:s0 tclass=system permissive=1

Change-Id: Idae31f9802426651340b3535cbadef347ad4cca0
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: sepolicy: update for pvrsrvkm move to vendor partition
Vishal Mahaveer [Thu, 5 Oct 2017 22:27:28 +0000 (17:27 -0500)]
jacinto6evm: sepolicy: update for pvrsrvkm move to vendor partition

sepolicy update for recent move of pvr kernel module to vendor
partition. This change fixes the below selinux warning

[    7.682370] type=1400 audit(7.679:4): avc: denied { module_load }
for pid=187 comm="pvrsrvinit" path="/vendor/lib/modules/pvrsrvkm.ko"
dev="mmcblk0p11" ino=160 scontext=u:r:pvr:s0 tcontext=u:object_r:vendor_file:s0
tclass=system permissive=1

Change-Id: Id137852d626c2e5ee0ef8fdb40d7934c484c0ec9
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: recovery: add kernel modules for recovery ramdisk
Vishal Mahaveer [Wed, 4 Oct 2017 22:00:47 +0000 (17:00 -0500)]
jacinto6evm: recovery: add kernel modules for recovery ramdisk

Add kernel modules for recovery ramdisk also.

Change-Id: Idc83e90ed8846396313aa094591870eaf8c4d4ce
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: Set IPC/Radio related permissions to system:media
Misael Lopez Cruz [Wed, 20 Sep 2017 04:04:25 +0000 (23:04 -0500)]
jacinto6evm: Set IPC/Radio related permissions to system:media

Audio no longer belongs to the 'media' process.  It runs in a
separated process ('audioserver') so the LAD and IPC files (/dev/cmem,
/dev/uio0, /dev/hwspinlock) couldn't be accessed anymore because
their ownership was set to media:system.

The binderized audio service is started under the 'audioserver'
user and several groups including 'media':

service audio-hal-2-0 /vendor/bin/hw/android.hardware.audio@2.0-service
    class hal
    user audioserver
    # media gid needed for /dev/fm (radio) and for /data/misc/media (tee)
    group audio camera drmrpc inet media mediadrm net_bt net_bt_admin net_bw_acct
    ...

So, changing the group of the LAD and IPC files to 'media' allows
the audio service to access them again.

Change-Id: Iecbc3531831f126e22881bf124c7cca464b00175
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
6 years agojacinto6evm: Move cmem and vis service to vendor partition
Misael Lopez Cruz [Wed, 20 Sep 2017 04:06:53 +0000 (23:06 -0500)]
jacinto6evm: Move cmem and vis service to vendor partition

Move the cmemk module and VIS service binary location to the
vendor partition.

Change-Id: Ic91126d497103480c7d5fc5dda0abb61a066c528
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
6 years agoaudio: Use XML audio configuration files
Misael Lopez Cruz [Thu, 21 Sep 2017 22:43:46 +0000 (17:43 -0500)]
audio: Use XML audio configuration files

Replace the legacy audio_policy.conf with the new XML-based
audio policy configuration approach.

This version of the audio policy excludes the HDMI and JAMR3
HALs because they're currently not being loaded in the
binderized mode.

Change-Id: I43147dab735e3e0cbdd74578e50bbc016494910c
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
6 years agojacinto6evm: modules: add vision and jamr3
Subash Lakkimsetti [Tue, 12 Sep 2017 22:27:43 +0000 (17:27 -0500)]
jacinto6evm: modules: add vision and jamr3

Add vision and jamr3 related kernel modules to the list
of vendor modules.

Change-Id: Id6bfb1ef1dafca7d87abe16730c8967895a4a7f4
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
6 years agojacinto6evm: modules: add touch screen
Subash Lakkimsetti [Tue, 12 Sep 2017 22:13:03 +0000 (17:13 -0500)]
jacinto6evm: modules: add touch screen

Add touch screen related board specific kernel modules to the list
of vendor modules.

Change-Id: I84364942b1e7f13f23565a9b5a0149890dd39927
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
6 years agojacinto6evm: modules: add display panel modules
Subash Lakkimsetti [Tue, 12 Sep 2017 21:58:32 +0000 (16:58 -0500)]
jacinto6evm: modules: add display panel modules

Add display panel, encoder and led related kernel modules to the list
of vendor modules.

Change-Id: I658d4c874095302f45224afce55497cfbe877347
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
6 years agojacinto6evm: move device specific configs to vendor
Vishal Mahaveer [Wed, 20 Sep 2017 18:29:25 +0000 (13:29 -0500)]
jacinto6evm: move device specific configs to vendor

Move device specific configuration files to vendor partition.

Change-Id: I92a9f2f9311514cc43656c090f9bee65208d9ff2
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: update lad_dra7xx path
Vishal Mahaveer [Wed, 13 Sep 2017 21:24:58 +0000 (16:24 -0500)]
jacinto6evm: update lad_dra7xx path

lad_dra7xx is now moved to /vendor partition. Update the path
in service definition and sepolicy.

Change-Id: Id6ca040f2dae4cdafb406fdbc6d3d718e117c65d
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: audio: Enable binderized HIDL interface
Misael Lopez Cruz [Wed, 13 Sep 2017 03:53:34 +0000 (22:53 -0500)]
jacinto6evm: audio: Enable binderized HIDL interface

Enable the service side library of the HIDL audio interface
so that it can work in binderized mode.

Change-Id: Id1369d9bc6d2c8010fef00ca50fcd57eea3c08b3
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
6 years agoaudio: Move HALs and policy files to vendor partition
Misael Lopez Cruz [Wed, 13 Sep 2017 04:14:59 +0000 (23:14 -0500)]
audio: Move HALs and policy files to vendor partition

Move the audio policy configuration file and the J6 audio HALs
(primary, JAMR3 and HDMI) to the 'vendor' partition.

Change-Id: I0753cc7ef67425921acaa2f4a7c8c1b4a087d679
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
6 years agoaudio: Get card name via mixer_get_name()
Misael Lopez Cruz [Wed, 13 Sep 2017 06:01:56 +0000 (01:01 -0500)]
audio: Get card name via mixer_get_name()

The card index detection mechanism used in the audio HALs was
based on a customized function which isn't part of the tinyalsa
library.

tinyalsa provides the mixer_get_name() function which also
returns the card name.  The audio HALs now make the card index
detection based on this function and no longer rely on a
customized tinyalsa library.

Change-Id: I10b52df27ad1d4937bfa59a4b2f1b777701c70c0
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
6 years agojacinto6evm: enable MultiUser configuration
Vishal Mahaveer [Tue, 12 Sep 2017 20:01:26 +0000 (15:01 -0500)]
jacinto6evm: enable MultiUser configuration

Enable MultiUser related configurations.

Change-Id: Icf14a2f76768709a185cbb131381b1f4a6cc98f6
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: move module loading to late-init
Vishal Mahaveer [Thu, 7 Sep 2017 22:58:37 +0000 (17:58 -0500)]
jacinto6evm: move module loading to late-init

Now that we have early mounting of vendor partition enabled, module
loading is not dependent on fs.

Change-Id: I3a9628d4e507ce2bba92096147c0bb9f9dfb6ca9
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: move soc specific init files to vendor partition
Vishal Mahaveer [Thu, 7 Sep 2017 16:19:56 +0000 (11:19 -0500)]
jacinto6evm: move soc specific init files to vendor partition

Move SoC specific init files to vendor partition. This works on top
of early mounted vendor partition.

Change-Id: I320cf139a66b743d4f346030f7f428e28ff31288
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: fstab: remove system and vendor partition
Vishal Mahaveer [Thu, 7 Sep 2017 15:19:34 +0000 (10:19 -0500)]
jacinto6evm: fstab: remove system and vendor partition

These partitions are moved to kernel device tree for init
to early mount them as part of first stage boot.

Change-Id: I3474282046e7aa76f23744345b61a29c35f6ae85
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agoRevert "jacinto6evm: switch to generic bootanimation"
Vishal Mahaveer [Thu, 7 Sep 2017 23:18:49 +0000 (18:18 -0500)]
Revert "jacinto6evm: switch to generic bootanimation"

This reverts commit d9967fb802ebb3c938faa80ab3d53df919ed6421.

Change-Id: I00f88c55c60b6a2bd146d85a6b2c01f48ebbb1df
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: modules: add USB mass storage
Subash Lakkimsetti [Thu, 7 Sep 2017 21:16:36 +0000 (16:16 -0500)]
jacinto6evm: modules: add USB mass storage

Add USB mass storage related kernel modules to the list
of vendor modules.

Change-Id: If975a0ee751f275b03603ea6924100a8be763ee2
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
6 years agojacinto6evm: initial changes for vendor modules
Vishal Mahaveer [Wed, 6 Sep 2017 18:39:54 +0000 (13:39 -0500)]
jacinto6evm: initial changes for vendor modules

Changes to enable modules loading from vendor
partition. Starting with WLAN drivers.

After this change the Kernel is expected to be built
before building Android file system and kernel path needs
to be exported via KERNELDIR environment variable.

Change-Id: Ibe6efd1f5afb0cf9d87a3f17d49bfcde27717ad8
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: switch to generic bootanimation
Vishal Mahaveer [Fri, 1 Sep 2017 19:08:23 +0000 (14:08 -0500)]
jacinto6evm: switch to generic bootanimation

By default when including car product, android wear boot animation
is copied to target.

Change-Id: Ic7c7c766b5fd41ef90cd1d8e6fe566ca59bccc14
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: enable new feature permissions
Vishal Mahaveer [Thu, 31 Aug 2017 22:12:54 +0000 (17:12 -0500)]
jacinto6evm: enable new feature permissions

Add CTS, freeform window management and audio output permissions

Change-Id: I356dce3426e6fe2f555a2d8a114a1608795fb201
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: don't switch to CAR UI yet
Vishal Mahaveer [Thu, 31 Aug 2017 21:54:27 +0000 (16:54 -0500)]
jacinto6evm: don't switch to CAR UI yet

Changes to not enable Car UI for time being.

Change-Id: Id6258112f8adc335a072aeef49d465a4442c6935
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: initial changes for automotive configuration
Vishal Mahaveer [Thu, 24 Aug 2017 14:58:06 +0000 (09:58 -0500)]
jacinto6evm: initial changes for automotive configuration

Initial changes to switch device definition to automotive.

Change-Id: Ifef7519abe65883c37a7387e43288d9241f9e9e6
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agoselinux: grant rx perms to toolbox_exec where needed
Vishal Mahaveer [Thu, 24 Aug 2017 16:33:19 +0000 (11:33 -0500)]
selinux: grant rx perms to toolbox_exec where needed

[ based on commit 630adcb0779926a0900b054ef4e2658d7a693c82
  from device/lge/bullhead ]

AOSP commit a3c97a7660ba ("Only allow toolbox exec where /system
exec was already allowed.") removed domain's rx perms to
toolbox_exec. This breaks a number of domains on bullhead. Restore
rx perms for toolbox_exec where needed.

Change-Id: I68dcef5f15535414f7b9588aae1b63b38dd77d8d
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: add vendor partition
Vishal Mahaveer [Wed, 23 Aug 2017 14:49:29 +0000 (09:49 -0500)]
jacinto6evm: add vendor partition

Initial changes for creating separate vendor
partition.

Change-Id: If98caaa1d4c65c12c6afe1e60e35f5c37838ea32
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: initial O changes
Vishal Mahaveer [Mon, 5 Jun 2017 20:04:31 +0000 (16:04 -0400)]
jacinto6evm: initial O changes

Initial changes for building O

Change-Id: I340f2fb47028c6eeef3be546df5659f9971f0044
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: sepolicy: update rules failing build
Vishal Mahaveer [Wed, 23 Aug 2017 03:16:23 +0000 (22:16 -0500)]
jacinto6evm: sepolicy: update rules failing build

Change-Id: I9d43bbab7fad82815fcb6d4dbb3cf0547ef37121
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: add boot partition to fstab
Vishal Mahaveer [Tue, 23 May 2017 17:29:59 +0000 (13:29 -0400)]
jacinto6evm: add boot partition to fstab

Adding boot partition info to fstab.

Change-Id: I01103945479dbc0d627349451c552d0ced0327f2
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: add WallpaperPicker to product packages
Vishal Mahaveer [Thu, 11 May 2017 18:41:32 +0000 (14:41 -0400)]
jacinto6evm: add WallpaperPicker to product packages

Needed for changing wall paper.

Change-Id: I9697504914feda16100957eb96d14d9d4843dfef
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: sepolicy: update rules for N
Vishal Mahaveer [Thu, 27 Apr 2017 17:18:06 +0000 (13:18 -0400)]
jacinto6evm: sepolicy: update rules for N

- Allow pvrinit to access sysfs
- Add configfs rules that are not covered in core policies
- allow mediacodec to access rpmsg device

Change-Id: Ib6e046955adaa4e58b1c76e953bb8c8eacbf85f1
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: update cpuset configuration
Vishal Mahaveer [Wed, 26 Apr 2017 20:12:56 +0000 (16:12 -0400)]
jacinto6evm: update cpuset configuration

In Nougat top-app/cpus needs to be updated for cpuset

Change-Id: Ibf55973a1c8087a8ebef1ce8ac9b77cf0810fb42
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agojacinto6evm: sepolicy: update i2c device definitions
Vishal Mahaveer [Mon, 24 Apr 2017 20:37:40 +0000 (16:37 -0400)]
jacinto6evm: sepolicy: update i2c device definitions

Remove duplicate defenition of i2c device type, it is now defined
in core selinux policies. This also resolves the build issue
with Nougat MR2.

Change-Id: I90b36b33afe4f1c1bf73edff772f5352402fbb1b
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agoMerge remote-tracking branch 'omap-mirror/d-marshmallow-mr3-release' into d-nougat...
Vishal Mahaveer [Mon, 24 Apr 2017 15:46:56 +0000 (11:46 -0400)]
Merge remote-tracking branch 'omap-mirror/d-marshmallow-mr3-release' into d-nougat-mr2.1-release

Conflicts:
kernel
sepolicy/init.te

Change-Id: I205f056dc87e02e9ac3e32332511c500785d53fb

7 years agojacinto6evm: Update recovery UI format to BGRA d-marshmallow-mr3-release
Gowtham Tammana [Thu, 13 Apr 2017 19:10:48 +0000 (14:10 -0500)]
jacinto6evm: Update recovery UI format to BGRA

Updating the recovery UI format from RGB565 to BGRA format.

Change-Id: Ia6e2841912b45c3aafa41d767be34d0426d3e506
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agojacinto6evm: Increase in CMA pool count for Radio app
Subash Lakkimsetti [Wed, 15 Feb 2017 18:00:21 +0000 (12:00 -0600)]
jacinto6evm: Increase in CMA pool count for Radio app

CMEM CMEM runs out of memory when the DSP Profiler
and –o ARM option are both enabled on Linux. In Android,
DSP profiler is disabled.

This change is to adapt changes done for Linux.

Change-Id: I6b276354f3c84afe837db5e522171bfdf7f24696
Signed-off-by: Subash Lakkimsetti <x0091084@ti.com>
7 years agomedia_codecs.xml: Add max number of concurrent instance support
Sunita Nadampalli [Tue, 7 Feb 2017 16:55:14 +0000 (10:55 -0600)]
media_codecs.xml: Add max number of concurrent instance support

Change-Id: I2168b4adc84e6796aa63f9ff99df313fed94265e
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
7 years agomedia_codecs.xml: define the max input buffers for encoder
Sunita Nadampalli [Mon, 16 Jan 2017 22:12:00 +0000 (16:12 -0600)]
media_codecs.xml: define the max input buffers for encoder

This is required to enable persitent surface encoding.

Change-Id: I9fcbdda5323d5194e28c7de7b07dbc1496567050
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
7 years agojacinto6evm: update reference 4.4 kernel image
Praneeth Bajjuri [Thu, 26 Jan 2017 20:22:33 +0000 (14:22 -0600)]
jacinto6evm: update reference 4.4 kernel image

update kernel reference image to 4.4.43
Ref: http://git.omapzoom.org/?p=kernel/omap.git;a=shortlog;h=refs/heads/p-ti-lsk-android-linux-4.4.y
commitID: 991709bacfdc6712b6499b1fda0c2eed93a9a413

Change-Id: I6b6fc2f029cd69327aa6b5172cbfcfcc896d0d84
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agojacinto6evm: remove efs partition
Praneeth Bajjuri [Tue, 29 Nov 2016 00:12:09 +0000 (18:12 -0600)]
jacinto6evm: remove efs partition

remove factory or efs partition flashing as this is not applicable
for the current configuration.

Change-Id: I0fe2758bb653b07a56befdcf2072004c71e4f05a
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agojacinto6evm: Add feature for voice recognition software
Vishal Mahaveer [Mon, 26 Dec 2016 16:45:33 +0000 (11:45 -0500)]
jacinto6evm: Add feature for voice recognition software

Add permission for voice recognition software.

Change-Id: I18259bc181eeb3f9259731f6a5049e46236ae7f5
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: add media_codecs_performance.xml
Angela Stegmaier [Wed, 18 Jan 2017 18:27:11 +0000 (12:27 -0600)]
jacinto6evm: add media_codecs_performance.xml

Some CTS tests require the media_codecs_performance.xml
file to be present on the device in /system/etc in order
for the tests to PASS.

This media_codecs_performance.xml file was generated by
first running the CTS tests on the J6 EVM and then
using the results and the cts-provided get_achievable_rates.py
script.

Note that this file may need to be re-generated for other
devices like J6Eco.

Change-Id: I8c8eaf197493d9c92757d966c46264d227a85eba
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
7 years agojacinto6evm: enable systrace functionality
Vishal Mahaveer [Fri, 6 Jan 2017 00:26:00 +0000 (19:26 -0500)]
jacinto6evm: enable systrace functionality

Enable systrace support for jacinto6evm. Most of the permission
configurations are done by "init.trace.rc", these are additional
permissions needed.

Change-Id: Ib9cbbcab88e4758c269f3bdbf4fd754086f74666
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: remove old wilink services
Vishal Mahaveer [Thu, 5 Jan 2017 22:45:17 +0000 (17:45 -0500)]
jacinto6evm: remove old wilink services

Remove GNSS devices and BT services which are no longer needed.

Change-Id: I42032ba1608789dd80c7fde7fc7c0eb4a56f8a37
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: remove insmod lines for wlan
Vishal Mahaveer [Mon, 26 Dec 2016 17:05:30 +0000 (12:05 -0500)]
jacinto6evm: remove insmod lines for wlan

wlan drivers are now built in to kernel. Remove corresponding
insmod lines.

Change-Id: I94a9b5215f8d5f43e74eaded912a2f1ef17dee28
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoRevert "jacinto6evm: add changes for GNSS"
Vishal Mahaveer [Mon, 26 Dec 2016 17:04:21 +0000 (12:04 -0500)]
Revert "jacinto6evm: add changes for GNSS"

This reverts commit ed339cd7ba59db62b9ed65d2a540d4fd68f03f41.
Cleanup legacy configurations that are no longer used.

Change-Id: I152418648937558befe3a80ff2695a3d5b64b451
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: call makefile for installing touch firmware
Praneeth Bajjuri [Wed, 7 Dec 2016 06:11:53 +0000 (00:11 -0600)]
jacinto6evm: call makefile for installing touch firmware

Call makefile from device/ti/proprietary-open/ for installing
touch configuration binary for dra71-evm builds

Change-Id: I19e1b80ed44a651bf28db9604316b8fd2e4aa6fa
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoaudio: primary: Allocate temporary buffer for resampling
Misael Lopez Cruz [Fri, 2 Dec 2016 23:31:39 +0000 (17:31 -0600)]
audio: primary: Allocate temporary buffer for resampling

Resampling and remixing requires a temporary buffer to read
audio frames at native format (i.e. stereo, 44.1kHz).  This
temporary buffer was being allocated for remixing but not
for resampling.

The buffer is now being allocated for the worst case, which
is when resampling and remixing are both required.

Change-Id: I0e5eb0a45906067f04bd93313cd51e8cdc0d1a9a
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agojacinto6evm: sepolicy: Add rules for APPE
Misael Lopez Cruz [Wed, 30 Nov 2016 20:37:36 +0000 (14:37 -0600)]
jacinto6evm: sepolicy: Add rules for APPE

Add the initial version of the SELinux rules for the
Audio Post-Processing Engine based audio.

Change-Id: If7b940bdd05da75b0e26d53d9102936c5eb8f54e
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agojacinto6evm: sepolicy: initial sepolicy rules for lad daemon
Vishal Mahaveer [Wed, 12 Oct 2016 18:32:01 +0000 (14:32 -0400)]
jacinto6evm: sepolicy: initial sepolicy rules for lad daemon

Initial rules for lad_dra7xx daemon

Change-Id: I4cff5b47bf978dc87c05bc43926b34899981eefb
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: Don't use logwrapper for lad and RadioApp
Misael Lopez Cruz [Tue, 1 Nov 2016 21:28:12 +0000 (16:28 -0500)]
jacinto6evm: Don't use logwrapper for lad and RadioApp

Change-Id: Idc0a8f09c4952901e2bb7eb404e4d28ac32b8e13
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agoTEMP: disable bluetooth hardware feature
Vishal Mahaveer [Thu, 17 Nov 2016 21:10:34 +0000 (16:10 -0500)]
TEMP: disable bluetooth hardware feature

Remove Bluetooth permissions for time being.

Change-Id: I8969566e268376f323c0998afe37480acf9bcac6
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoRevert "jacinto6evm: changes for defining auto platform"
Vishal Mahaveer [Wed, 16 Nov 2016 20:03:38 +0000 (15:03 -0500)]
Revert "jacinto6evm: changes for defining auto platform"

This reverts commit d0e55148e19bb6ba3401b6ad913154697cb65af0.

7 years agojacinto6evm: update fastboot script for J6Entry Rev A
Praneeth Bajjuri [Fri, 11 Nov 2016 00:34:19 +0000 (18:34 -0600)]
jacinto6evm: update fastboot script for J6Entry Rev A

Update the dtb file name for handling J6Entry Rev-A.

Change-Id: Ib7b10afc6c47cc0950ab5699dbc1dabd7fd3ed3d
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoMerge remote-tracking branch 'omap-mirror/d-marshmallow-mr2-release' into d-nougat...
Vishal Mahaveer [Thu, 27 Oct 2016 02:22:52 +0000 (22:22 -0400)]
Merge remote-tracking branch 'omap-mirror/d-marshmallow-mr2-release' into d-nougat-release

7 years agoMerge "jacinto6evm: add vsync offsets" into d-marshmallow-mr2-release
Vishal Mahaveer [Fri, 7 Oct 2016 19:10:47 +0000 (14:10 -0500)]
Merge "jacinto6evm: add vsync offsets" into d-marshmallow-mr2-release

7 years agojacinto6evm: add vsync offsets
Gowtham Tammana [Wed, 5 Oct 2016 22:29:07 +0000 (17:29 -0500)]
jacinto6evm: add vsync offsets

Add vsync offsets for the sw vsync used by DispSync in the
SurfaceFlinger framework. Initial offsets are based of on
hammerhead device.

Change-Id: I779e579c076409de9ea483a7449323df30743361
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
7 years agojacinto6evm: remove extra hardware feature
Vishal Mahaveer [Wed, 5 Oct 2016 21:26:06 +0000 (17:26 -0400)]
jacinto6evm: remove extra hardware feature

J6 EVM does not have a front camera, remove the corresponding
hardware feature flag.

Change-Id: I7cd833bf2573020bdccd4dad2cb238556f7d906a
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: media_codecs.xml: fix alignment value
Vishal Mahaveer [Thu, 29 Sep 2016 13:51:53 +0000 (08:51 -0500)]
jacinto6evm: media_codecs.xml: fix alignment value

TI decoders can decode any stream which is aligned with 2x2.

Change-Id: Ica0decd34849aa668653a854b87dfcded24a60cc
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: Set product files and packages for APPE based audio
Misael Lopez Cruz [Mon, 1 Aug 2016 22:01:06 +0000 (17:01 -0500)]
jacinto6evm: Set product files and packages for APPE based audio

The APPE HAL and the previous primary HAL cannot coexist, so the
APPE HAL must become the primary HAL when the APPE_AUDIO feature
is enabled.

Similarly, some product files are specific to APPE and replace those
used by the previous primary and JAMR3 HALs.

Change-Id: Ia11bdf721255ebd19e5fcd59aea02e3f5465387a
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agojacinto6evm: Add the 'radio_app' service
Misael Lopez Cruz [Mon, 1 Aug 2016 21:52:52 +0000 (16:52 -0500)]
jacinto6evm: Add the 'radio_app' service

The radio_app service runs the VIS_SDK's RadioApp with
ethernet interface.

Change-Id: I47f7b9b29f02d88f2de21d5002fe84d4b407dfa0
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agojacinto6evm: Start lad_dra7xx with GateMP
Misael Lopez Cruz [Thu, 17 Dec 2015 22:03:38 +0000 (16:03 -0600)]
jacinto6evm: Start lad_dra7xx with GateMP

Start the lad_dra7xx service with GateMP support.

Change-Id: I194f8cf2b046eb3d8a08fd4366a0df693fc47ab8
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agojacinto6evm: Set permissions for IPC daemon and device files
Misael Lopez Cruz [Fri, 20 Nov 2015 21:59:36 +0000 (15:59 -0600)]
jacinto6evm: Set permissions for IPC daemon and device files

Add permissions and user/group for:
 * /dev/hwspinlock. It's used to lock/unlock specific hwspinlock
   instances through ioctls
 * /dev/uio0: It's is assumed to be user-space I/O driver for the
   SR0 shared region.
 * /dev/cmem

The user/group is set to media:system as the main users for these
IPC related devices will be audio (which runs as the 'media' user)
and radio (which is assumed to be a system app that runs in the
'system' group).

The LAD daemon user also needs to be changed to 'media' for the
same reasons described above.

Change-Id: Icde29fd022ec83bb0ecc3f4edb185189c4ab3d16
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agojacinto6evm: Set 'media' user for i2c devices
Misael Lopez Cruz [Mon, 23 Nov 2015 18:20:23 +0000 (12:20 -0600)]
jacinto6evm: Set 'media' user for i2c devices

The i2c devices are used by the radio and APPE user-space
components, mainly to configure the analog codecs for DSP
rendering and to configure radio tuners.

The user/group is set to media:system in order to allow
the APPE part to be started from the Audio HAL (which runs
as the 'media' user).

At the moment, not all i2c devices are accessed by the 'media'
user but having them all accessible by media user provides
more flexibility in case the analog codecs are moved to
different i2c buses.

Change-Id: If920c0861157863c43dbb59cbba9b1997a2ce00a
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 years agojacinto6evm: update ramdisk offset
Vishal Mahaveer [Wed, 21 Sep 2016 18:28:08 +0000 (14:28 -0400)]
jacinto6evm: update ramdisk offset

Update ramdisk offset for loading bigger ramdisk images in single
stage boot. Current offset is not suitable for booting recovery ramdisk
in single stage boot.

Change-Id: I0ee20c981b4b61aff1199b1d643a73d0c090528e
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: sepolicy: add rules for cpuset script
Vishal Mahaveer [Wed, 21 Sep 2016 16:15:55 +0000 (12:15 -0400)]
jacinto6evm: sepolicy: add rules for cpuset script

Fix below denials generated for the script we added to
support both J6 and J6 Eco cpuset configuration.

[    5.956998] init: Warning!  Service exec 1
(/system/bin/init.jacinto6evmboard.cpuset.sh) needs a SELinux domain defined;
please fix!

[    5.978447] type=1400 audit(5.969:3): avc: denied { execute_no_trans }
for pid=177 comm="init" path="/system/bin/init.jacinto6evmboard.cpuset.sh"
dev="mmcblk0p10" ino=206 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0

Change-Id: I36c482e052fc60c9c2d82c7daceae604fcf242d5
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: sepolicy: update pvr module_load permission
Vishal Mahaveer [Tue, 20 Sep 2016 17:20:05 +0000 (13:20 -0400)]
jacinto6evm: sepolicy: update pvr module_load permission

Latest AOSP sepolicy places restriction on where the kernel
module file can be loaded from [1]. Adapt pvr sepolicy to
this change.

There is a change needed in pvr um to move from init_module
to finit_module.

[1] https://android-review.googlesource.com/#/c/214021/3

Change-Id: I77c938e2772243c559e5e3e5edfc91f17db816d8
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoRevert "jacinto6evm: TEMP: disable wlan/wpan firmware makefiles"
Vishal Mahaveer [Thu, 15 Sep 2016 21:32:37 +0000 (17:32 -0400)]
Revert "jacinto6evm: TEMP: disable wlan/wpan firmware makefiles"

This reverts commit ff771bbc38e9a8ed13f004b527a09ed1600cd4d7.

The firmware extraction using Android build system is fixed in
device/ti/proprietary-open project

c260ee9 (wl12xx: fix build issue and align firmware extraction)

Change-Id: Ifa8f7d159786bdf72a27cb698c359cc3aabffe50
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: update prebuilt kernel to recent
Vishal Mahaveer [Mon, 12 Sep 2016 01:35:42 +0000 (21:35 -0400)]
jacinto6evm: update prebuilt kernel to recent

Update prebuilt kernel image to recent version.

Change-Id: Ib74eefe6ac07c1d0cb61c4b6dff2e4b68d96199d
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: changes for defining auto platform
Vishal Mahaveer [Tue, 6 Sep 2016 21:34:40 +0000 (17:34 -0400)]
jacinto6evm: changes for defining auto platform

Define the default uitype to car[1] and define the
hardware as automotive type.

[1] https://developer.android.com/reference/android/content/res/Configuration.html#UI_MODE_TYPE_CAR

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: TEMP: disable wlan/wpan firmware makefiles
Vishal Mahaveer [Tue, 6 Sep 2016 21:30:10 +0000 (17:30 -0400)]
jacinto6evm: TEMP: disable wlan/wpan firmware makefiles

The way WLAN/WPAN firmware gets copied to final build needs to
be relooked at. Latest AOSP build system is giving permission
errors when building them.

Disable for time being.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoRevert "jacinto6evm: sepolicy: updates for configFS"
Vishal Mahaveer [Tue, 6 Sep 2016 21:28:56 +0000 (17:28 -0400)]
Revert "jacinto6evm: sepolicy: updates for configFS"

This reverts commit 1ff27277f3bf42c81e2d3c398468fc2468d4471c.

Configfs rules added in default sepolicy.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoRevert "jacinto6evm: sepolicy: allow init to delete symlinks on /config"
Vishal Mahaveer [Tue, 6 Sep 2016 21:27:51 +0000 (17:27 -0400)]
Revert "jacinto6evm: sepolicy: allow init to delete symlinks on /config"

This reverts commit 64caf5c82d17537a9281ae8d3fe99b7e5defbd92.

Configfs rules added in default sepolicy.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: TEMP: remove custom wallpaper
Vishal Mahaveer [Tue, 6 Sep 2016 21:58:32 +0000 (17:58 -0400)]
jacinto6evm: TEMP: remove custom wallpaper

This is generating build erros with latest AOSP build.
Remove it for time being.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agojacinto6evm: remove COMMON_GLOBAL_CFLAGS
Vishal Mahaveer [Tue, 6 Sep 2016 21:18:41 +0000 (17:18 -0400)]
jacinto6evm: remove COMMON_GLOBAL_CFLAGS

Latest Android does not support defining COMMON_GLOBAL_CFLAGS from
BoardConfig.mk

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>