RE: [RFC PATCH 07/11] arm:omap:am33xx: Add irq, dma and module base addr to SoC header files
> -Original Message- > From: Hilman, Kevin > Sent: Thursday, December 01, 2011 7:16 AM > To: Hiremath, Vaibhav > Cc: linux-omap@vger.kernel.org; t...@atomide.com; p...@pwsan.com; linux- > arm-ker...@lists.infradead.org; Cousson, Benoit; Mohammed, Afzal > Subject: Re: [RFC PATCH 07/11] arm:omap:am33xx: Add irq, dma and module > base addr to SoC header files > > Vaibhav Hiremath writes: > > > This patch creats seperate irq and dma defination header file > > and updates the module base addresses required for HWMOD data. > > > > Signed-off-by: Afzal Mohammed > > Signed-off-by: Vaibhav Hiremath > > These headers/defines should no longer be needed. Instead, as with > OMAP4, the raw values are used in the hwmod data (and we'll be moving > device tree for these values.) > Ok, will clean this up in next version. Thanks, Vaibhav > Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [RFC PATCH 07/11] arm:omap:am33xx: Add irq, dma and module base addr to SoC header files
Vaibhav Hiremath writes: > This patch creats seperate irq and dma defination header file > and updates the module base addresses required for HWMOD data. > > Signed-off-by: Afzal Mohammed > Signed-off-by: Vaibhav Hiremath These headers/defines should no longer be needed. Instead, as with OMAP4, the raw values are used in the hwmod data (and we'll be moving device tree for these values.) Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[RFC PATCH 07/11] arm:omap:am33xx: Add irq, dma and module base addr to SoC header files
This patch creats seperate irq and dma defination header file and updates the module base addresses required for HWMOD data. Signed-off-by: Afzal Mohammed Signed-off-by: Vaibhav Hiremath --- arch/arm/plat-omap/include/plat/am33xx.h| 40 arch/arm/plat-omap/include/plat/dma-33xx.h | 85 arch/arm/plat-omap/include/plat/dma.h |1 + arch/arm/plat-omap/include/plat/irqs-33xx.h | 143 +++ arch/arm/plat-omap/include/plat/irqs.h |1 + arch/arm/plat-omap/include/plat/serial.h|5 + 6 files changed, 275 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-omap/include/plat/dma-33xx.h create mode 100644 arch/arm/plat-omap/include/plat/irqs-33xx.h diff --git a/arch/arm/plat-omap/include/plat/am33xx.h b/arch/arm/plat-omap/include/plat/am33xx.h index 06c19bb..1162d82 100644 --- a/arch/arm/plat-omap/include/plat/am33xx.h +++ b/arch/arm/plat-omap/include/plat/am33xx.h @@ -22,4 +22,44 @@ #define AM33XX_CTRL_BASE AM33XX_SCM_BASE #define AM33XX_PRCM_BASE 0x44E0 +#define AM33XX_GPIO0_BASE 0x44E07000 +#define AM33XX_GPIO1_BASE 0x4804C000 +#define AM33XX_GPIO2_BASE 0x481AC000 +#define AM33XX_GPIO3_BASE 0x481AE000 + +#define AM33XX_TIMER0_BASE 0x44E05000 +#define AM33XX_TIMER1_BASE 0x44E31000 +#define AM33XX_TIMER2_BASE 0x4804 +#define AM33XX_TIMER3_BASE 0x48042000 +#define AM33XX_TIMER4_BASE 0x48044000 +#define AM33XX_TIMER5_BASE 0x48046000 +#define AM33XX_TIMER6_BASE 0x48048000 +#define AM33XX_TIMER7_BASE 0x4804A000 + +#define AM33XX_WDT1_BASE 0x44E35000 + +#define AM33XX_TSC_BASE0x44E0D000 +#define AM33XX_RTC_BASE0x44E3E000 + +#define AM33XX_ASP0_BASE 0x48038000 +#define AM33XX_ASP1_BASE 0x4803C000 + +#define AM33XX_MMC0_BASE 0x48060100 +#define AM33XX_MMC1_BASE 0x481D8100 +#define AM33XX_MMC2_BASE 0x47810100 + +#define AM33XX_I2C0_BASE 0x44E0B000 +#define AM33XX_I2C1_BASE 0x4802A000 +#define AM33XX_I2C2_BASE 0x4819C000 + +#define AM33XX_SPI0_BASE 0x4803 +#define AM33XX_SPI1_BASE 0x481A + +#define AM33XX_DCAN0_BASE 0x481CC000 +#define AM33XX_DCAN1_BASE 0x481D + +#define AM33XX_USBSS_BASE 0x4740 +#define AM33XX_USB0_BASE 0x47401000 +#define AM33XX_USB1_BASE 0x47401800 + #endif /* __ASM_ARCH_AM33XX_H */ diff --git a/arch/arm/plat-omap/include/plat/dma-33xx.h b/arch/arm/plat-omap/include/plat/dma-33xx.h new file mode 100644 index 000..f78edb4 --- /dev/null +++ b/arch/arm/plat-omap/include/plat/dma-33xx.h @@ -0,0 +1,85 @@ +/* + * AM33XX SDMA channel definitions + * + * This file is automatically generated from the AM33XX hardware databases. + * + * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation version 2. + * + * This program is distributed "as is" WITHOUT ANY WARRANTY of any + * kind, whether express or implied; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __ARCH_ARM_MACH_OMAP2_AM33XX_DMA_H +#define __ARCH_ARM_MACH_OMAP2_AM33XX_DMA_H + + +#define AM33XX_DMA_ICSS0_7 0 +#define AM33XX_DMA_ICSS0_6 1 +#define AM33XX_DMA_MMCHS1_W2 +#define AM33XX_DMA_MMCHS1_R3 +#define AM33XX_DMA_AESEIP36T0_CTXIN4 +#define AM33XX_DMA_AESEIP36T0_DIN 5 +#define AM33XX_DMA_AESEIP36T0_DOUT 6 +#define AM33XX_DMA_AESEIP36T0_CTXOUT 7 +#define AM33XX_DMA_MCASP0_X8 +#define AM33XX_DMA_MCASP0_R9 +#define AM33XX_DMA_MCASP1_X10 +#define AM33XX_DMA_MCASP1_R11 +#define AM33XX_DMA_MCASP2_X12 +#define AM33XX_DMA_MCASP2_R13 +#define AM33XX_DMA_PWMSS0_EPWM 14 +#define AM33XX_DMA_PWMSS1_EPWM 15 +#define AM33XX_DMA_SPIOCP0_CH0W16 +#define AM33XX_DMA_SPIOCP0_CH0R17 +#define AM33XX_DMA_SPIOCP0_CH1W18 +#define AM33XX_DMA_SPIOCP0_CH1R19 +#define AM33XX_DMA_SPIOCP3_CH1W20 +#define AM33XX_DMA_SPIOCP3_CH1R21 +#define AM33XX_DMA_GPIO22 +#define AM33XX_DMA_GPIO1 23 +#define AM33XX_DMA_MMCHS0_W24 +#define AM33XX_DMA_MMCHS0_R25