History log of /drivers/staging/tidspbridge/core/tiomap3430.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a2cd62ec9a3a2805014bdc14e0644b5faa352d3c 21-Apr-2012 Omar Ramirez Luna <omar.ramirez@ti.com> staging: tidspbridge: remove usage of OMAP2_L4_IO_ADDRESS

Instead now use ioremap. This is needed for 3.4 since this change
emerged in mainline during one of the previous rc cycles.

These solves the following compilation breaks:

drivers/staging/tidspbridge/core/tiomap3430.c:
In function ‘bridge_brd_start’:
drivers/staging/tidspbridge/core/tiomap3430.c:425:4:
error: implicit declaration of function ‘OMAP2_L4_IO_ADDRESS’

drivers/staging/tidspbridge/core/wdt.c: In function ‘dsp_wdt_init’:
drivers/staging/tidspbridge/core/wdt.c:56:2:
error: implicit declaration of function ‘OMAP2_L4_IO_ADDRESS’

For control registers a new function needs to be defined so we
can get rid of a layer violation, but that approach must be queued
for the next merge window.

As seen in:
http://www.arm.linux.org.uk/developer/build/
platform: omap4430-sdp build: uImage
config: randconfig version: 3.4.0-rc3
start time: Apr 20 2012 01:07

Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/drivers/staging/tidspbridge/core/tiomap3430.c
08cd9ef4eca0b53cdae190b718e4945408c7d3b8 22-Feb-2012 Omar Ramirez Luna <omar.ramirez@ti.com> staging: tidspbridge: detect wdt3 feature at runtime

In order to detect WDT feature on the dsp code, we need to
find the symbol used to enable it inside the baseimage.

This should fix the warning comming from L3 driver:

WARNING: at arch/arm/mach-omap2/omap_l3_smx.c:161 omap3_l3_app_irq...
In-band Error seen by IVA_SS at address 0
...

That occurs because the dsp tries to access wdt3 registers when the clock
for those registers is not enabled.

Reported-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/drivers/staging/tidspbridge/core/tiomap3430.c
b91867f2ee5c84b550f95ce54c91b180f70f48cb 10-Feb-2012 Greg Kroah-Hartman <gregkh@linuxfoundation.org> Merge tag 'staging-3.3-rc3' into staging-next

This was done to resolve some merge issues with the following files that
had changed in both branches:
drivers/staging/rtl8712/rtl871x_sta_mgt.c
drivers/staging/tidspbridge/rmgr/drv_interface.c
drivers/staging/zcache/zcache-main.c

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
f7c908ef871fcb319096caa7e839091b1feabd24 07-Feb-2012 Víctor Manuel Jáquez Leal <vjaquez@igalia.com> staging: tidspbridge: remove dbc.h

All the macros in dbc.h are removed now so this patch removes it completely.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/drivers/staging/tidspbridge/core/tiomap3430.c
40e6336d1bdc10f072b6563dfb1255b5c4b039a2 07-Feb-2012 Víctor Manuel Jáquez Leal <vjaquez@igalia.com> staging: tidspbridge: remove DBC_ASSERT macro

This macro is only valid when CONFIG_TIDSPBRDIGE_DEBUG is enabled and it only
prints a log message, it is not a real assertion mechanism like BUG_ON() or
WARN_ON().

It is better to remove them: less code to maintain.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/drivers/staging/tidspbridge/core/tiomap3430.c
276cc746d58b73aa4e046745441b8cf56858f9ef 07-Feb-2012 Víctor Manuel Jáquez Leal <vjaquez@igalia.com> staging: tidspbridge: remove DBC_ENSURE and DBC_REQUIRED

The kernel does not use a "Design by Contract" approach, and it is only
activated in the module if CONFIG_TIDSPBRDIGE_DEBUG is enabled, so they are
executed rarely. It is better to remove them: less code to maintain.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/drivers/staging/tidspbridge/core/tiomap3430.c
44c5435064b5e6182167b40a7f259969dbcaf1b8 31-Jan-2012 Omar Ramirez Luna <omar.ramirez@ti.com> staging: tidspbridge: fix incorrect free to drv_datap

This structure is still used after it has been freed, since it
is being allocated in probe, calls to free it have been moved to
module's remove routine.

This should fix the follwoing messages when attempting to remove the
module:
drv_get_first_dev_extension: Failed to retrieve the object handle
drv_get_first_dev_extension: Failed to retrieve the object handle
drv_destroy: Failed to store DRV object
mgr_destroy: Failed to store MGR object

Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/drivers/staging/tidspbridge/core/tiomap3430.c
085467b8f5e60a2fe9ef85031ab40bd8724fcac6 18-Jan-2011 Rene Sapiens <rene.sapiens@ti.com> staging: tidspbridge: set8 remove hungarian from structs

hungarian notation will be removed from the elements inside
structures, the next varibles will be renamed:

Original: Replacement:
hbridge_context bridge_context
hchnl_mgr chnl_mgr
hcmm_mgr cmm_mgr
hdcd_mgr dcd_mgr
hdeh_mgr deh_mgr
hdev_obj dev_obj
hdrv_obj drv_obj
hmgr_obj mgr_obj
hmsg_mgr msg_mgr
hnode_mgr node_mgr
psz_last_coff last_coff
ul_resource resource
ul_seg_id seg_id
ul_size size
ul_sm_size sm_size
ul_total_free_size total_free_size
ul_total_in_use_cnt total_in_use_cnt
ul_total_seg_size total_seg_size
ul_trace_buffer_begin trace_buffer_begin
ul_trace_buffer_current trace_buffer_current
ul_trace_buffer_end trace_buffer_end
ul_unit unit
ul_virt_size virt_size
us_dsp_mau_size dsp_mau_size
us_dsp_word_size dsp_word_size

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Armando Uribe <x0095078@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
6c66e948d2c8254c8435f27eacb7f8657ce62dec 18-Jan-2011 Rene Sapiens <rene.sapiens@ti.com> staging: tidspbridge: set7 remove hungarian from structs

hungarian notation will be removed from the elements inside
structures, the next varibles will be renamed:

Original: Replacement:
ul_gpp_phys gpp_phys
ul_gpp_read_pointer gpp_read_pointer
ul_gpp_size gpp_size
ul_gpp_va gpp_va
ul_heap_size heap_size
ul_internal_mem_size internal_mem_size
ul_in_use_cnt in_use_cnt
ul_len_max_free_block len_max_free_block
ul_max max
ul_min_block_size min_block_size
ul_min min
ul_mpu_addr mpu_addr
ul_n_bytes bytes
ul_num_alloc_blocks num_alloc_blocks
ul_number_bytes number_bytes
ul_num_chnls num_chnls
ul_num_free_blocks num_free_blocks
ul_num_gppsm_segs num_gppsm_segs
ul_pos pos
ul_reserved reserved

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Armando Uribe <x0095078@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
dab7f7fee09b28034af3cac527b16927e4e2a193 18-Jan-2011 Rene Sapiens <rene.sapiens@ti.com> staging: tidspbridge: set6 remove hungarian from structs

hungarian notation will be removed from the elements inside
structures, the next varibles will be renamed:

Original: Replacement:
pfn_write write
pf_phase_split phase_split
ul_alignment alignment
ul_bufsize bufsize
ul_bufsize_rms bufsize_rms
ul_chnl_buf_size chnl_buf_size
ul_chnl_offset chnl_offset
ul_code_mem_seg_mask code_mem_seg_mask
ul_dais_arg dais_arg
ul_data1 data1
ul_data_mem_seg_mask data_mem_seg_mask
ul_dsp_addr dsp_addr
ul_dsp_res_addr dsp_res_addr
ul_dsp_size dsp_size
ul_dsp_va dsp_va
ul_dsp_virt dsp_virt
ul_entry entry
ul_external_mem_size external_mem_size
ul_fxn_addrs fxn_addrs
ul_gpp_pa gpp_pa

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Armando Uribe <x0095078@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
3c882de542f67d0a7768f2e64c017e3657b519b3 18-Jan-2011 Rene Sapiens <rene.sapiens@ti.com> staging: tidspbridge: set3 remove hungarian from structs

hungarian notation will be removed from the elements inside
structures, the next varibles will be renamed:

Original: Replacement:
dw_seg_base_va seg_base_va
dw_self_loop self_loop
dw_state state
dw_tc_endianism tc_endianism
dw_test_base test_base
dw_type type
dw_val1 val1
dw_val2 val2
dw_val3 val3
dw_va va
dw_virt_base virt_base
dw_vm_base vm_base
dw_vm_size vm_size
pfn_allocate allocate
pfn_brd_mem_copy brd_mem_copy
pfn_brd_mem_map brd_mem_map
pfn_brd_mem_un_map brd_mem_un_map
pfn_brd_mem_write brd_mem_write
pfn_brd_monitor brd_monitor
pfn_brd_read brd_read

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
5108de0ae06190f2ab54b9a1da315b77b33be1e2 18-Jan-2011 Rene Sapiens <rene.sapiens@ti.com> staging: tidspbridge: set2 remove hungarian from structs

hungarian notation will be removed from the elements inside
structures, the next varibles will be renamed:

Original: Replacement:
dw_dsp_base_addr dsp_base_addr
dw_dmmu_base dmmu_base
dw_index index
dw_int_addr int_addr
dw_internal_size internal_size
dw_last_output last_output
dw_mem_base mem_base
dw_mem_length mem_length
dw_mem_phys mem_phys
dw_mode mode
dw_num_chnls num_chnls
dw_offset_for_monitor offset_for_monitor
dw_output_mask output_mask
dw_page_size page_size
dw_pa pa
dw_per_base per_base
dw_per_pm_base per_pm_base
dw_public_rhea public_rhea
dw_seg_base_pa seg_base_pa

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Armando Uribe <x0095078@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
b4da7fc381c51d42c231f97de912b89dbabe8928 18-Jan-2011 Rene Sapiens <rene.sapiens@ti.com> staging: tidspbridge: set1 remove hungarian from structs

hungarian notation will be removed from the elements inside
structures, the next varibles will be renamed:

dw_api_reg_base api_reg_base
dw_brd_state brd_state
dw_chnl_buf_size chnl_buf_size
dw_chnl_offset chnl_offset
dw_cmd cmd
dw_core_pm_base core_pm_base
dw_dsp_base dsp_base
dw_dsp_base_va dsp_base_va
dw_dsp_bufs dsp_bufs
dw_dsp_buf_size dsp_buf_size
dw_dsp_clk_m2_base dsp_clk_m2_base
dw_dsp_ext_base_addr dsp_ext_base_addr
dw_dsp_phys_addr_offset dsp_phys_addr_offset
dw_dsp_start_add dsp_start_add
dw_err_mask err_mask
dw_gpp_base_pa gpp_base_pa
dw_api_clk_base api_clk_base
dw_api_reg_base api_reg_base
dw_arg arg
dw_arg1 arg1
dw_arg2 arg2
dw_chnl_buf_size chnl_buf_size

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Armando Uribe <x0095078@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
57e6a9f2a8472493fe407227b047f5284d8a4540 17-Dec-2010 Armando Uribe <x0095078@ti.com> staging: tidspbridge: Remove unused functions

Remove functions that are not used at all, also remove the dependencies
of this functions like struct members, comments and calls.

Signed-off-by: Armando Uribe <x0095078@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
81ea18ec22e9526b4af81e2213747e5afc48f364 02-Nov-2010 Armando Uribe <x0095078@ti.com> staging: tidspbridge: Eliminate direct manipulation of OMAP_SYSC_BASE

Eliminates Bridge direct manipulation of OMAP_SYSC_BASE registers

Signed-off-by: Armando Uribe <x0095078@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
85d139c977dd13cd1ca5cb3b9d8e39cb477eaf0c 15-Jan-2011 Omar Ramirez Luna <omar.ramirez@ti.com> staging: tidspbridge: replace mbox callback with notifier_call

Lately, mailbox callbacks have been replaced by notifier block
call chains, this needs to be changed in the users of mailbox,
otherwise compilation will break due to missing parameters.

For this new change to work, io_mbox_msg needs to be compatible
with the notifier_call definition.

Reported-by: Hari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
8e290fd41a15e392af87a33c9c4db3daffcd558b 14-Jan-2011 Guzman Lugo, Fernando <fernando.lugo@ti.com> staging: tidspbridge: configure full L1 MMU range

IVA MMU can manage up to 4GB of address space through its page tables,
given that it's L1 is divided into 1MB sections it requires at least
16KB for its table which represents 4096 entries of 32 bits each.

Previously, only 1GB was being handled by setting the page table size
to 4KB, any virtual address beyond of the L1 size used, would fall
into memory that does not belong to L1 translation tables, leading to
unpredictable results.

So, set the L1 table size to cover the entire MMU range (4GB) whether
is meant to be used or not.

Reported-by: Felipe Contreras <felipe.contreras@nokia.com>
Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
859171ca92f2865453b4b2e17bf679c67044a833 15-Nov-2010 Joe Perches <joe@perches.com> drivers/staging: Remove unnecessary semicolons

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
50ad26f4c9710a64c3728f08c3fa6f4b6a869376 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge: replace iommu custom for opensource implementation"

This reverts commit d95ec7e2fd5cebf2f1caf3f572fa5e0a820ac5b1.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
1cf3fb2d359a87880a6a6e0cb25b2ec2d493b119 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge - move shared memory iommu maps to tiomap3430.c"

This reverts commit 0c10e91b6cc9d1c6a23e9eed3e0653f30b6eb3d3.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
d0b345f3ee03a7e8823dd3f8dfbb48aaeeac7c89 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge - rename bridge_brd_mem_map/unmap to a proper name"

This reverts commit 4dd1944ab7242d76534c97d5fef0ce541a2f1040.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
ac8a139a14db73f96f7b79765c3a9e34d16bdb95 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge - remove custom mmu code from tiomap3430.c"

This reverts commit e7396e77d9e4230bf725b5807732cbca191d111f.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
6c4c899ee27963357a7df1f5e15a5677978cd842 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge - fix mmufault support"

This reverts commit f265846db1e755c11498f6f7c011127dfcc5634a.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
58c1ceb156df5a005f7fc9afc75064a2c1df4b65 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge - remove hw directory"

This reverts commit 053fdb85f56e84bff64a65601be7f72608f016da.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
f5bd96bbe320b9fe1c8132a1633e8582cd9d6245 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge - move all iommu related code to a new file"

This reverts commit f94378f9f9a897fc08e9d12733401ae52466e408.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
9d4f81a722863c42472541cb71981d09613775b3 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge: remove dw_dmmu_base from cfg_hostres struct"

This reverts commit b5a44939231d6e3b0354624289507bfa1432a7b1.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
677f2ded8179c8d5d49cfea0d5217691182b48f2 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> Revert "staging: tidspbridge - remove dmm custom module"

This reverts commit 2ab573487a98c06fdfb34308f641f09369d61fa2.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
a9db2036744676e0a9bf01522ef24140a591c0f0 10-Nov-2010 Felipe Contreras <felipe.contreras@gmail.com> staging: tidspbridge: hardcode SCM macros while fix is upstreamed

On 2.6.37-rc1, omap platform internals for SCM have changed,
so the build is broken again.

drivers/staging/tidspbridge/core/tiomap3430.c:26:
fatal error: plat/control.h: No such file or directory

This is a totally ugly layer violation, but needed until
omap_ctrl_set_dsp_boot*() are provided.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
/drivers/staging/tidspbridge/core/tiomap3430.c
2ab573487a98c06fdfb34308f641f09369d61fa2 05-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge - remove dmm custom module

Dmm custom module is not needed anymore.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
b5a44939231d6e3b0354624289507bfa1432a7b1 05-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge: remove dw_dmmu_base from cfg_hostres struct

We don't need to map iva2 iommu register base address
anymore.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
f94378f9f9a897fc08e9d12733401ae52466e408 05-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge - move all iommu related code to a new file

Create dsp-mmu module and moves all the iommu code related to
this module.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
053fdb85f56e84bff64a65601be7f72608f016da 05-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge - remove hw directory

hw directory was only being used for custom iommu implementation
APIs, so after the iommu module migration this directory is not
needed anymore.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
f265846db1e755c11498f6f7c011127dfcc5634a 05-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge - fix mmufault support

With changes for iommu migration mmufault report and dsp track
dump is broken, this patch fixes that.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
e7396e77d9e4230bf725b5807732cbca191d111f 05-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge - remove custom mmu code from tiomap3430.c

This patch removes all the custom mmu code remaining in
tiomap3430.c which is not needed anymore.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
4dd1944ab7242d76534c97d5fef0ce541a2f1040 05-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge - rename bridge_brd_mem_map/unmap to a proper name

Now these functions only map user space addresses to dsp virtual
addresses, so now the functions have a more meaningful name.
Also now user_to_dsp_map returns the mapped address.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
0c10e91b6cc9d1c6a23e9eed3e0653f30b6eb3d3 05-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge - move shared memory iommu maps to tiomap3430.c

Now iommu maps of shared memory segments are done in
bridge_brd_start and unmaped in bridge_brd_stop.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
82d4b4776d575223c14b25546e0336541ef8ba94 04-Oct-2010 Felipe Contreras <felipe.contreras@gmail.com> staging: tidspbridge: use omap_dsp_platform_data

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
d95ec7e2fd5cebf2f1caf3f572fa5e0a820ac5b1 01-Oct-2010 Fernando Guzman Lugo <x0095840@ti.com> staging: tidspbridge: replace iommu custom for opensource implementation

Now the tidspbridge uses the API's from
iovmm module.

Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
0ee5ab30d19c8e82fdf725c1f67cf71bb67c8373 30-Sep-2010 Ernesto Ramos <ernesto@ti.com> staging: ti dspbridge: disable all peripherals at bridge_brd_stop

DSP Bridge needs to disable the peripheral clocks when switches to
BRD_STOPPED since that would prevent the domain to enter in OFF state.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
220344f25418b698f01e2e6e4b6eb00b7cfa21ef 26-Aug-2010 Ivan Gomez Castellanos <ivan.gomez@ti.com> staging: tidspbridge: Remove cfg.c and cfg.h files

So far, the cfg.c file is empty, and the function prototypes in cfg.h
are not used in any place. So they can be removed.

Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
7c9305b80cb81c94d12c7109f8abfe4bc5b08a23 28-Jul-2010 Ernesto Ramos <ernesto@ernesto-desktop.(none)> staging:ti dspbridge: remove bridge_brd_delete function

Remove bridge_brd_delete() function since it is
doing the same that bridge_brd_stop().

Signed-off-by: Ernesto Ramos <ernesto@ernesto-desktop.(none)>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
a2205e487eb0a8af0bfc421038f1777ca6603ac4 28-Jul-2010 Ernesto Ramos <ernesto@ti.com> staging:ti dspbridge: make sure IVA2 is OFF when dev is created

Regardless the IVA2 power state before bridgedriver is
installed, the driver must ensure that IVA2 power
state is OFF when the device driver is created.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
a2c2272194ac8bfe5ae3ec91e722a766d931d324 28-Jul-2010 Ernesto Ramos <ernesto@ti.com> staging:ti dspbridge: fix bridge_brd_stop so IVA2 is set OFF

right now, bridge_brd_stop is not changing the IVA2 power state
to OFF since PM_PWSTST_IVA2 is not 0 after calling this function.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
d1b2216d13679557b56c1e4a53e4e3c5683bf3d5 28-Jul-2010 Ernesto Ramos <ernesto@ti.com> staging:ti dspbridge: remove DSP_FAILED macro from core

Since status succeeded is 0, DSP_FAILED macro
is not necessary anymore.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
e6486d8cee8d5be063cc2971ad274eb90f27e18c 28-Jul-2010 Ernesto Ramos <ernesto@ti.com> staging:ti dspbridge: remove DSP_SUCCEEDED macro from core

Since status succeeded is now 0 macro DSP_SUCCEEDED
is not necessary anymore.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
b3c8aef0a2334e088c21757d3143954c774c6da0 28-Jul-2010 Ernesto Ramos <ernesto@ti.com> staging:ti dspbridge: remove unnecessary volatile variables

Remove unnecessary volatile variables; use accessor
functions __raw_readl/__raw_writel instead when applicable.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
e6bf74f06f5178fcccb66acf51d1f6ebc4e6c5d0 22-Jul-2010 Menon, Nishanth <nm@ti.com> staging: tidspbridge: remove OUT define

Remove OUT modifier which makes no sense for linux kernel

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
9d7d0a526193359b5289d933768e7465d9bbd91e 22-Jul-2010 Menon, Nishanth <nm@ti.com> staging: tidspbridge: remove IN modifier

IN modifier does not exist. remove it

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
cd4f13c02a5d72e1fc367c51cc0fd955f65538e0 22-Jul-2010 Menon, Nishanth <nm@ti.com> staging: tidspbridge: replace CONST with c standard const

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
4018e396518e56a156fd99a2a44a675bc87437dd 13-Jul-2010 Nishanth Menon <nm@ti.com> staging: tidspbridge: remove RET_OK RET_FAIL

RET_OK is 0 and RET_FAIL is a -1, replace these custom returns with
a standard errno

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
7124cb171108dea386b2c81334605da1d6f4554a 13-Jul-2010 Nishanth Menon <nm@ti.com> staging: tidspbridge: remove custom typedef reg_uword32

use readl, writel to get and set the register instead.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
2094f12d440c5a9fae032932266fa4a44135194c 13-Jul-2010 Nishanth Menon <nm@ti.com> staging: tidspbridge: remove std.h

std.h introduces _TI_ _FLOAT_ _FIXED_ _TARGET_ ARG_TO_INT ARG_TO_PTR
which are no longer being used anywhere. we dont really need the
custom std.h header. remove it from the repo. where we need types,
introduce standard types.h

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
5e7680679e4ac852db7b03e232f3472f86d4c47f 13-Jul-2010 Nishanth Menon <nm@ti.com> staging: tidspbridge: remove custom TRUE FALSE

bool has standard true and false, we dont need to introduce
our own TRUE and FALSE macros.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
c8c1ad8ce317c1e213db47f094d6eee8dec7d280 10-Jul-2010 Rene Sapiens <rene.sapiens@ti.com> staging: ti dspbridge: make variables in prototypes match within functions definitions

This patch renames the variables in the parameter lists and in the function
definitions to make them match.

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
5e2eae576b750c2e40bda5966437dbc6b12d479e 10-Jul-2010 Rene Sapiens <rene.sapiens@ti.com> staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
ulBrdState to brd_state
ulChnl to chnl
ulDspAddr to dsp_add
ulDspDestAddr to dsp_dest_addr
ulDspLoadAddr to dsp_load_addr
ulDspRunAddr to dsp_run_addr
ulDspSrcAddr to dsp_src_addr
ulMapAttrs to map_attr
ulMemType to mem_type
ulRMSFxn to rms_fxn
ulStatus to ret
ulVirtAddr to virt_addr
uNumDesc to num_desc
uNumToDSP to num_to_dsp
uPaSize to pa_size
uPhase to phase
uSegId to segm_id
uStream1 to stream1
uStream2 to stream2
uZId to zid
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
0cd343a42f60a965cece191efaefe51e01e58f64 10-Jul-2010 Rene Sapiens <rene.sapiens@ti.com> staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
segmentId to segmnt_id
SetPageDirty to set_page_dirty
sizeInBytes to size_in_bytes
sleepCode to sleep_code
Status to status
symName to sym_name
szVar to sz_var
Trapped_Args to trapped_args
TTBPhysAddr to ttb_phys_addr
uChirps to chirps
uChnlId to ch_id
uChnlID to ch_id
uContentSize to cont_size
uDDMAChnlId to ddma_chnl_id
uEvents to events
ulAlign to align_mask
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
fb6aabb7f8b64aef7c4376b6cd4b760a62f75c5b 10-Jul-2010 Rene Sapiens <rene.sapiens@ti.com> staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pMemStatBuf to mem_stat_buf
pMgrAttrs to mgr_attrts
pMgrInfo to mgr_info
pNodeEnv to node_env
pNodeId to node_uuid
pNodeInfo to node_info
pNumLibs to num_libs
pNumPersLibs to num_pers_libs
pObjDef to obj_def
pObjUuid to obj_uuid
poolPhysBase to pool_phys_base
poolSize to pool_size
pPctxt to pctxt
ppDevContext to dev_cntxt
ppDrvInterface to drv_intf
pPersistentDepLibs to prstnt_dep_libs
pPhyAddr to phy_addr
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
a5120278008a5f48634085c23a70f1153065765d 10-Jul-2010 Rene Sapiens <rene.sapiens@ti.com> staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pdwSize to buff_size
pdwState to board_state
pdwValue to value
pdwVersion to version
pElemExisting to elem_existing
pEntry to entry
pExists to exists
pfEnablePerf to enable_perf
pGenObj to gen_obj
phChnlMgr to channel_mgr
phChnl to chnl
phCodMgr to cod_mgr
phDCDHandle to dcd_handle
phDcdMgr to dcd_mgr
phDehMgr to deh_manager
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
aa09b091267694befb9459f22bed2d6437fb59f8 10-Jul-2010 Rene Sapiens <rene.sapiens@ti.com> staging: ti dspbridge: Rename words with camel case

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
pArb to arb
pbAlreadyAttached to already_attached
pBaseAddr to base_addr
pbHostBuf to host_buff
pBufVa to buf_va
pChnlInfo to channel_info
pConfig to config_param
pContent to content
pContext to context
pdcdProps to dcd_prop
pDepLibUuids to dep_lib_uuids
pDevNodeString to dev_node_strg
pDispAttrs to disp_attrs
pDsp to dsp
pdwAutoStart to auto_start
pdwChnl to chnl
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
e68906924d742dfb33564d7eb4ea7db0b4e65ae4 10-Jul-2010 Rene Sapiens <rene.sapiens@ti.com> staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
hDevContext to dev_ctxt
hDevExtension to dev_extension
hdevObject to device_obj
hDispObject to disp_obj
hDrVObject to driver_obj
hDRVObject to driver_obj
hMGRHandle to mgr_handle
hNldrObject to nldr
hNode1 to node1
hNode2 to node2
hNodeRes to node_resource
hPCtxt to process_ctxt
hProc to proc
hStreamHandle to stream_handle
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
b301c85803376ef997bd7802cd5f0e3e88d10ae8 10-Jul-2010 Rene Sapiens <rene.sapiens@ti.com> staging: ti dspbridge: Rename words with camel case.

The intention of this patch is to rename the remaining variables with camel
case. Variables will be renamed avoiding camel case and Hungarian notation.
The words to be renamed in this patch are:
========================================
dspAddr to dsp_address
dspAdr to dsp_adr
dspBaseVirt to dsp_base_virt
dwDeviceContext to device_context
dwDSPAddrOffset to dsp_addr_offset
dwDSPAddr to dsp_addr
dwErrInfo to error_info
dwGPPBaseBA to gpp_base_ba
dwMask to mask
dwTimeout to timeout
dwTimeOut to timeout
dwValue to value
entryNum to entry_num
execFile to exec_file
fFlush to flush_data
FlushMemType to flush_mem_type
========================================

Signed-off-by: Rene Sapiens <rene.sapiens@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
61a5b769d3a21fc6225d60547d923409077e7ab3 04-Jul-2010 Felipe Contreras <felipe.contreras@gmail.com> staging: ti dspbridge: access deh directly

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
654fe1b20dd9e3c753bf5667682c8d3ee2a2ae8e 04-Jul-2010 Felipe Contreras <felipe.contreras@gmail.com> staging: ti dspbridge: deh: remove get_info

Nobody is using it.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
4574fae58d840d78e44ae33236899f92bfb6b4a9 04-Jul-2010 Felipe Contreras <felipe.contreras@gmail.com> staging: ti dspbridge: mmu: add hw_mmu_tlb_flush_all()

So that it can be used in more than one place.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
ec528652a92e18975bb6fe3e2f4f8f927b71ec88 04-Jul-2010 Felipe Contreras <felipe.contreras@gmail.com> staging: ti dspbridge: remove unused code

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c
999e07d63289f7a401972cf390f569ffcd3d3a7b 23-Jun-2010 Omar Ramirez Luna <omar.ramirez@ti.com> staging: ti dspbridge: add core driver sources

Add TI's DSP Bridge core driver sources

Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Kanigeri, Hari <h-kanigeri2@ti.com>
Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
Signed-off-by: Guzman Lugo, Fernando <fernando.lugo@ti.com>
Signed-off-by: Hebbar, Shivananda <x0hebbar@ti.com>
Signed-off-by: Ramos Falcon, Ernesto <ernesto@ti.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Anna, Suman <s-anna@ti.com>
Signed-off-by: Gupta, Ramesh <grgupta@ti.com>
Signed-off-by: Gomez Castellanos, Ivan <ivan.gomez@ti.com>
Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Signed-off-by: Armando Uribe De Leon <x0095078@ti.com>
Signed-off-by: Deepak Chitriki <deepak.chitriki@ti.com>
Signed-off-by: Menon, Nishanth <nm@ti.com>
Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/staging/tidspbridge/core/tiomap3430.c