msm: rpc: add shutdown and restart handler for rpc

Add shutdown and restart handler for rpcrouter. The
shutdown handler will take care of calling the
msm_rpcrouter_close function with a pre defined
priority. PM no longer had to handle rpc in the shutdown/reboot
sequence.

Signed-off-by: Angshuman Sarkar <angshuman@codeaurora.org>
(cherry picked from commit 4e253c2c596ff611556736822a6df166132504e7)

Change-Id: I312c38ce222f10cc5589bb9de22d7a6bf47045d5
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: rpc: add shutdown and restart handler for rpc

Add shutdown and restart handler for rpcrouter. The
shutdown handler take care of calling the
msm_rpcrouter_close function with a pre defined
priority. PM no longer handle rpc close in the shutdown/reboot
sequence.

CRs-fixed: 396641
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Angshuman Sarkar <angshuman@codeaurora.org>
(cherry picked from commit 0975c60881a90c0adf36bac4739b812e34acb813)
Change-Id: I3dd21a72eb624273b16f5a300b55b068a02d509b
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm: restart_7k: Disable local IRQ interrupt

While doing the power on/off test, there is a chance
where APPS proc can receive the proc comm interrupt from
the modem. But at this stage proc comm channels are
already disabled and can't handle any new proc comm
requests that are coming in. Hence disable the local
interrupts.

Change-Id: If80928e69ae0d1522b0da186e075142122d9558d
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
msm7x30: Disable unsupported features

These parameters are only handled on 1080p.
misc: pmem: Add support for CMA

Add new allocator type PMEM_ALLOCATORTYPE_DMA.
This is based on the PMEM system heap + ION CMA heap.

To use CMA (platform data changes):
 * Select allocator type PMEM_ALLOCATORTYPE_DMA.
 * Supply private_data with CMA device.

Change-Id: I3ca87e862117b064f34c0ebe79d356ab72088122
msm7x30: Use CMA for PMEM ADSP

By using the DMA allocator type for PMEM ADSP, it's now possible to
dynamically allocate, through CMA framework, the memory needed by camera
and camcorder.

Thanks to Blefish for his work!