McBSP support for 2430/34XX
Subsystems (3)
PATCH 1/1 McBSP support for 2430/34XX
Hi,
Here is a patch that adds support for McBSP on 2430/34XX (without disturbing the current mcbsp equilibrium). Omap2420 specific code has been left in mcbsp.c because of difference in register set.( 16 bit registers in 2420) It has been verified in digital loopback mode. ( Compilation tested for 2420 )
Since 2430 onwards registers are 32 bit, all the instances of omap24xx which were relevant to only 2420 has been changed to omap2420.
The patch includes the following features.
1. Supporting all the LP features.
2. Support of DMA chaining mode and one time configuration for entire transfer to improve performance.
3. Independent configurations and transfer of Rx and Tx
4. MCBSP data transfer in 8, 16 and 32 bit mode.
5. instead of mcbsp client configuring all the register, it allows clients to configure parameters like clk polarity, clk src and other parameters.
Regards
Chandra Shekhar
--- arch/arm/configs/omap_3430sdp_defconfig | 1 arch/arm/mach-omap2/Makefile | 4 arch/arm/mach-omap2/omap2-mcbsp.c | 1132 ++++++++++++++++++++++++++++++++ arch/arm/plat-omap/mcbsp.c | 126 +-- include/asm-arm/arch-omap/mcbsp.h | 348 ++++++++- 5 files changed, 1489 insertions(+), 122 deletions(-)
arch/arm/configs/omap_3430sdp_defconfig +1 -0
@@ -179,6 +179,7 @@ # CONFIG_OMAP_MCBSP is not set # CONFIG_OMAP_MMU_FWK is not set # CONFIG_OMAP_MBOX_FWK is not set +CONFIG_OMAP_MCBSP=y # CONFIG_OMAP_MPU_TIMER is not set CONFIG_OMAP_32K_TIMER=y CONFIG_OMAP_32K_TIMER_HZ=128
arch/arm/mach-omap2/Makefile +4 -0
@@ -22,6 +22,10 @@ mailbox_mach-objs := mailbox.o mmu_mach-objs := mmu.o +ifeq ($(CONFIG_ARCH_OMAP2420),) +obj-$(CONFIG_OMAP_MCBSP) += omap2-mcbsp.o +endif + # Specific board support obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o board-h4-mmc.o
arch/arm/mach-omap2/omap2-mcbsp.c new file +1132 -0
1,132 lines not on this page · raw message
arch/arm/plat-omap/mcbsp.c +52 -74
232 lines not on this page · raw message
include/asm-arm/arch-omap/mcbsp.h +300 -48
412 lines not on this page · raw message