* [PATCH 00/16] imx patches for 2.6.36 @ 2010-05-24 19:54 Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number Uwe Kleine-König ` (15 more replies) 0 siblings, 16 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:54 UTC (permalink / raw) To: linux-arm-kernel Hello, in reply to this mail you can find some more clean-ups and updates for the imx platforms. Shortlog and diffstat can be found below. They are compile tested (all imx defconfigs) and merge fine with Sascha's for-linus and for-rmk branches. Best regards Uwe The following changes since commit 7e125f7b9cbfce4101191b8076d606c517a73066: Linus Torvalds (1): Merge git://git.kernel.org/.../davem/ide-2.6 are available in the git repository at: git://git.pengutronix.de/git/ukl/linux-2.6.git imx/for-2.6.36 Uwe Kleine-K?nig (16): arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number arm/mx25: rename mach-mx25pdk.c to mach-mx25_3ds.c matching its arch number arm/mx1: add CONFIG_VIDEO_MX1 to defconfig arm/mx1: don't use deprecated symbol names arm/mx2/pca100: add #ifdef to fix compiler warning arm/mx1/scb9328: fix type of uart1_mxc_exit to make compiler happy arm/mx2/mx27_3ds: document alternative names and remove empty header arm/imx: remove empty and unused board headers arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y arm/mx3/kzm_arm11_01: fold board header in its only user arm/mx2/mx21ads: fold board header in its only user arm/mx2/mx27ads: fold board header in its only user arm/mx3/qong: get rid of nearly empty header arm/mx3/mx31_3ds: fold board header in its only user arm/mx3/mx31ads: fold board header in its only user arm/mxc: grammar fix arch/arm/configs/mx1_defconfig | 6 +- arch/arm/configs/mx27_defconfig | 2 +- arch/arm/mach-mx1/Makefile | 1 - arch/arm/mach-mx1/clock.c | 3 +- arch/arm/mach-mx1/crm_regs.h | 4 +- arch/arm/mach-mx1/devices.c | 117 ++++---- arch/arm/mach-mx1/generic.c | 13 +- arch/arm/mach-mx1/mach-mx1ads.c | 12 +- arch/arm/mach-mx1/mach-scb9328.c | 15 +- arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c | 5 +- arch/arm/mach-mx2/mach-imx27lite.c | 1 - arch/arm/mach-mx2/mach-mx21ads.c | 36 ++- arch/arm/mach-mx2/mach-mx27_3ds.c | 7 +- arch/arm/mach-mx2/mach-mx27ads.c | 32 ++- arch/arm/mach-mx2/mach-pca100.c | 2 + arch/arm/mach-mx25/Makefile | 2 +- .../mach-mx25/{mach-mx25pdk.c => mach-mx25_3ds.c} | 6 + arch/arm/mach-mx3/Makefile | 2 +- arch/arm/mach-mx3/mach-armadillo5x0.c | 1 - arch/arm/mach-mx3/mach-kzm_arm11_01.c | 18 +- arch/arm/mach-mx3/mach-mx31_3ds.c | 41 ++- arch/arm/mach-mx3/mach-mx31ads.c | 42 ++- .../mach-mx3/{mach-mx35pdk.c => mach-mx35_3ds.c} | 6 + arch/arm/mach-mx3/mach-pcm037.c | 1 - arch/arm/mach-mx3/mach-qong.c | 3 +- .../arm/plat-mxc/include/mach/board-armadillo5x0.h | 15 - .../plat-mxc/include/mach/board-eukrea_cpuimx27.h | 2 +- arch/arm/plat-mxc/include/mach/board-kzmarm11.h | 39 --- arch/arm/plat-mxc/include/mach/board-mx21ads.h | 52 --- arch/arm/plat-mxc/include/mach/board-mx27ads.h | 344 -------------------- arch/arm/plat-mxc/include/mach/board-mx27lite.h | 14 - arch/arm/plat-mxc/include/mach/board-mx27pdk.h | 14 - arch/arm/plat-mxc/include/mach/board-mx31ads.h | 117 ------- arch/arm/plat-mxc/include/mach/board-mx31lilly.h | 2 +- arch/arm/plat-mxc/include/mach/board-mx31lite.h | 2 +- arch/arm/plat-mxc/include/mach/board-mx31moboard.h | 2 +- arch/arm/plat-mxc/include/mach/board-mx35pdk.h | 22 -- arch/arm/plat-mxc/include/mach/board-pcm037.h | 22 -- arch/arm/plat-mxc/include/mach/board-pcm038.h | 2 +- arch/arm/plat-mxc/include/mach/board-pcm043.h | 22 -- arch/arm/plat-mxc/include/mach/board-qong.h | 17 - 41 files changed, 272 insertions(+), 794 deletions(-) rename arch/arm/mach-mx25/{mach-mx25pdk.c => mach-mx25_3ds.c} (97%) rename arch/arm/mach-mx3/{mach-mx35pdk.c => mach-mx35_3ds.c} (96%) delete mode 100644 arch/arm/plat-mxc/include/mach/board-armadillo5x0.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-kzmarm11.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx21ads.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx27ads.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx27lite.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx27pdk.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx31ads.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx35pdk.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-pcm037.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-pcm043.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-qong.h -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 22:20 ` Fabio Estevam 2010-05-24 19:55 ` [PATCH 02/16] arm/mx25: rename mach-mx25pdk.c to mach-mx25_3ds.c " Uwe Kleine-König ` (14 subsequent siblings) 15 siblings, 1 reply; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Additional document all known names of that machine. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx3/Makefile | 2 +- .../mach-mx3/{mach-mx35pdk.c => mach-mx35_3ds.c} | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-) rename arch/arm/mach-mx3/{mach-mx35pdk.c => mach-mx35_3ds.c} (96%) diff --git a/arch/arm/mach-mx3/Makefile b/arch/arm/mach-mx3/Makefile index 5d650fd..2a4798d 100644 --- a/arch/arm/mach-mx3/Makefile +++ b/arch/arm/mach-mx3/Makefile @@ -22,5 +22,5 @@ obj-$(CONFIG_MACH_MX31MOBOARD) += mach-mx31moboard.o mx31moboard-devboard.o \ obj-$(CONFIG_MACH_QONG) += mach-qong.o obj-$(CONFIG_MACH_PCM043) += mach-pcm043.o obj-$(CONFIG_MACH_ARMADILLO5X0) += mach-armadillo5x0.o -obj-$(CONFIG_MACH_MX35_3DS) += mach-mx35pdk.o +obj-$(CONFIG_MACH_MX35_3DS) += mach-mx35_3ds.o obj-$(CONFIG_MACH_KZM_ARM11_01) += mach-kzm_arm11_01.o diff --git a/arch/arm/mach-mx3/mach-mx35pdk.c b/arch/arm/mach-mx3/mach-mx35_3ds.c similarity index 96% rename from arch/arm/mach-mx3/mach-mx35pdk.c rename to arch/arm/mach-mx3/mach-mx35_3ds.c index bcac84d..66ad2da 100644 --- a/arch/arm/mach-mx3/mach-mx35pdk.c +++ b/arch/arm/mach-mx3/mach-mx35_3ds.c @@ -18,6 +18,12 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/* + * This machine is known as: + * - i.MX35 3-Stack Development System + * - i.MX35 Platform Development Kit (i.MX35 PDK) + */ + #include <linux/types.h> #include <linux/init.h> #include <linux/platform_device.h> -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number 2010-05-24 19:55 ` [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number Uwe Kleine-König @ 2010-05-24 22:20 ` Fabio Estevam 2010-05-25 7:55 ` Uwe Kleine-König 0 siblings, 1 reply; 32+ messages in thread From: Fabio Estevam @ 2010-05-24 22:20 UTC (permalink / raw) To: linux-arm-kernel Uwe, --- On Mon, 5/24/10, Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> wrote: > From: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> > Subject: [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number > To: linux-arm-kernel at lists.infradead.org > Cc: kernel at pengutronix.de > Date: Monday, May 24, 2010, 4:55 PM > Additional document all known names > of that machine. ... To make it consistent across other i.MX boards: shouldn't mach-mx5/board-mx51_babbage.c be also renamed? Regards, Fabio Estevam ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number 2010-05-24 22:20 ` Fabio Estevam @ 2010-05-25 7:55 ` Uwe Kleine-König 0 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-25 7:55 UTC (permalink / raw) To: linux-arm-kernel Hello Fabio, On Mon, May 24, 2010 at 03:20:59PM -0700, Fabio Estevam wrote: > --- On Mon, 5/24/10, Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> wrote: > > > From: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> > > Subject: [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number > > To: linux-arm-kernel at lists.infradead.org > > Cc: kernel at pengutronix.de > > Date: Monday, May 24, 2010, 4:55 PM > > Additional document all known names > > of that machine. > ... > > To make it consistent across other i.MX boards: shouldn't > mach-mx5/board-mx51_babbage.c be also renamed? IMHO yes, but Amit considered "board" to be better than "mach", so I dropped that. The longer term plan is to consolidate all imx platforms in a single directory. For that all files need to be touched anyhow and then I would discuss this again. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 02/16] arm/mx25: rename mach-mx25pdk.c to mach-mx25_3ds.c matching its arch number 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 03/16] arm/mx1: add CONFIG_VIDEO_MX1 to defconfig Uwe Kleine-König ` (13 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Additionally document all known names of that machine. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx25/Makefile | 2 +- .../mach-mx25/{mach-mx25pdk.c => mach-mx25_3ds.c} | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-) rename arch/arm/mach-mx25/{mach-mx25pdk.c => mach-mx25_3ds.c} (97%) diff --git a/arch/arm/mach-mx25/Makefile b/arch/arm/mach-mx25/Makefile index 10cebc5..6db9603 100644 --- a/arch/arm/mach-mx25/Makefile +++ b/arch/arm/mach-mx25/Makefile @@ -1,3 +1,3 @@ obj-y := mm.o devices.o obj-$(CONFIG_ARCH_MX25) += clock.o -obj-$(CONFIG_MACH_MX25_3DS) += mach-mx25pdk.o +obj-$(CONFIG_MACH_MX25_3DS) += mach-mx25_3ds.o diff --git a/arch/arm/mach-mx25/mach-mx25pdk.c b/arch/arm/mach-mx25/mach-mx25_3ds.c similarity index 97% rename from arch/arm/mach-mx25/mach-mx25pdk.c rename to arch/arm/mach-mx25/mach-mx25_3ds.c index 83d7410..26ba246 100644 --- a/arch/arm/mach-mx25/mach-mx25pdk.c +++ b/arch/arm/mach-mx25/mach-mx25_3ds.c @@ -16,6 +16,12 @@ * Boston, MA 02110-1301, USA. */ +/* + * This machine is known as: + * - i.MX25 3-Stack Development System + * - i.MX25 Platform Development Kit (i.MX25 PDK) + */ + #include <linux/types.h> #include <linux/init.h> #include <linux/delay.h> -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 03/16] arm/mx1: add CONFIG_VIDEO_MX1 to defconfig 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 02/16] arm/mx25: rename mach-mx25pdk.c to mach-mx25_3ds.c " Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 04/16] arm/mx1: don't use deprecated symbol names Uwe Kleine-König ` (12 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel mx1 is the only machine type that can have this device, so add it to its defconfig to get more compile coverage. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/configs/mx1_defconfig | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/arm/configs/mx1_defconfig b/arch/arm/configs/mx1_defconfig index f575070..208060e 100644 --- a/arch/arm/configs/mx1_defconfig +++ b/arch/arm/configs/mx1_defconfig @@ -697,6 +697,7 @@ CONFIG_SSB_POSSIBLE=y # CONFIG_MFD_WM8400 is not set # CONFIG_MFD_WM8350_I2C is not set # CONFIG_MFD_PCF50633 is not set +CONFIG_MEDIA_SUPPORT=m # # Multimedia devices @@ -705,13 +706,16 @@ CONFIG_SSB_POSSIBLE=y # # Multimedia core support # -# CONFIG_VIDEO_DEV is not set +CONFIG_VIDEO_DEV=m # CONFIG_DVB_CORE is not set # CONFIG_VIDEO_MEDIA is not set # # Multimedia drivers # +CONFIG_VIDEO_V4L2=m +CONFIG_SOC_CAMERA=m +CONFIG_VIDEO_MX1=m # CONFIG_DAB is not set # -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 04/16] arm/mx1: don't use deprecated symbol names 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (2 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 03/16] arm/mx1: add CONFIG_VIDEO_MX1 to defconfig Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning Uwe Kleine-König ` (11 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx1/Makefile | 1 - arch/arm/mach-mx1/clock.c | 3 +- arch/arm/mach-mx1/crm_regs.h | 4 +- arch/arm/mach-mx1/devices.c | 117 +++++++++++++++++++------------------- arch/arm/mach-mx1/generic.c | 13 ++-- arch/arm/mach-mx1/mach-mx1ads.c | 12 ++-- arch/arm/mach-mx1/mach-scb9328.c | 12 ++-- 7 files changed, 81 insertions(+), 81 deletions(-) diff --git a/arch/arm/mach-mx1/Makefile b/arch/arm/mach-mx1/Makefile index fc2ddf8..297d172 100644 --- a/arch/arm/mach-mx1/Makefile +++ b/arch/arm/mach-mx1/Makefile @@ -4,7 +4,6 @@ # Object file lists. -EXTRA_CFLAGS += -DIMX_NEEDS_DEPRECATED_SYMBOLS obj-y += generic.o clock.o devices.o # Support for CMOS sensor interface diff --git a/arch/arm/mach-mx1/clock.c b/arch/arm/mach-mx1/clock.c index 6cf2d4a..610b88d 100644 --- a/arch/arm/mach-mx1/clock.c +++ b/arch/arm/mach-mx1/clock.c @@ -596,7 +596,8 @@ int __init mx1_clocks_init(unsigned long fref) clk_enable(&hclk); clk_enable(&fclk); - mxc_timer_init(&gpt_clk, IO_ADDRESS(TIM1_BASE_ADDR), TIM1_INT); + mxc_timer_init(&gpt_clk, MX1_IO_ADDRESS(MX1_TIM1_BASE_ADDR), + MX1_TIM1_INT); return 0; } diff --git a/arch/arm/mach-mx1/crm_regs.h b/arch/arm/mach-mx1/crm_regs.h index 22e866f..13e81e6 100644 --- a/arch/arm/mach-mx1/crm_regs.h +++ b/arch/arm/mach-mx1/crm_regs.h @@ -9,8 +9,8 @@ #ifndef __ARCH_ARM_MACH_MX1_CRM_REGS_H__ #define __ARCH_ARM_MACH_MX1_CRM_REGS_H__ -#define CCM_BASE IO_ADDRESS(CCM_BASE_ADDR) -#define SCM_BASE IO_ADDRESS(SCM_BASE_ADDR) +#define CCM_BASE MX1_IO_ADDRESS(MX1_CCM_BASE_ADDR) +#define SCM_BASE MX1_IO_ADDRESS(MX1_SCM_BASE_ADDR) /* CCM register addresses */ #define CCM_CSCR (CCM_BASE + 0x0) diff --git a/arch/arm/mach-mx1/devices.c b/arch/arm/mach-mx1/devices.c index b6be29d..8064f2c 100644 --- a/arch/arm/mach-mx1/devices.c +++ b/arch/arm/mach-mx1/devices.c @@ -21,6 +21,7 @@ #include <linux/kernel.h> #include <linux/init.h> +#include <linux/dma-mapping.h> #include <linux/platform_device.h> #include <linux/gpio.h> #include <mach/irqs.h> @@ -34,20 +35,20 @@ static struct resource imx_csi_resources[] = { .end = 0x00224010, .flags = IORESOURCE_MEM, }, { - .start = CSI_INT, - .end = CSI_INT, + .start = MX1_CSI_INT, + .end = MX1_CSI_INT, .flags = IORESOURCE_IRQ, }, }; -static u64 imx_csi_dmamask = 0xffffffffUL; +static u64 imx_csi_dmamask = DMA_BIT_MASK(32); struct platform_device imx_csi_device = { .name = "mx1-camera", .id = 0, /* This is used to put cameras on this interface */ .dev = { .dma_mask = &imx_csi_dmamask, - .coherent_dma_mask = 0xffffffff, + .coherent_dma_mask = DMA_BIT_MASK(32), }, .resource = imx_csi_resources, .num_resources = ARRAY_SIZE(imx_csi_resources), @@ -59,8 +60,8 @@ static struct resource imx_i2c_resources[] = { .end = 0x00217010, .flags = IORESOURCE_MEM, }, { - .start = I2C_INT, - .end = I2C_INT, + .start = MX1_I2C_INT, + .end = MX1_I2C_INT, .flags = IORESOURCE_IRQ, }, }; @@ -74,21 +75,21 @@ struct platform_device imx_i2c_device = { static struct resource imx_uart1_resources[] = { { - .start = UART1_BASE_ADDR, - .end = UART1_BASE_ADDR + 0xD0, - .flags = IORESOURCE_MEM, + .start = MX1_UART1_BASE_ADDR, + .end = MX1_UART1_BASE_ADDR + 0xD0, + .flags = IORESOURCE_MEM, }, { - .start = UART1_MINT_RX, - .end = UART1_MINT_RX, - .flags = IORESOURCE_IRQ, + .start = MX1_UART1_MINT_RX, + .end = MX1_UART1_MINT_RX, + .flags = IORESOURCE_IRQ, }, { - .start = UART1_MINT_TX, - .end = UART1_MINT_TX, - .flags = IORESOURCE_IRQ, + .start = MX1_UART1_MINT_TX, + .end = MX1_UART1_MINT_TX, + .flags = IORESOURCE_IRQ, }, { - .start = UART1_MINT_RTS, - .end = UART1_MINT_RTS, - .flags = IORESOURCE_IRQ, + .start = MX1_UART1_MINT_RTS, + .end = MX1_UART1_MINT_RTS, + .flags = IORESOURCE_IRQ, }, }; @@ -101,21 +102,21 @@ struct platform_device imx_uart1_device = { static struct resource imx_uart2_resources[] = { { - .start = UART2_BASE_ADDR, - .end = UART2_BASE_ADDR + 0xD0, - .flags = IORESOURCE_MEM, + .start = MX1_UART2_BASE_ADDR, + .end = MX1_UART2_BASE_ADDR + 0xD0, + .flags = IORESOURCE_MEM, }, { - .start = UART2_MINT_RX, - .end = UART2_MINT_RX, - .flags = IORESOURCE_IRQ, + .start = MX1_UART2_MINT_RX, + .end = MX1_UART2_MINT_RX, + .flags = IORESOURCE_IRQ, }, { - .start = UART2_MINT_TX, - .end = UART2_MINT_TX, - .flags = IORESOURCE_IRQ, + .start = MX1_UART2_MINT_TX, + .end = MX1_UART2_MINT_TX, + .flags = IORESOURCE_IRQ, }, { - .start = UART2_MINT_RTS, - .end = UART2_MINT_RTS, - .flags = IORESOURCE_IRQ, + .start = MX1_UART2_MINT_RTS, + .end = MX1_UART2_MINT_RTS, + .flags = IORESOURCE_IRQ, }, }; @@ -132,12 +133,12 @@ static struct resource imx_rtc_resources[] = { .end = 0x00204024, .flags = IORESOURCE_MEM, }, { - .start = RTC_INT, - .end = RTC_INT, + .start = MX1_RTC_INT, + .end = MX1_RTC_INT, .flags = IORESOURCE_IRQ, }, { - .start = RTC_SAMINT, - .end = RTC_SAMINT, + .start = MX1_RTC_SAMINT, + .end = MX1_RTC_SAMINT, .flags = IORESOURCE_IRQ, }, }; @@ -155,8 +156,8 @@ static struct resource imx_wdt_resources[] = { .end = 0x00201008, .flags = IORESOURCE_MEM, }, { - .start = WDT_INT, - .end = WDT_INT, + .start = MX1_WDT_INT, + .end = MX1_WDT_INT, .flags = IORESOURCE_IRQ, }, }; @@ -174,32 +175,32 @@ static struct resource imx_usb_resources[] = { .end = 0x00212148, .flags = IORESOURCE_MEM, }, { - .start = USBD_INT0, - .end = USBD_INT0, + .start = MX1_USBD_INT0, + .end = MX1_USBD_INT0, .flags = IORESOURCE_IRQ, }, { - .start = USBD_INT1, - .end = USBD_INT1, + .start = MX1_USBD_INT1, + .end = MX1_USBD_INT1, .flags = IORESOURCE_IRQ, }, { - .start = USBD_INT2, - .end = USBD_INT2, + .start = MX1_USBD_INT2, + .end = MX1_USBD_INT2, .flags = IORESOURCE_IRQ, }, { - .start = USBD_INT3, - .end = USBD_INT3, + .start = MX1_USBD_INT3, + .end = MX1_USBD_INT3, .flags = IORESOURCE_IRQ, }, { - .start = USBD_INT4, - .end = USBD_INT4, + .start = MX1_USBD_INT4, + .end = MX1_USBD_INT4, .flags = IORESOURCE_IRQ, }, { - .start = USBD_INT5, - .end = USBD_INT5, + .start = MX1_USBD_INT5, + .end = MX1_USBD_INT5, .flags = IORESOURCE_IRQ, }, { - .start = USBD_INT6, - .end = USBD_INT6, + .start = MX1_USBD_INT6, + .end = MX1_USBD_INT6, .flags = IORESOURCE_IRQ, }, }; @@ -215,23 +216,23 @@ struct platform_device imx_usb_device = { static struct mxc_gpio_port imx_gpio_ports[] = { { .chip.label = "gpio-0", - .base = (void __iomem *)IO_ADDRESS(GPIO_BASE_ADDR), - .irq = GPIO_INT_PORTA, + .base = (void __iomem *)MX1_IO_ADDRESS(MX1_GPIO_BASE_ADDR), + .irq = MX1_GPIO_INT_PORTA, .virtual_irq_start = MXC_GPIO_IRQ_START, }, { .chip.label = "gpio-1", - .base = (void __iomem *)IO_ADDRESS(GPIO_BASE_ADDR + 0x100), - .irq = GPIO_INT_PORTB, + .base = (void __iomem *)MX1_IO_ADDRESS(MX1_GPIO_BASE_ADDR + 0x100), + .irq = MX1_GPIO_INT_PORTB, .virtual_irq_start = MXC_GPIO_IRQ_START + 32, }, { .chip.label = "gpio-2", - .base = (void __iomem *)IO_ADDRESS(GPIO_BASE_ADDR + 0x200), - .irq = GPIO_INT_PORTC, + .base = (void __iomem *)MX1_IO_ADDRESS(MX1_GPIO_BASE_ADDR + 0x200), + .irq = MX1_GPIO_INT_PORTC, .virtual_irq_start = MXC_GPIO_IRQ_START + 64, }, { .chip.label = "gpio-3", - .base = (void __iomem *)IO_ADDRESS(GPIO_BASE_ADDR + 0x300), - .irq = GPIO_INT_PORTD, + .base = (void __iomem *)MX1_IO_ADDRESS(MX1_GPIO_BASE_ADDR + 0x300), + .irq = MX1_GPIO_INT_PORTD, .virtual_irq_start = MXC_GPIO_IRQ_START + 96, } }; diff --git a/arch/arm/mach-mx1/generic.c b/arch/arm/mach-mx1/generic.c index 7f9fc10..5a745d9 100644 --- a/arch/arm/mach-mx1/generic.c +++ b/arch/arm/mach-mx1/generic.c @@ -31,23 +31,22 @@ static struct map_desc imx_io_desc[] __initdata = { { - .virtual = IMX_IO_BASE, - .pfn = __phys_to_pfn(IMX_IO_PHYS), - .length = IMX_IO_SIZE, - .type = MT_DEVICE + .virtual = MX1_IO_BASE_ADDR_VIRT, + .pfn = __phys_to_pfn(MX1_IO_BASE_ADDR), + .length = MX1_IO_SIZE, + .type = MT_DEVICE } }; void __init mx1_map_io(void) { mxc_set_cpu_type(MXC_CPU_MX1); - mxc_arch_reset_init(IO_ADDRESS(WDT_BASE_ADDR)); + mxc_arch_reset_init(MX1_IO_ADDRESS(MX1_WDT_BASE_ADDR)); iotable_init(imx_io_desc, ARRAY_SIZE(imx_io_desc)); } void __init mx1_init_irq(void) { - mxc_init_irq(IO_ADDRESS(AVIC_BASE_ADDR)); + mxc_init_irq(MX1_IO_ADDRESS(MX1_AVIC_BASE_ADDR)); } - diff --git a/arch/arm/mach-mx1/mach-mx1ads.c b/arch/arm/mach-mx1/mach-mx1ads.c index 51f3cfd..27c8222 100644 --- a/arch/arm/mach-mx1/mach-mx1ads.c +++ b/arch/arm/mach-mx1/mach-mx1ads.c @@ -75,8 +75,8 @@ static struct physmap_flash_data mx1ads_flash_data = { }; static struct resource flash_resource = { - .start = IMX_CS0_PHYS, - .end = IMX_CS0_PHYS + SZ_32M - 1, + .start = MX1_CS0_PHYS, + .end = MX1_CS0_PHYS + SZ_32M - 1, .flags = IORESOURCE_MEM, }; @@ -145,8 +145,8 @@ struct sys_timer mx1ads_timer = { MACHINE_START(MX1ADS, "Freescale MX1ADS") /* Maintainer: Sascha Hauer, Pengutronix */ - .phys_io = IMX_IO_PHYS, - .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, + .phys_io = MX1_IO_BASE_ADDR, + .io_pg_offst = (MX1_IO_BASE_ADDR_VIRT >> 18) & 0xfffc, .boot_params = MX1_PHYS_OFFSET + 0x100, .map_io = mx1_map_io, .init_irq = mx1_init_irq, @@ -155,8 +155,8 @@ MACHINE_START(MX1ADS, "Freescale MX1ADS") MACHINE_END MACHINE_START(MXLADS, "Freescale MXLADS") - .phys_io = IMX_IO_PHYS, - .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, + .phys_io = MX1_IO_BASE_ADDR, + .io_pg_offst = (MX1_IO_BASE_ADDR_VIRT >> 18) & 0xfffc, .boot_params = MX1_PHYS_OFFSET + 0x100, .map_io = mx1_map_io, .init_irq = mx1_init_irq, diff --git a/arch/arm/mach-mx1/mach-scb9328.c b/arch/arm/mach-mx1/mach-scb9328.c index 7587a7a..7c6bbe8 100644 --- a/arch/arm/mach-mx1/mach-scb9328.c +++ b/arch/arm/mach-mx1/mach-scb9328.c @@ -31,8 +31,8 @@ * This scb9328 has a 32MiB flash */ static struct resource flash_resource = { - .start = IMX_CS0_PHYS, - .end = IMX_CS0_PHYS + (32 * 1024 * 1024) - 1, + .start = MX1_CS0_PHYS, + .end = MX1_CS0_PHYS + (32 * 1024 * 1024) - 1, .flags = IORESOURCE_MEM, }; @@ -70,13 +70,13 @@ static struct dm9000_plat_data dm9000_platdata = { static struct resource dm9000x_resources[] = { { .name = "address area", - .start = IMX_CS5_PHYS, - .end = IMX_CS5_PHYS + 1, + .start = MX1_CS5_PHYS, + .end = MX1_CS5_PHYS + 1, .flags = IORESOURCE_MEM, /* address access */ }, { .name = "data area", - .start = IMX_CS5_PHYS + 4, - .end = IMX_CS5_PHYS + 5, + .start = MX1_CS5_PHYS + 4, + .end = MX1_CS5_PHYS + 5, .flags = IORESOURCE_MEM, /* data access */ }, { .start = IRQ_GPIOC(3), -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (3 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 04/16] arm/mx1: don't use deprecated symbol names Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-25 0:06 ` Wolfram Sang 2010-05-24 19:55 ` [PATCH 06/16] arm/mx1/scb9328: fix type of uart1_mxc_exit to make compiler happy Uwe Kleine-König ` (10 subsequent siblings) 15 siblings, 1 reply; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel This fixes: arch/arm/mach-mx2/mach-pca100.c:261: warning: 'otg_pdata' defined but not used arch/arm/mach-mx2/mach-pca100.c:273: warning: 'usbh2_pdata' defined but not used for build having USB_ULPI disabled. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx2/mach-pca100.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mx2/mach-pca100.c b/arch/arm/mach-mx2/mach-pca100.c index 778fff2..da94279 100644 --- a/arch/arm/mach-mx2/mach-pca100.c +++ b/arch/arm/mach-mx2/mach-pca100.c @@ -252,6 +252,7 @@ static struct imxmmc_platform_data sdhc_pdata = { .exit = pca100_sdhc2_exit, }; +#if defined(CONFIG_USB_ULPI) static int otg_phy_init(struct platform_device *pdev) { gpio_set_value(OTG_PHY_CS_GPIO, 0); @@ -275,6 +276,7 @@ static struct mxc_usbh_platform_data usbh2_pdata = { .portsc = MXC_EHCI_MODE_ULPI, .flags = MXC_EHCI_INTERFACE_DIFF_UNI, }; +#endif static struct fsl_usb2_platform_data otg_device_pdata = { .operating_mode = FSL_USB2_DR_DEVICE, -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning 2010-05-24 19:55 ` [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning Uwe Kleine-König @ 2010-05-25 0:06 ` Wolfram Sang 2010-05-25 9:04 ` Uwe Kleine-König 0 siblings, 1 reply; 32+ messages in thread From: Wolfram Sang @ 2010-05-25 0:06 UTC (permalink / raw) To: linux-arm-kernel On Mon, May 24, 2010 at 09:55:40PM +0200, Uwe Kleine-K?nig wrote: > This fixes: > > arch/arm/mach-mx2/mach-pca100.c:261: warning: 'otg_pdata' defined but not used > arch/arm/mach-mx2/mach-pca100.c:273: warning: 'usbh2_pdata' defined but not used > > for build having USB_ULPI disabled. See: http://article.gmane.org/gmane.linux.ports.arm.kernel/80438/ -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100525/cb9af6da/attachment.sig> ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning 2010-05-25 0:06 ` Wolfram Sang @ 2010-05-25 9:04 ` Uwe Kleine-König 2010-05-25 10:57 ` Wolfram Sang 0 siblings, 1 reply; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-25 9:04 UTC (permalink / raw) To: linux-arm-kernel Hello Wolfram, On Tue, May 25, 2010 at 02:06:56AM +0200, Wolfram Sang wrote: > On Mon, May 24, 2010 at 09:55:40PM +0200, Uwe Kleine-K?nig wrote: > > This fixes: > > > > arch/arm/mach-mx2/mach-pca100.c:261: warning: 'otg_pdata' defined but not used > > arch/arm/mach-mx2/mach-pca100.c:273: warning: 'usbh2_pdata' defined but not used > > > > for build having USB_ULPI disabled. > > See: > > http://article.gmane.org/gmane.linux.ports.arm.kernel/80438/ ah, OK, your patch looks more complete. I dropped my patch and took your's instead. While at it I took "[PATCH] pcm037: fix build warning", too. Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning 2010-05-25 9:04 ` Uwe Kleine-König @ 2010-05-25 10:57 ` Wolfram Sang 2010-05-25 18:36 ` Uwe Kleine-König 0 siblings, 1 reply; 32+ messages in thread From: Wolfram Sang @ 2010-05-25 10:57 UTC (permalink / raw) To: linux-arm-kernel On Tue, May 25, 2010 at 11:04:31AM +0200, Uwe Kleine-K?nig wrote: > ah, OK, your patch looks more complete. I dropped my patch and took > your's instead. While at it I took "[PATCH] pcm037: fix build warning", > too. Hmm, your patches are for 2.6.36; I think these build-fixes should go to 2.6.35 (if Sascha's pull request for mxc-master will be accepted, that is). Otherwise, OK. -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100525/6c7d973c/attachment.sig> ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning 2010-05-25 10:57 ` Wolfram Sang @ 2010-05-25 18:36 ` Uwe Kleine-König 0 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-25 18:36 UTC (permalink / raw) To: linux-arm-kernel On Tue, May 25, 2010 at 12:57:30PM +0200, Wolfram Sang wrote: > On Tue, May 25, 2010 at 11:04:31AM +0200, Uwe Kleine-K?nig wrote: > > > ah, OK, your patch looks more complete. I dropped my patch and took > > your's instead. While at it I took "[PATCH] pcm037: fix build warning", > > too. > > Hmm, your patches are for 2.6.36; I think these build-fixes should go to > 2.6.35 (if Sascha's pull request for mxc-master will be accepted, that is). > Otherwise, OK. They only fix warnings but shouldn't make any difference for the generated code. So I think 2.6.36 is OK. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 06/16] arm/mx1/scb9328: fix type of uart1_mxc_exit to make compiler happy 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (4 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 07/16] arm/mx2/mx27_3ds: document alternative names and remove empty header Uwe Kleine-König ` (9 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel This fixes: arch/arm/mach-mx1/mach-scb9328.c:120: warning: initialization from incompatible pointer type Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx1/mach-scb9328.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-mx1/mach-scb9328.c b/arch/arm/mach-mx1/mach-scb9328.c index 7c6bbe8..ed2ff16 100644 --- a/arch/arm/mach-mx1/mach-scb9328.c +++ b/arch/arm/mach-mx1/mach-scb9328.c @@ -108,11 +108,10 @@ static int uart1_mxc_init(struct platform_device *pdev) ARRAY_SIZE(mxc_uart1_pins), "UART1"); } -static int uart1_mxc_exit(struct platform_device *pdev) +static void uart1_mxc_exit(struct platform_device *pdev) { mxc_gpio_release_multiple_pins(mxc_uart1_pins, ARRAY_SIZE(mxc_uart1_pins)); - return 0; } static struct imxuart_platform_data uart_pdata = { -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 07/16] arm/mx2/mx27_3ds: document alternative names and remove empty header 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (5 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 06/16] arm/mx1/scb9328: fix type of uart1_mxc_exit to make compiler happy Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 08/16] arm/imx: remove empty and unused board headers Uwe Kleine-König ` (8 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx2/mach-mx27_3ds.c | 7 ++++++- arch/arm/plat-mxc/include/mach/board-mx27pdk.h | 14 -------------- 2 files changed, 6 insertions(+), 15 deletions(-) delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx27pdk.h diff --git a/arch/arm/mach-mx2/mach-mx27_3ds.c b/arch/arm/mach-mx2/mach-mx27_3ds.c index b2f4e0d..a45df59 100644 --- a/arch/arm/mach-mx2/mach-mx27_3ds.c +++ b/arch/arm/mach-mx2/mach-mx27_3ds.c @@ -18,6 +18,12 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/* + * This machine is known as: + * - i.MX27 3-Stack Development System + * - i.MX27 Platform Development Kit (i.MX27 PDK) + */ + #include <linux/platform_device.h> #include <linux/gpio.h> #include <asm/mach-types.h> @@ -27,7 +33,6 @@ #include <mach/common.h> #include <mach/imx-uart.h> #include <mach/iomux-mx27.h> -#include <mach/board-mx27pdk.h> #include "devices.h" diff --git a/arch/arm/plat-mxc/include/mach/board-mx27pdk.h b/arch/arm/plat-mxc/include/mach/board-mx27pdk.h deleted file mode 100644 index fec1bcf..0000000 --- a/arch/arm/plat-mxc/include/mach/board-mx27pdk.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. - */ - -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_ARCH_MXC_BOARD_MX27PDK_H__ -#define __ASM_ARCH_MXC_BOARD_MX27PDK_H__ - -#endif /* __ASM_ARCH_MXC_BOARD_MX27PDK_H__ */ -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 08/16] arm/imx: remove empty and unused board headers 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (6 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 07/16] arm/mx2/mx27_3ds: document alternative names and remove empty header Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y Uwe Kleine-König ` (7 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx2/mach-imx27lite.c | 1 - arch/arm/mach-mx3/mach-armadillo5x0.c | 1 - arch/arm/mach-mx3/mach-pcm037.c | 1 - .../arm/plat-mxc/include/mach/board-armadillo5x0.h | 15 ------------- arch/arm/plat-mxc/include/mach/board-mx27lite.h | 14 ------------ arch/arm/plat-mxc/include/mach/board-mx35pdk.h | 22 -------------------- arch/arm/plat-mxc/include/mach/board-pcm037.h | 22 -------------------- arch/arm/plat-mxc/include/mach/board-pcm043.h | 22 -------------------- 8 files changed, 0 insertions(+), 98 deletions(-) delete mode 100644 arch/arm/plat-mxc/include/mach/board-armadillo5x0.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx27lite.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx35pdk.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-pcm037.h delete mode 100644 arch/arm/plat-mxc/include/mach/board-pcm043.h diff --git a/arch/arm/mach-mx2/mach-imx27lite.c b/arch/arm/mach-mx2/mach-imx27lite.c index b5710bf..fd1dddb 100644 --- a/arch/arm/mach-mx2/mach-imx27lite.c +++ b/arch/arm/mach-mx2/mach-imx27lite.c @@ -28,7 +28,6 @@ #include <mach/common.h> #include <mach/imx-uart.h> #include <mach/iomux-mx27.h> -#include <mach/board-mx27lite.h> #include "devices.h" diff --git a/arch/arm/mach-mx3/mach-armadillo5x0.c b/arch/arm/mach-mx3/mach-armadillo5x0.c index 5f72ec9..2a8de89 100644 --- a/arch/arm/mach-mx3/mach-armadillo5x0.c +++ b/arch/arm/mach-mx3/mach-armadillo5x0.c @@ -50,7 +50,6 @@ #include <mach/common.h> #include <mach/imx-uart.h> #include <mach/iomux-mx3.h> -#include <mach/board-armadillo5x0.h> #include <mach/mmc.h> #include <mach/ipu.h> #include <mach/mx3fb.h> diff --git a/arch/arm/mach-mx3/mach-pcm037.c b/arch/arm/mach-mx3/mach-pcm037.c index 2df1ec5..86321b8 100644 --- a/arch/arm/mach-mx3/mach-pcm037.c +++ b/arch/arm/mach-mx3/mach-pcm037.c @@ -43,7 +43,6 @@ #include <asm/mach/arch.h> #include <asm/mach/time.h> #include <asm/mach/map.h> -#include <mach/board-pcm037.h> #include <mach/common.h> #include <mach/hardware.h> #include <mach/i2c.h> diff --git a/arch/arm/plat-mxc/include/mach/board-armadillo5x0.h b/arch/arm/plat-mxc/include/mach/board-armadillo5x0.h deleted file mode 100644 index 0376c13..0000000 --- a/arch/arm/plat-mxc/include/mach/board-armadillo5x0.h +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright 2009 Alberto Panizzo <maramaopercheseimorto@gmail.com>. - * All Rights Reserved. - */ - -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_ARCH_MXC_BOARD_ARMADILLO5X0_H__ -#define __ASM_ARCH_MXC_BOARD_ARMADILLO5X0_H__ - -#endif diff --git a/arch/arm/plat-mxc/include/mach/board-mx27lite.h b/arch/arm/plat-mxc/include/mach/board-mx27lite.h deleted file mode 100644 index ea87551..0000000 --- a/arch/arm/plat-mxc/include/mach/board-mx27lite.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. - */ - -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_ARCH_MXC_BOARD_MX27LITE_H__ -#define __ASM_ARCH_MXC_BOARD_MX27LITE_H__ - -#endif /* __ASM_ARCH_MXC_BOARD_MX27LITE_H__ */ diff --git a/arch/arm/plat-mxc/include/mach/board-mx35pdk.h b/arch/arm/plat-mxc/include/mach/board-mx35pdk.h deleted file mode 100644 index 383f1c0..0000000 --- a/arch/arm/plat-mxc/include/mach/board-mx35pdk.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved - * - * 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; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __ASM_ARCH_MXC_BOARD_MX35PDK_H__ -#define __ASM_ARCH_MXC_BOARD_MX35PDK_H__ - -#endif /* __ASM_ARCH_MXC_BOARD_MX35PDK_H__ */ diff --git a/arch/arm/plat-mxc/include/mach/board-pcm037.h b/arch/arm/plat-mxc/include/mach/board-pcm037.h deleted file mode 100644 index 1341170..0000000 --- a/arch/arm/plat-mxc/include/mach/board-pcm037.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 Sascha Hauer, Pengutronix - * - * 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; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __ASM_ARCH_MXC_BOARD_PCM037_H__ -#define __ASM_ARCH_MXC_BOARD_PCM037_H__ - -#endif /* __ASM_ARCH_MXC_BOARD_PCM037_H__ */ diff --git a/arch/arm/plat-mxc/include/mach/board-pcm043.h b/arch/arm/plat-mxc/include/mach/board-pcm043.h deleted file mode 100644 index 1ac4e16..0000000 --- a/arch/arm/plat-mxc/include/mach/board-pcm043.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 Sascha Hauer, Pengutronix - * - * 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; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __ASM_ARCH_MXC_BOARD_PCM043_H__ -#define __ASM_ARCH_MXC_BOARD_PCM043_H__ - -#endif /* __ASM_ARCH_MXC_BOARD_PCM043_H__ */ -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (7 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 08/16] arm/imx: remove empty and unused board headers Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 20:10 ` Eric Bénard 2010-05-24 19:55 ` [PATCH 10/16] arm/mx3/kzm_arm11_01: fold board header in its only user Uwe Kleine-König ` (6 subsequent siblings) 15 siblings, 1 reply; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel This fixes: arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:166: error: expected identifier or '(' before '||' token arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:204: error: variable 'eukrea_mbimx27_spi_0_data' has initializer but incomplete type arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: error: unknown field 'chipselect' specified in initializer arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: warning: excess elements in struct initializer arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: warning: (near initialization for 'eukrea_mbimx27_spi_0_data') arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: error: unknown field 'num_chipselect' specified in initializer arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: warning: excess elements in struct initializer arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: warning: (near initialization for 'eukrea_mbimx27_spi_0_data') arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c: In function 'eukrea_mbimx27_baseboard_init': arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:239: error: implicit declaration of function 'ads7846_dev_init' While at it add TOUCHSCREEN_ADS7846=m to mx27_defconfig. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/configs/mx27_defconfig | 2 +- arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/configs/mx27_defconfig b/arch/arm/configs/mx27_defconfig index b4c1366..ceab3f9 100644 --- a/arch/arm/configs/mx27_defconfig +++ b/arch/arm/configs/mx27_defconfig @@ -623,7 +623,7 @@ CONFIG_INPUT_EVDEV=y # CONFIG_INPUT_JOYSTICK is not set # CONFIG_INPUT_TABLET is not set CONFIG_INPUT_TOUCHSCREEN=y -# CONFIG_TOUCHSCREEN_ADS7846 is not set +CONFIG_TOUCHSCREEN_ADS7846=m # CONFIG_TOUCHSCREEN_AD7877 is not set # CONFIG_TOUCHSCREEN_AD7879_I2C is not set # CONFIG_TOUCHSCREEN_AD7879_SPI is not set diff --git a/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c b/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c index f3b169d..9e607a2 100644 --- a/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c +++ b/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c @@ -33,6 +33,7 @@ #include <mach/hardware.h> #include <mach/mmc.h> #include <mach/imx-uart.h> +#include <mach/spi.h> #include "devices.h" @@ -162,7 +163,7 @@ static struct imxuart_platform_data uart_pdata[] = { }, }; -#if defined(CONFIG_TOUCHSCREEN_ADS7846) +#if defined(CONFIG_TOUCHSCREEN_ADS7846) \ || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) #define ADS7846_PENDOWN (GPIO_PORTD | 25) @@ -228,7 +229,7 @@ void __init eukrea_mbimx27_baseboard_init(void) mxc_register_device(&mxc_fb_device, &eukrea_mbimx27_fb_data); mxc_register_device(&mxc_sdhc_device0, NULL); -#if defined(CONFIG_TOUCHSCREEN_ADS7846) +#if defined(CONFIG_TOUCHSCREEN_ADS7846) \ || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) /* SPI and ADS7846 Touchscreen controler init */ mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT); -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y 2010-05-24 19:55 ` [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y Uwe Kleine-König @ 2010-05-24 20:10 ` Eric Bénard 2010-05-24 20:34 ` Uwe Kleine-König 0 siblings, 1 reply; 32+ messages in thread From: Eric Bénard @ 2010-05-24 20:10 UTC (permalink / raw) To: linux-arm-kernel Hi Uwe, Le 24/05/2010 21:55, Uwe Kleine-K?nig a ?crit : > This fixes: > > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:166: error: expected identifier or '(' before '||' token > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:204: error: variable 'eukrea_mbimx27_spi_0_data' has initializer but incomplete type > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: error: unknown field 'chipselect' specified in initializer > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: warning: excess elements in struct initializer > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: warning: (near initialization for 'eukrea_mbimx27_spi_0_data') > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: error: unknown field 'num_chipselect' specified in initializer > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: warning: excess elements in struct initializer > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: warning: (near initialization for 'eukrea_mbimx27_spi_0_data') > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c: In function 'eukrea_mbimx27_baseboard_init': > arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:239: error: implicit declaration of function 'ads7846_dev_init' > > While at it add TOUCHSCREEN_ADS7846=m to mx27_defconfig. > I already fixed this in my patchset for this board : http://lists.infradead.org/pipermail/linux-arm-kernel/2010-May/015826.html Eric ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y 2010-05-24 20:10 ` Eric Bénard @ 2010-05-24 20:34 ` Uwe Kleine-König 2010-05-24 21:08 ` Eric Bénard 2010-06-22 16:13 ` Uwe Kleine-König 0 siblings, 2 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 20:34 UTC (permalink / raw) To: linux-arm-kernel Hi Eric, On Mon, May 24, 2010 at 10:10:55PM +0200, Eric B?nard wrote: > Hi Uwe, > > Le 24/05/2010 21:55, Uwe Kleine-K?nig a ?crit : >> This fixes: >> >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:166: error: expected identifier or '(' before '||' token >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:204: error: variable 'eukrea_mbimx27_spi_0_data' has initializer but incomplete type >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: error: unknown field 'chipselect' specified in initializer >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: warning: excess elements in struct initializer >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: warning: (near initialization for 'eukrea_mbimx27_spi_0_data') >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: error: unknown field 'num_chipselect' specified in initializer >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: warning: excess elements in struct initializer >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: warning: (near initialization for 'eukrea_mbimx27_spi_0_data') >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c: In function 'eukrea_mbimx27_baseboard_init': >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:239: error: implicit declaration of function 'ads7846_dev_init' >> >> While at it add TOUCHSCREEN_ADS7846=m to mx27_defconfig. >> > I already fixed this in my patchset for this board : > http://lists.infradead.org/pipermail/linux-arm-kernel/2010-May/015826.html What do you think about adding TOUCHSCREEN_ADS7846=m to mx27_defconfig? Other than that I'm OK with your patch, too. I will remove this patch from my queue. Best regards and thanks Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y 2010-05-24 20:34 ` Uwe Kleine-König @ 2010-05-24 21:08 ` Eric Bénard 2010-06-22 16:13 ` Uwe Kleine-König 1 sibling, 0 replies; 32+ messages in thread From: Eric Bénard @ 2010-05-24 21:08 UTC (permalink / raw) To: linux-arm-kernel Hi Uwe, Le 24/05/2010 22:34, Uwe Kleine-K?nig a ?crit : > What do you think about adding TOUCHSCREEN_ADS7846=m to mx27_defconfig? > in fact I also sent a patch to update the defconfig for our boards's peripherals (for our board : 8250, ADS7846, libertas, LEDs, keyboard + for most iMX27 boards : SPI, LCD, USB host + Gadget) : http://lists.infradead.org/pipermail/linux-arm-kernel/2010-May/015833.html As a default, I put +CONFIG_TOUCHSCREEN_ADS7846=y : is it a problem to have it integrated and not configured as a module in the defconfig ? Thanks, Eric ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y 2010-05-24 20:34 ` Uwe Kleine-König 2010-05-24 21:08 ` Eric Bénard @ 2010-06-22 16:13 ` Uwe Kleine-König 2010-06-22 17:21 ` Eric Bénard 2010-06-24 9:36 ` Uwe Kleine-König 1 sibling, 2 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-06-22 16:13 UTC (permalink / raw) To: linux-arm-kernel Hi Eric, On Mon, May 24, 2010 at 10:34:28PM +0200, Uwe Kleine-K?nig wrote: > On Mon, May 24, 2010 at 10:10:55PM +0200, Eric B?nard wrote: > > Hi Uwe, > > > > Le 24/05/2010 21:55, Uwe Kleine-K?nig a ?crit : > >> This fixes: > >> > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:166: error: expected identifier or '(' before '||' token > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:204: error: variable 'eukrea_mbimx27_spi_0_data' has initializer but incomplete type > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: error: unknown field 'chipselect' specified in initializer > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: warning: excess elements in struct initializer > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:205: warning: (near initialization for 'eukrea_mbimx27_spi_0_data') > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: error: unknown field 'num_chipselect' specified in initializer > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: warning: excess elements in struct initializer > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:206: warning: (near initialization for 'eukrea_mbimx27_spi_0_data') > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c: In function 'eukrea_mbimx27_baseboard_init': > >> arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c:239: error: implicit declaration of function 'ads7846_dev_init' > >> > >> While at it add TOUCHSCREEN_ADS7846=m to mx27_defconfig. > >> > > I already fixed this in my patchset for this board : > > http://lists.infradead.org/pipermail/linux-arm-kernel/2010-May/015826.html > > What do you think about adding TOUCHSCREEN_ADS7846=m to mx27_defconfig? > > Other than that I'm OK with your patch, too. I will remove this patch > from my queue. If we want to have ADS7846 at least compilable in .35 we should go with my patch as your's is (IMHO) too intrusive after -rc1. Sascha? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y 2010-06-22 16:13 ` Uwe Kleine-König @ 2010-06-22 17:21 ` Eric Bénard 2010-06-24 9:36 ` Uwe Kleine-König 1 sibling, 0 replies; 32+ messages in thread From: Eric Bénard @ 2010-06-22 17:21 UTC (permalink / raw) To: linux-arm-kernel Hi Uwe, Le 22/06/2010 18:13, Uwe Kleine-K?nig a ?crit : > On Mon, May 24, 2010 at 10:34:28PM +0200, Uwe Kleine-K?nig wrote: >> What do you think about adding TOUCHSCREEN_ADS7846=m to mx27_defconfig? >> >> Other than that I'm OK with your patch, too. I will remove this patch >> from my queue. > If we want to have ADS7846 at least compilable in .35 we should go with > my patch as your's is (IMHO) too intrusive after -rc1. > unless this has changed recently, this board is not in mx27_defconfig for 2.6.35-rc nor in Sasha's tree so adding TOUCHSCREEN_ADS7846=m to defconfig shouldn't break anything. Eric ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y 2010-06-22 16:13 ` Uwe Kleine-König 2010-06-22 17:21 ` Eric Bénard @ 2010-06-24 9:36 ` Uwe Kleine-König 1 sibling, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-06-24 9:36 UTC (permalink / raw) To: linux-arm-kernel Hello, > If we want to have ADS7846 at least compilable in .35 we should go with > my patch as your's is (IMHO) too intrusive after -rc1. I have somehow missed that Eric's patch is already in Sascha's for-2.6.35 branch. So there is nothing to do. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 10/16] arm/mx3/kzm_arm11_01: fold board header in its only user 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (8 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 11/16] arm/mx2/mx21ads: " Uwe Kleine-König ` (5 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx3/mach-kzm_arm11_01.c | 18 ++++++++++- arch/arm/plat-mxc/include/mach/board-kzmarm11.h | 39 ----------------------- 2 files changed, 17 insertions(+), 40 deletions(-) delete mode 100644 arch/arm/plat-mxc/include/mach/board-kzmarm11.h diff --git a/arch/arm/mach-mx3/mach-kzm_arm11_01.c b/arch/arm/mach-mx3/mach-kzm_arm11_01.c index f085d5d..e60f5da 100644 --- a/arch/arm/mach-mx3/mach-kzm_arm11_01.c +++ b/arch/arm/mach-mx3/mach-kzm_arm11_01.c @@ -37,7 +37,6 @@ #include <asm/mach/map.h> #include <asm/mach/time.h> -#include <mach/board-kzmarm11.h> #include <mach/clock.h> #include <mach/common.h> #include <mach/imx-uart.h> @@ -51,6 +50,23 @@ IMX_IO_ADDRESS(x, MX31_CS5) ?: \ MX31_IO_ADDRESS(x)) +/* + * KZM-ARM11-01 Board Control Registers on FPGA + */ +#define KZM_ARM11_CTL1 (MX31_CS4_BASE_ADDR + 0x1000) +#define KZM_ARM11_CTL2 (MX31_CS4_BASE_ADDR + 0x1001) +#define KZM_ARM11_RSW1 (MX31_CS4_BASE_ADDR + 0x1002) +#define KZM_ARM11_BACK_LIGHT (MX31_CS4_BASE_ADDR + 0x1004) +#define KZM_ARM11_FPGA_REV (MX31_CS4_BASE_ADDR + 0x1008) +#define KZM_ARM11_7SEG_LED (MX31_CS4_BASE_ADDR + 0x1010) +#define KZM_ARM11_LEDS (MX31_CS4_BASE_ADDR + 0x1020) +#define KZM_ARM11_DIPSW2 (MX31_CS4_BASE_ADDR + 0x1003) + +/* + * External UART for touch panel on FPGA + */ +#define KZM_ARM11_16550 (MX31_CS4_BASE_ADDR + 0x1050) + #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) /* * KZM-ARM11-01 has an external UART on FPGA diff --git a/arch/arm/plat-mxc/include/mach/board-kzmarm11.h b/arch/arm/plat-mxc/include/mach/board-kzmarm11.h deleted file mode 100644 index 93cc66f..0000000 --- a/arch/arm/plat-mxc/include/mach/board-kzmarm11.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2009 Yoichi Yuasa <yuasa@linux-mips.org> - * - * 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; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -#ifndef __ARM_ARCH_BOARD_KZM_ARM11_H -#define __ARM_ARCH_BOARD_KZM_ARM11_H - -/* - * KZM-ARM11-01 Board Control Registers on FPGA - */ -#define KZM_ARM11_CTL1 (MX31_CS4_BASE_ADDR + 0x1000) -#define KZM_ARM11_CTL2 (MX31_CS4_BASE_ADDR + 0x1001) -#define KZM_ARM11_RSW1 (MX31_CS4_BASE_ADDR + 0x1002) -#define KZM_ARM11_BACK_LIGHT (MX31_CS4_BASE_ADDR + 0x1004) -#define KZM_ARM11_FPGA_REV (MX31_CS4_BASE_ADDR + 0x1008) -#define KZM_ARM11_7SEG_LED (MX31_CS4_BASE_ADDR + 0x1010) -#define KZM_ARM11_LEDS (MX31_CS4_BASE_ADDR + 0x1020) -#define KZM_ARM11_DIPSW2 (MX31_CS4_BASE_ADDR + 0x1003) - -/* - * External UART for touch panel on FPGA - */ -#define KZM_ARM11_16550 (MX31_CS4_BASE_ADDR + 0x1050) - -#endif /* __ARM_ARCH_BOARD_KZM_ARM11_H */ - -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 11/16] arm/mx2/mx21ads: fold board header in its only user 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (9 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 10/16] arm/mx3/kzm_arm11_01: fold board header in its only user Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 12/16] arm/mx2/mx27ads: " Uwe Kleine-König ` (4 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx2/mach-mx21ads.c | 36 ++++++++++++++++- arch/arm/plat-mxc/include/mach/board-mx21ads.h | 52 ------------------------ 2 files changed, 35 insertions(+), 53 deletions(-) delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx21ads.h diff --git a/arch/arm/mach-mx2/mach-mx21ads.c b/arch/arm/mach-mx2/mach-mx21ads.c index 113e58d..99f2492 100644 --- a/arch/arm/mach-mx2/mach-mx21ads.c +++ b/arch/arm/mach-mx2/mach-mx21ads.c @@ -33,10 +33,44 @@ #include <mach/iomux-mx21.h> #include <mach/mxc_nand.h> #include <mach/mmc.h> -#include <mach/board-mx21ads.h> #include "devices.h" +/* + * Memory-mapped I/O on MX21ADS base board + */ +#define MX21ADS_MMIO_BASE_ADDR 0xf5000000 +#define MX21ADS_MMIO_SIZE SZ_16M + +#define MX21ADS_REG_ADDR(offset) (void __force __iomem *) \ + (MX21ADS_MMIO_BASE_ADDR + (offset)) + +#define MX21ADS_CS8900A_IRQ IRQ_GPIOE(11) +#define MX21ADS_CS8900A_IOBASE_REG MX21ADS_REG_ADDR(0x000000) +#define MX21ADS_ST16C255_IOBASE_REG MX21ADS_REG_ADDR(0x200000) +#define MX21ADS_VERSION_REG MX21ADS_REG_ADDR(0x400000) +#define MX21ADS_IO_REG MX21ADS_REG_ADDR(0x800000) + +/* MX21ADS_IO_REG bit definitions */ +#define MX21ADS_IO_SD_WP 0x0001 /* read */ +#define MX21ADS_IO_TP6 0x0001 /* write */ +#define MX21ADS_IO_SW_SEL 0x0002 /* read */ +#define MX21ADS_IO_TP7 0x0002 /* write */ +#define MX21ADS_IO_RESET_E_UART 0x0004 +#define MX21ADS_IO_RESET_BASE 0x0008 +#define MX21ADS_IO_CSI_CTL2 0x0010 +#define MX21ADS_IO_CSI_CTL1 0x0020 +#define MX21ADS_IO_CSI_CTL0 0x0040 +#define MX21ADS_IO_UART1_EN 0x0080 +#define MX21ADS_IO_UART4_EN 0x0100 +#define MX21ADS_IO_LCDON 0x0200 +#define MX21ADS_IO_IRDA_EN 0x0400 +#define MX21ADS_IO_IRDA_FIR_SEL 0x0800 +#define MX21ADS_IO_IRDA_MD0_B 0x1000 +#define MX21ADS_IO_IRDA_MD1 0x2000 +#define MX21ADS_IO_LED4_ON 0x4000 +#define MX21ADS_IO_LED3_ON 0x8000 + static unsigned int mx21ads_pins[] = { /* CS8900A */ diff --git a/arch/arm/plat-mxc/include/mach/board-mx21ads.h b/arch/arm/plat-mxc/include/mach/board-mx21ads.h deleted file mode 100644 index 0cf4fa2..0000000 --- a/arch/arm/plat-mxc/include/mach/board-mx21ads.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved. - */ - -/* - * The code contained herein is licensed under the GNU General Public - * License. You may obtain a copy of the GNU General Public License - * Version 2 or later at the following locations: - * - * http://www.opensource.org/licenses/gpl-license.html - * http://www.gnu.org/copyleft/gpl.html - */ - -#ifndef __ASM_ARCH_MXC_BOARD_MX21ADS_H__ -#define __ASM_ARCH_MXC_BOARD_MX21ADS_H__ - -/* - * Memory-mapped I/O on MX21ADS base board - */ -#define MX21ADS_MMIO_BASE_ADDR 0xF5000000 -#define MX21ADS_MMIO_SIZE SZ_16M - -#define MX21ADS_REG_ADDR(offset) (void __force __iomem *) \ - (MX21ADS_MMIO_BASE_ADDR + (offset)) - -#define MX21ADS_CS8900A_IRQ IRQ_GPIOE(11) -#define MX21ADS_CS8900A_IOBASE_REG MX21ADS_REG_ADDR(0x000000) -#define MX21ADS_ST16C255_IOBASE_REG MX21ADS_REG_ADDR(0x200000) -#define MX21ADS_VERSION_REG MX21ADS_REG_ADDR(0x400000) -#define MX21ADS_IO_REG MX21ADS_REG_ADDR(0x800000) - -/* MX21ADS_IO_REG bit definitions */ -#define MX21ADS_IO_SD_WP 0x0001 /* read */ -#define MX21ADS_IO_TP6 0x0001 /* write */ -#define MX21ADS_IO_SW_SEL 0x0002 /* read */ -#define MX21ADS_IO_TP7 0x0002 /* write */ -#define MX21ADS_IO_RESET_E_UART 0x0004 -#define MX21ADS_IO_RESET_BASE 0x0008 -#define MX21ADS_IO_CSI_CTL2 0x0010 -#define MX21ADS_IO_CSI_CTL1 0x0020 -#define MX21ADS_IO_CSI_CTL0 0x0040 -#define MX21ADS_IO_UART1_EN 0x0080 -#define MX21ADS_IO_UART4_EN 0x0100 -#define MX21ADS_IO_LCDON 0x0200 -#define MX21ADS_IO_IRDA_EN 0x0400 -#define MX21ADS_IO_IRDA_FIR_SEL 0x0800 -#define MX21ADS_IO_IRDA_MD0_B 0x1000 -#define MX21ADS_IO_IRDA_MD1 0x2000 -#define MX21ADS_IO_LED4_ON 0x4000 -#define MX21ADS_IO_LED3_ON 0x8000 - -#endif /* __ASM_ARCH_MXC_BOARD_MX21ADS_H__ */ -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 12/16] arm/mx2/mx27ads: fold board header in its only user 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (10 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 11/16] arm/mx2/mx21ads: " Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 13/16] arm/mx3/qong: get rid of nearly empty header Uwe Kleine-König ` (3 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Moreover remove unused definitions. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx2/mach-mx27ads.c | 32 ++- arch/arm/plat-mxc/include/mach/board-mx27ads.h | 344 ------------------------ 2 files changed, 30 insertions(+), 346 deletions(-) delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx27ads.h diff --git a/arch/arm/mach-mx2/mach-mx27ads.c b/arch/arm/mach-mx2/mach-mx27ads.c index 6ce3236..2183e3d 100644 --- a/arch/arm/mach-mx2/mach-mx27ads.c +++ b/arch/arm/mach-mx2/mach-mx27ads.c @@ -34,7 +34,6 @@ #include <mach/gpio.h> #include <mach/imx-uart.h> #include <mach/iomux-mx27.h> -#include <mach/board-mx27ads.h> #include <mach/mxc_nand.h> #include <mach/i2c.h> #include <mach/imxfb.h> @@ -42,6 +41,36 @@ #include "devices.h" +/* + * Base address of PBC controller, CS4 + */ +#define PBC_BASE_ADDRESS 0xf4300000 +#define PBC_REG_ADDR(offset) (void __force __iomem *) \ + (PBC_BASE_ADDRESS + (offset)) + +/* When the PBC address connection is fixed in h/w, defined as 1 */ +#define PBC_ADDR_SH 0 + +/* Offsets for the PBC Controller register */ +/* + * PBC Board version register offset + */ +#define PBC_VERSION_REG PBC_REG_ADDR(0x00000 >> PBC_ADDR_SH) +/* + * PBC Board control register 1 set address. + */ +#define PBC_BCTRL1_SET_REG PBC_REG_ADDR(0x00008 >> PBC_ADDR_SH) +/* + * PBC Board control register 1 clear address. + */ +#define PBC_BCTRL1_CLEAR_REG PBC_REG_ADDR(0x0000C >> PBC_ADDR_SH) + +/* PBC Board Control Register 1 bit definitions */ +#define PBC_BCTRL1_LCDON 0x0800 /* Enable the LCD */ + +/* to determine the correct external crystal reference */ +#define CKIH_27MHZ_BIT_SET (1 << 3) + static unsigned int mx27ads_pins[] = { /* UART0 */ PE12_PF_UART1_TXD, @@ -342,4 +371,3 @@ MACHINE_START(MX27ADS, "Freescale i.MX27ADS") .init_machine = mx27ads_board_init, .timer = &mx27ads_timer, MACHINE_END - diff --git a/arch/arm/plat-mxc/include/mach/board-mx27ads.h b/arch/arm/plat-mxc/include/mach/board-mx27ads.h deleted file mode 100644 index 7776d23..0000000 --- a/arch/arm/plat-mxc/include/mach/board-mx27ads.h +++ /dev/null @@ -1,344 +0,0 @@ -/* - * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved. - */ - -/* - * The code contained herein is licensed under the GNU General Public - * License. You may obtain a copy of the GNU General Public License - * Version 2 or later@the following locations: - * - * http://www.opensource.org/licenses/gpl-license.html - * http://www.gnu.org/copyleft/gpl.html - */ - -#ifndef __ASM_ARCH_MXC_BOARD_MX27ADS_H__ -#define __ASM_ARCH_MXC_BOARD_MX27ADS_H__ - -/* external interrupt multiplexer */ -#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) - -#define MXC_VIRTUAL_INTS_BASE (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES) -#define MXC_SDIO1_CARD_IRQ MXC_VIRTUAL_INTS_BASE -#define MXC_SDIO2_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 1) -#define MXC_SDIO3_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 2) - -#define MXC_MAX_BOARD_INTS (MXC_MAX_EXP_IO_LINES + \ - MXC_MAX_VIRTUAL_INTS) - -/* - * @name Memory Size parameters - */ - -/* - * Size of SDRAM memory - */ -#define SDRAM_MEM_SIZE SZ_128M - -/* - * PBC Controller parameters - */ - -/* - * Base address of PBC controller, CS4 - */ -#define PBC_BASE_ADDRESS 0xf4300000 -#define PBC_REG_ADDR(offset) (void __force __iomem *) \ - (PBC_BASE_ADDRESS + (offset)) - -/* - * PBC Interupt name definitions - */ -#define PBC_GPIO1_0 0 -#define PBC_GPIO1_1 1 -#define PBC_GPIO1_2 2 -#define PBC_GPIO1_3 3 -#define PBC_GPIO1_4 4 -#define PBC_GPIO1_5 5 - -#define PBC_INTR_MAX_NUM 6 -#define PBC_INTR_SHARED_MAX_NUM 8 - -/* When the PBC address connection is fixed in h/w, defined as 1 */ -#define PBC_ADDR_SH 0 - -/* Offsets for the PBC Controller register */ -/* - * PBC Board version register offset - */ -#define PBC_VERSION_REG PBC_REG_ADDR(0x00000 >> PBC_ADDR_SH) -/* - * PBC Board control register 1 set address. - */ -#define PBC_BCTRL1_SET_REG PBC_REG_ADDR(0x00008 >> PBC_ADDR_SH) -/* - * PBC Board control register 1 clear address. - */ -#define PBC_BCTRL1_CLEAR_REG PBC_REG_ADDR(0x0000C >> PBC_ADDR_SH) -/* - * PBC Board control register 2 set address. - */ -#define PBC_BCTRL2_SET_REG PBC_REG_ADDR(0x00010 >> PBC_ADDR_SH) -/* - * PBC Board control register 2 clear address. - */ -#define PBC_BCTRL2_CLEAR_REG PBC_REG_ADDR(0x00014 >> PBC_ADDR_SH) -/* - * PBC Board control register 3 set address. - */ -#define PBC_BCTRL3_SET_REG PBC_REG_ADDR(0x00018 >> PBC_ADDR_SH) -/* - * PBC Board control register 3 clear address. - */ -#define PBC_BCTRL3_CLEAR_REG PBC_REG_ADDR(0x0001C >> PBC_ADDR_SH) -/* - * PBC Board control register 3 set address. - */ -#define PBC_BCTRL4_SET_REG PBC_REG_ADDR(0x00020 >> PBC_ADDR_SH) -/* - * PBC Board control register 4 clear address. - */ -#define PBC_BCTRL4_CLEAR_REG PBC_REG_ADDR(0x00024 >> PBC_ADDR_SH) -/*PBC_ADDR_SH - * PBC Board status register 1. - */ -#define PBC_BSTAT1_REG PBC_REG_ADDR(0x00028 >> PBC_ADDR_SH) -/* - * PBC Board interrupt status register. - */ -#define PBC_INTSTATUS_REG PBC_REG_ADDR(0x0002C >> PBC_ADDR_SH) -/* - * PBC Board interrupt current status register. - */ -#define PBC_INTCURR_STATUS_REG PBC_REG_ADDR(0x00034 >> PBC_ADDR_SH) -/* - * PBC Interrupt mask register set address. - */ -#define PBC_INTMASK_SET_REG PBC_REG_ADDR(0x00038 >> PBC_ADDR_SH) -/* - * PBC Interrupt mask register clear address. - */ -#define PBC_INTMASK_CLEAR_REG PBC_REG_ADDR(0x0003C >> PBC_ADDR_SH) -/* - * External UART A. - */ -#define PBC_SC16C652_UARTA_REG PBC_REG_ADDR(0x20000 >> PBC_ADDR_SH) -/* - * UART 4 Expanding Signal Status. - */ -#define PBC_UART_STATUS_REG PBC_REG_ADDR(0x22000 >> PBC_ADDR_SH) -/* - * UART 4 Expanding Signal Control Set. - */ -#define PBC_UCTRL_SET_REG PBC_REG_ADDR(0x24000 >> PBC_ADDR_SH) -/* - * UART 4 Expanding Signal Control Clear. - */ -#define PBC_UCTRL_CLR_REG PBC_REG_ADDR(0x26000 >> PBC_ADDR_SH) -/* - * Ethernet Controller IO base address. - */ -#define PBC_CS8900A_IOBASE_REG PBC_REG_ADDR(0x40000 >> PBC_ADDR_SH) -/* - * Ethernet Controller Memory base address. - */ -#define PBC_CS8900A_MEMBASE_REG PBC_REG_ADDR(0x42000 >> PBC_ADDR_SH) -/* - * Ethernet Controller DMA base address. - */ -#define PBC_CS8900A_DMABASE_REG PBC_REG_ADDR(0x44000 >> PBC_ADDR_SH) - -/* PBC Board Version Register bit definition */ -#define PBC_VERSION_ADS 0x8000 /* Bit15=1 means version for ads */ -#define PBC_VERSION_EVB_REVB 0x4000 /* BIT14=1 means version for evb revb */ - -/* PBC Board Control Register 1 bit definitions */ -#define PBC_BCTRL1_ERST 0x0001 /* Ethernet Reset */ -#define PBC_BCTRL1_URST 0x0002 /* Reset External UART controller */ -#define PBC_BCTRL1_FRST 0x0004 /* FEC Reset */ -#define PBC_BCTRL1_ESLEEP 0x0010 /* Enable ethernet Sleep */ -#define PBC_BCTRL1_LCDON 0x0800 /* Enable the LCD */ - -/* PBC Board Control Register 2 bit definitions */ -#define PBC_BCTRL2_VCC_EN 0x0004 /* Enable VCC */ -#define PBC_BCTRL2_VPP_EN 0x0008 /* Enable Vpp */ -#define PBC_BCTRL2_ATAFEC_EN 0X0010 -#define PBC_BCTRL2_ATAFEC_SEL 0X0020 -#define PBC_BCTRL2_ATA_EN 0X0040 -#define PBC_BCTRL2_IRDA_SD 0X0080 -#define PBC_BCTRL2_IRDA_EN 0X0100 -#define PBC_BCTRL2_CCTL10 0X0200 -#define PBC_BCTRL2_CCTL11 0X0400 - -/* PBC Board Control Register 3 bit definitions */ -#define PBC_BCTRL3_HSH_EN 0X0020 -#define PBC_BCTRL3_FSH_MOD 0X0040 -#define PBC_BCTRL3_OTG_HS_EN 0X0080 -#define PBC_BCTRL3_OTG_VBUS_EN 0X0100 -#define PBC_BCTRL3_FSH_VBUS_EN 0X0200 -#define PBC_BCTRL3_USB_OTG_ON 0X0800 -#define PBC_BCTRL3_USB_FSH_ON 0X1000 - -/* PBC Board Control Register 4 bit definitions */ -#define PBC_BCTRL4_REGEN_SEL 0X0001 -#define PBC_BCTRL4_USER_OFF 0X0002 -#define PBC_BCTRL4_VIB_EN 0X0004 -#define PBC_BCTRL4_PWRGT1_EN 0X0008 -#define PBC_BCTRL4_PWRGT2_EN 0X0010 -#define PBC_BCTRL4_STDBY_PRI 0X0020 - -#ifndef __ASSEMBLY__ -/* - * Enumerations for SD cards and memory stick card. This corresponds to - * the card EN bits in the IMR: SD1_EN | MS_EN | SD3_EN | SD2_EN. - */ -enum mxc_card_no { - MXC_CARD_SD2 = 0, - MXC_CARD_SD3, - MXC_CARD_MS, - MXC_CARD_SD1, - MXC_CARD_MIN = MXC_CARD_SD2, - MXC_CARD_MAX = MXC_CARD_SD1, -}; -#endif - -#define MXC_CPLD_VER_1_50 0x01 - -/* - * PBC BSTAT Register bit definitions - */ -#define PBC_BSTAT_PRI_INT 0X0001 -#define PBC_BSTAT_USB_BYP 0X0002 -#define PBC_BSTAT_ATA_IOCS16 0X0004 -#define PBC_BSTAT_ATA_CBLID 0X0008 -#define PBC_BSTAT_ATA_DASP 0X0010 -#define PBC_BSTAT_PWR_RDY 0X0020 -#define PBC_BSTAT_SD3_WP 0X0100 -#define PBC_BSTAT_SD2_WP 0X0200 -#define PBC_BSTAT_SD1_WP 0X0400 -#define PBC_BSTAT_SD3_DET 0X0800 -#define PBC_BSTAT_SD2_DET 0X1000 -#define PBC_BSTAT_SD1_DET 0X2000 -#define PBC_BSTAT_MS_DET 0X4000 -#define PBC_BSTAT_SD3_DET_BIT 11 -#define PBC_BSTAT_SD2_DET_BIT 12 -#define PBC_BSTAT_SD1_DET_BIT 13 -#define PBC_BSTAT_MS_DET_BIT 14 -#define MXC_BSTAT_BIT(n) ((n == MXC_CARD_SD2) ? PBC_BSTAT_SD2_DET : \ - ((n == MXC_CARD_SD3) ? PBC_BSTAT_SD3_DET : \ - ((n == MXC_CARD_SD1) ? PBC_BSTAT_SD1_DET : \ - ((n == MXC_CARD_MS) ? PBC_BSTAT_MS_DET : \ - 0x0)))) - -/* - * PBC UART Control Register bit definitions - */ -#define PBC_UCTRL_DCE_DCD 0X0001 -#define PBC_UCTRL_DCE_DSR 0X0002 -#define PBC_UCTRL_DCE_RI 0X0004 -#define PBC_UCTRL_DTE_DTR 0X0100 - -/* - * PBC UART Status Register bit definitions - */ -#define PBC_USTAT_DTE_DCD 0X0001 -#define PBC_USTAT_DTE_DSR 0X0002 -#define PBC_USTAT_DTE_RI 0X0004 -#define PBC_USTAT_DCE_DTR 0X0100 - -/* - * PBC Interupt mask register bit definitions - */ -#define PBC_INTR_SD3_R_EN_BIT 4 -#define PBC_INTR_SD2_R_EN_BIT 0 -#define PBC_INTR_SD1_R_EN_BIT 6 -#define PBC_INTR_MS_R_EN_BIT 5 -#define PBC_INTR_SD3_EN_BIT 13 -#define PBC_INTR_SD2_EN_BIT 12 -#define PBC_INTR_MS_EN_BIT 14 -#define PBC_INTR_SD1_EN_BIT 15 - -#define PBC_INTR_SD2_R_EN 0x0001 -#define PBC_INTR_LOW_BAT 0X0002 -#define PBC_INTR_OTG_FSOVER 0X0004 -#define PBC_INTR_FSH_OVER 0X0008 -#define PBC_INTR_SD3_R_EN 0x0010 -#define PBC_INTR_MS_R_EN 0x0020 -#define PBC_INTR_SD1_R_EN 0x0040 -#define PBC_INTR_FEC_INT 0X0080 -#define PBC_INTR_ENET_INT 0X0100 -#define PBC_INTR_OTGFS_INT 0X0200 -#define PBC_INTR_XUART_INT 0X0400 -#define PBC_INTR_CCTL12 0X0800 -#define PBC_INTR_SD2_EN 0x1000 -#define PBC_INTR_SD3_EN 0x2000 -#define PBC_INTR_MS_EN 0x4000 -#define PBC_INTR_SD1_EN 0x8000 - - - -/* For interrupts like xuart, enet etc */ -#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX27_PIN_TIN) -#define MXC_MAX_EXP_IO_LINES 16 - -/* - * This corresponds to PBC_INTMASK_SET_REG at offset 0x38. - * - */ -#define EXPIO_INT_LOW_BAT (MXC_EXP_IO_BASE + 1) -#define EXPIO_INT_OTG_FS_OVR (MXC_EXP_IO_BASE + 2) -#define EXPIO_INT_FSH_OVR (MXC_EXP_IO_BASE + 3) -#define EXPIO_INT_RES4 (MXC_EXP_IO_BASE + 4) -#define EXPIO_INT_RES5 (MXC_EXP_IO_BASE + 5) -#define EXPIO_INT_RES6 (MXC_EXP_IO_BASE + 6) -#define EXPIO_INT_FEC (MXC_EXP_IO_BASE + 7) -#define EXPIO_INT_ENET_INT (MXC_EXP_IO_BASE + 8) -#define EXPIO_INT_OTG_FS_INT (MXC_EXP_IO_BASE + 9) -#define EXPIO_INT_XUART_INTA (MXC_EXP_IO_BASE + 10) -#define EXPIO_INT_CCTL12_INT (MXC_EXP_IO_BASE + 11) -#define EXPIO_INT_SD2_EN (MXC_EXP_IO_BASE + 12) -#define EXPIO_INT_SD3_EN (MXC_EXP_IO_BASE + 13) -#define EXPIO_INT_MS_EN (MXC_EXP_IO_BASE + 14) -#define EXPIO_INT_SD1_EN (MXC_EXP_IO_BASE + 15) - -/* - * This is System IRQ used by CS8900A for interrupt generation - * taken from platform.h - */ -#define CS8900AIRQ EXPIO_INT_ENET_INT -/* This is I/O Base address used to access registers of CS8900A on MXC ADS */ -#define CS8900A_BASE_ADDRESS (PBC_CS8900A_IOBASE_REG + 0x300) - -#define MXC_PMIC_INT_LINE IOMUX_TO_IRQ(MX27_PIN_TOUT) - -/* -* This is used to detect if the CPLD version is for mx27 evb board rev-a -*/ -#define PBC_CPLD_VERSION_IS_REVA() \ - ((__raw_readw(PBC_VERSION_REG) & \ - (PBC_VERSION_ADS | PBC_VERSION_EVB_REVB))\ - == 0) - -/* This is used to active or inactive ata signal in CPLD . - * It is dependent with hardware - */ -#define PBC_ATA_SIGNAL_ACTIVE() \ - __raw_writew( \ - PBC_BCTRL2_ATAFEC_EN|PBC_BCTRL2_ATAFEC_SEL|PBC_BCTRL2_ATA_EN, \ - PBC_BCTRL2_CLEAR_REG) - -#define PBC_ATA_SIGNAL_INACTIVE() \ - __raw_writew( \ - PBC_BCTRL2_ATAFEC_EN|PBC_BCTRL2_ATAFEC_SEL|PBC_BCTRL2_ATA_EN, \ - PBC_BCTRL2_SET_REG) - -#define MXC_BD_LED1 (1 << 5) -#define MXC_BD_LED2 (1 << 6) -#define MXC_BD_LED_ON(led) \ - __raw_writew(led, PBC_BCTRL1_SET_REG) -#define MXC_BD_LED_OFF(led) \ - __raw_writew(led, PBC_BCTRL1_CLEAR_REG) - -/* to determine the correct external crystal reference */ -#define CKIH_27MHZ_BIT_SET (1 << 3) - -#endif /* __ASM_ARCH_MXC_BOARD_MX27ADS_H__ */ -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 13/16] arm/mx3/qong: get rid of nearly empty header 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (11 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 12/16] arm/mx2/mx27ads: " Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user Uwe Kleine-König ` (2 subsequent siblings) 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel board-qong.h only defined a single symbol that was used only once. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx3/mach-qong.c | 3 +-- arch/arm/plat-mxc/include/mach/board-qong.h | 17 ----------------- 2 files changed, 1 insertions(+), 19 deletions(-) delete mode 100644 arch/arm/plat-mxc/include/mach/board-qong.h diff --git a/arch/arm/mach-mx3/mach-qong.c b/arch/arm/mach-mx3/mach-qong.c index e5b5b83..62281ad 100644 --- a/arch/arm/mach-mx3/mach-qong.c +++ b/arch/arm/mach-mx3/mach-qong.c @@ -34,7 +34,6 @@ #include <mach/common.h> #include <asm/page.h> #include <asm/setup.h> -#include <mach/board-qong.h> #include <mach/imx-uart.h> #include <mach/iomux-mx3.h> #include "devices.h" @@ -116,7 +115,7 @@ static struct physmap_flash_data qong_flash_data = { static struct resource qong_flash_resource = { .start = MX31_CS0_BASE_ADDR, - .end = MX31_CS0_BASE_ADDR + QONG_NOR_SIZE - 1, + .end = MX31_CS0_BASE_ADDR + SZ_128M - 1, .flags = IORESOURCE_MEM, }; diff --git a/arch/arm/plat-mxc/include/mach/board-qong.h b/arch/arm/plat-mxc/include/mach/board-qong.h deleted file mode 100644 index 6d88c7a..0000000 --- a/arch/arm/plat-mxc/include/mach/board-qong.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright 2009 Ilya Yanok, Emcraft Systems Ltd, <yanok@emcraft.com> - */ - -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_ARCH_MXC_BOARD_QONG_H__ -#define __ASM_ARCH_MXC_BOARD_QONG_H__ - -/* NOR FLASH */ -#define QONG_NOR_SIZE (128*1024*1024) - -#endif /* __ASM_ARCH_MXC_BOARD_QONG_H__ */ -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (12 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 13/16] arm/mx3/qong: get rid of nearly empty header Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-25 7:10 ` Sascha Hauer ` (2 more replies) 2010-05-24 19:55 ` [PATCH 15/16] arm/mx3/mx31ads: " Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 16/16] arm/mxc: grammar fix Uwe Kleine-König 15 siblings, 3 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Moreover remove unused definitions. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx3/mach-mx31_3ds.c | 41 +++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c index f54af1e..7ec2e81 100644 --- a/arch/arm/mach-mx3/mach-mx31_3ds.c +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c @@ -41,12 +41,41 @@ #include <mach/spi.h> #include "devices.h" -/*! - * @file mx31_3ds.c - * - * @brief This file contains the board-specific initialization routines. - * - * @ingroup System +/* Definitions for components on the Debug board */ + +/* Base address of CPLD controller on the Debug board */ +#define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(MX3x_CS5_BASE_ADDR) + +/* LAN9217 ethernet base address */ +#define LAN9217_BASE_ADDR MX3x_CS5_BASE_ADDR + +/* CPLD config and interrupt base address */ +#define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000) + +/* status, interrupt */ +#define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10) +#define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38) +#define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20) +/* magic word for debug CPLD */ +#define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40) +#define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48) +/* CPLD code version */ +#define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50) +/* magic word for debug CPLD */ +#define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58) + +/* CPLD IRQ line for external uart, external ethernet etc */ +#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1) + +#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) +#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) + +#define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0) + +#define MXC_MAX_EXP_IO_LINES 16 + +/* + * This file contains the board-specific initialization routines. */ static int mx31_3ds_pins[] = { -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user 2010-05-24 19:55 ` [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user Uwe Kleine-König @ 2010-05-25 7:10 ` Sascha Hauer 2010-05-25 8:01 ` Alberto Panizzo 2010-05-25 8:20 ` [PATCH 13/16 v2] " Uwe Kleine-König 2 siblings, 0 replies; 32+ messages in thread From: Sascha Hauer @ 2010-05-25 7:10 UTC (permalink / raw) To: linux-arm-kernel On Mon, May 24, 2010 at 09:55:49PM +0200, Uwe Kleine-K?nig wrote: > Moreover remove unused definitions. The patch does not match the subject. Are there hunks missing? Sascah > > Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> > --- > arch/arm/mach-mx3/mach-mx31_3ds.c | 41 +++++++++++++++++++++++++++++++----- > 1 files changed, 35 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c > index f54af1e..7ec2e81 100644 > --- a/arch/arm/mach-mx3/mach-mx31_3ds.c > +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c > @@ -41,12 +41,41 @@ > #include <mach/spi.h> > #include "devices.h" > > -/*! > - * @file mx31_3ds.c > - * > - * @brief This file contains the board-specific initialization routines. > - * > - * @ingroup System > +/* Definitions for components on the Debug board */ > + > +/* Base address of CPLD controller on the Debug board */ > +#define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(MX3x_CS5_BASE_ADDR) > + > +/* LAN9217 ethernet base address */ > +#define LAN9217_BASE_ADDR MX3x_CS5_BASE_ADDR > + > +/* CPLD config and interrupt base address */ > +#define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000) > + > +/* status, interrupt */ > +#define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10) > +#define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38) > +#define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20) > +/* magic word for debug CPLD */ > +#define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40) > +#define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48) > +/* CPLD code version */ > +#define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50) > +/* magic word for debug CPLD */ > +#define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58) > + > +/* CPLD IRQ line for external uart, external ethernet etc */ > +#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1) > + > +#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) > +#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) > + > +#define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0) > + > +#define MXC_MAX_EXP_IO_LINES 16 > + > +/* > + * This file contains the board-specific initialization routines. > */ > > static int mx31_3ds_pins[] = { > -- > 1.7.0 > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user 2010-05-24 19:55 ` [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user Uwe Kleine-König 2010-05-25 7:10 ` Sascha Hauer @ 2010-05-25 8:01 ` Alberto Panizzo 2010-05-25 8:20 ` [PATCH 13/16 v2] " Uwe Kleine-König 2 siblings, 0 replies; 32+ messages in thread From: Alberto Panizzo @ 2010-05-25 8:01 UTC (permalink / raw) To: linux-arm-kernel Hi Uwe, On lun, 2010-05-24 at 21:55 +0200, Uwe Kleine-K?nig wrote: > Moreover remove unused definitions. > > Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> > --- > arch/arm/mach-mx3/mach-mx31_3ds.c | 41 +++++++++++++++++++++++++++++++----- > 1 files changed, 35 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c > index f54af1e..7ec2e81 100644 > --- a/arch/arm/mach-mx3/mach-mx31_3ds.c > +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c > @@ -41,12 +41,41 @@ > #include <mach/spi.h> > #include "devices.h" > > -/*! > - * @file mx31_3ds.c > - * > - * @brief This file contains the board-specific initialization routines. > - * > - * @ingroup System > +/* Definitions for components on the Debug board */ > + > +/* Base address of CPLD controller on the Debug board */ > +#define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(MX3x_CS5_BASE_ADDR) > + > +/* LAN9217 ethernet base address */ > +#define LAN9217_BASE_ADDR MX3x_CS5_BASE_ADDR > + > +/* CPLD config and interrupt base address */ > +#define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000) > + > +/* status, interrupt */ > +#define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10) > +#define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38) > +#define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20) > +/* magic word for debug CPLD */ > +#define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40) > +#define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48) > +/* CPLD code version */ > +#define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50) > +/* magic word for debug CPLD */ > +#define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58) > + > +/* CPLD IRQ line for external uart, external ethernet etc */ > +#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1) > + > +#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) > +#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) > + > +#define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0) > + > +#define MXC_MAX_EXP_IO_LINES 16 > + > +/* > + * This file contains the board-specific initialization routines. > */ > > static int mx31_3ds_pins[] = { I agree on this patch but it seems you missed to remove the header file plat-mxc/include/mach/board-mx31_3ds.h Best Regards, -- Alberto! Be Persistent! - Greg Kroah-Hartman (FOSDEM 2010) ^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 13/16 v2] arm/mx3/mx31_3ds: fold board header in its only user 2010-05-24 19:55 ` [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user Uwe Kleine-König 2010-05-25 7:10 ` Sascha Hauer 2010-05-25 8:01 ` Alberto Panizzo @ 2010-05-25 8:20 ` Uwe Kleine-König 2 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-25 8:20 UTC (permalink / raw) To: linux-arm-kernel Moreover remove unused definitions. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- Hello Sascha, hello Alberto, thanks for your feedback. This patch additionally removes board-mx31_3ds.h. Best regards Uwe arch/arm/mach-mx3/mach-mx31_3ds.c | 41 +++++++++++++-- arch/arm/plat-mxc/include/mach/board-mx31_3ds.h | 59 ----------------------- 2 files changed, 35 insertions(+), 65 deletions(-) delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx31_3ds.h diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c index f54af1e..7ec2e81 100644 --- a/arch/arm/mach-mx3/mach-mx31_3ds.c +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c @@ -41,12 +41,41 @@ #include <mach/spi.h> #include "devices.h" -/*! - * @file mx31_3ds.c - * - * @brief This file contains the board-specific initialization routines. - * - * @ingroup System +/* Definitions for components on the Debug board */ + +/* Base address of CPLD controller on the Debug board */ +#define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(MX3x_CS5_BASE_ADDR) + +/* LAN9217 ethernet base address */ +#define LAN9217_BASE_ADDR MX3x_CS5_BASE_ADDR + +/* CPLD config and interrupt base address */ +#define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000) + +/* status, interrupt */ +#define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10) +#define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38) +#define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20) +/* magic word for debug CPLD */ +#define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40) +#define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48) +/* CPLD code version */ +#define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50) +/* magic word for debug CPLD */ +#define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58) + +/* CPLD IRQ line for external uart, external ethernet etc */ +#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1) + +#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) +#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) + +#define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0) + +#define MXC_MAX_EXP_IO_LINES 16 + +/* + * This file contains the board-specific initialization routines. */ static int mx31_3ds_pins[] = { diff --git a/arch/arm/plat-mxc/include/mach/board-mx31_3ds.h b/arch/arm/plat-mxc/include/mach/board-mx31_3ds.h deleted file mode 100644 index da92933..0000000 --- a/arch/arm/plat-mxc/include/mach/board-mx31_3ds.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved. - */ - -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_ARCH_MXC_BOARD_MX31_3DS_H__ -#define __ASM_ARCH_MXC_BOARD_MX31_3DS_H__ - -/* Definitions for components on the Debug board */ - -/* Base address of CPLD controller on the Debug board */ -#define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(CS5_BASE_ADDR) - -/* LAN9217 ethernet base address */ -#define LAN9217_BASE_ADDR CS5_BASE_ADDR - -/* CPLD config and interrupt base address */ -#define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000) - -/* LED switchs */ -#define CPLD_LED_REG (CPLD_ADDR + 0x00) -/* buttons */ -#define CPLD_SWITCH_BUTTONS_REG (EXPIO_ADDR + 0x08) -/* status, interrupt */ -#define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10) -#define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38) -#define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20) -/* magic word for debug CPLD */ -#define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40) -#define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48) -/* CPLD code version */ -#define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50) -/* magic word for debug CPLD */ -#define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58) -/* module reset register */ -#define CPLD_MODULE_RESET_REG (CPLD_ADDR + 0x60) -/* CPU ID and Personality ID */ -#define CPLD_MCU_BOARD_ID_REG (CPLD_ADDR + 0x68) - -/* CPLD IRQ line for external uart, external ethernet etc */ -#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1) - -#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) -#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) - -#define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0) -#define EXPIO_INT_XUART_A (MXC_EXP_IO_BASE + 1) -#define EXPIO_INT_XUART_B (MXC_EXP_IO_BASE + 2) -#define EXPIO_INT_BUTTON_A (MXC_EXP_IO_BASE + 3) -#define EXPIO_INT_BUTTON_B (MXC_EXP_IO_BASE + 4) - -#define MXC_MAX_EXP_IO_LINES 16 - -#endif /* __ASM_ARCH_MXC_BOARD_MX31_3DS_H__ */ -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 15/16] arm/mx3/mx31ads: fold board header in its only user 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (13 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 16/16] arm/mxc: grammar fix Uwe Kleine-König 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Moreover remove unused definitions. Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- arch/arm/mach-mx3/mach-mx31ads.c | 42 +++++++- arch/arm/plat-mxc/include/mach/board-mx31ads.h | 117 ------------------------ 2 files changed, 36 insertions(+), 123 deletions(-) delete mode 100644 arch/arm/plat-mxc/include/mach/board-mx31ads.h diff --git a/arch/arm/mach-mx3/mach-mx31ads.c b/arch/arm/mach-mx3/mach-mx31ads.c index b3d1a18..6fa21fc 100644 --- a/arch/arm/mach-mx3/mach-mx31ads.c +++ b/arch/arm/mach-mx3/mach-mx31ads.c @@ -45,12 +45,42 @@ #include "devices.h" -/*! - * @file mx31ads.c - * - * @brief This file contains the board-specific initialization routines. - * - * @ingroup System +/* Base address of PBC controller */ +#define PBC_BASE_ADDRESS MX31_CS4_BASE_ADDR_VIRT +/* Offsets for the PBC Controller register */ + +/* PBC Board interrupt status register */ +#define PBC_INTSTATUS 0x000016 + +/* PBC Board interrupt current status register */ +#define PBC_INTCURR_STATUS 0x000018 + +/* PBC Interrupt mask register set address */ +#define PBC_INTMASK_SET 0x00001A + +/* PBC Interrupt mask register clear address */ +#define PBC_INTMASK_CLEAR 0x00001C + +/* External UART A */ +#define PBC_SC16C652_UARTA 0x010000 + +/* External UART B */ +#define PBC_SC16C652_UARTB 0x010010 + +#define PBC_INTSTATUS_REG (PBC_INTSTATUS + PBC_BASE_ADDRESS) +#define PBC_INTMASK_SET_REG (PBC_INTMASK_SET + PBC_BASE_ADDRESS) +#define PBC_INTMASK_CLEAR_REG (PBC_INTMASK_CLEAR + PBC_BASE_ADDRESS) +#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_4) + +#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) +#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) + +#define EXPIO_INT_XUART_INTA (MXC_EXP_IO_BASE + 10) +#define EXPIO_INT_XUART_INTB (MXC_EXP_IO_BASE + 11) + +#define MXC_MAX_EXP_IO_LINES 16 +/* + * This file contains the board-specific initialization routines. */ #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) diff --git a/arch/arm/plat-mxc/include/mach/board-mx31ads.h b/arch/arm/plat-mxc/include/mach/board-mx31ads.h deleted file mode 100644 index 095a199..0000000 --- a/arch/arm/plat-mxc/include/mach/board-mx31ads.h +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved. - */ - -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_ARCH_MXC_BOARD_MX31ADS_H__ -#define __ASM_ARCH_MXC_BOARD_MX31ADS_H__ - -#include <mach/hardware.h> - -/* Base address of PBC controller */ -#define PBC_BASE_ADDRESS MX31_CS4_BASE_ADDR_VIRT -/* Offsets for the PBC Controller register */ - -/* PBC Board status register offset */ -#define PBC_BSTAT 0x000002 - -/* PBC Board control register 1 set address */ -#define PBC_BCTRL1_SET 0x000004 - -/* PBC Board control register 1 clear address */ -#define PBC_BCTRL1_CLEAR 0x000006 - -/* PBC Board control register 2 set address */ -#define PBC_BCTRL2_SET 0x000008 - -/* PBC Board control register 2 clear address */ -#define PBC_BCTRL2_CLEAR 0x00000A - -/* PBC Board control register 3 set address */ -#define PBC_BCTRL3_SET 0x00000C - -/* PBC Board control register 3 clear address */ -#define PBC_BCTRL3_CLEAR 0x00000E - -/* PBC Board control register 4 set address */ -#define PBC_BCTRL4_SET 0x000010 - -/* PBC Board control register 4 clear address */ -#define PBC_BCTRL4_CLEAR 0x000012 - -/* PBC Board status register 1 */ -#define PBC_BSTAT1 0x000014 - -/* PBC Board interrupt status register */ -#define PBC_INTSTATUS 0x000016 - -/* PBC Board interrupt current status register */ -#define PBC_INTCURR_STATUS 0x000018 - -/* PBC Interrupt mask register set address */ -#define PBC_INTMASK_SET 0x00001A - -/* PBC Interrupt mask register clear address */ -#define PBC_INTMASK_CLEAR 0x00001C - -/* External UART A */ -#define PBC_SC16C652_UARTA 0x010000 - -/* External UART B */ -#define PBC_SC16C652_UARTB 0x010010 - -/* Ethernet Controller IO base address */ -#define PBC_CS8900A_IOBASE 0x020000 - -/* Ethernet Controller Memory base address */ -#define PBC_CS8900A_MEMBASE 0x021000 - -/* Ethernet Controller DMA base address */ -#define PBC_CS8900A_DMABASE 0x022000 - -/* External chip select 0 */ -#define PBC_XCS0 0x040000 - -/* LCD Display enable */ -#define PBC_LCD_EN_B 0x060000 - -/* Code test debug enable */ -#define PBC_CODE_B 0x070000 - -/* PSRAM memory select */ -#define PBC_PSRAM_B 0x5000000 - -#define PBC_INTSTATUS_REG (PBC_INTSTATUS + PBC_BASE_ADDRESS) -#define PBC_INTCURR_STATUS_REG (PBC_INTCURR_STATUS + PBC_BASE_ADDRESS) -#define PBC_INTMASK_SET_REG (PBC_INTMASK_SET + PBC_BASE_ADDRESS) -#define PBC_INTMASK_CLEAR_REG (PBC_INTMASK_CLEAR + PBC_BASE_ADDRESS) -#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_4) - -#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) -#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) - -#define EXPIO_INT_LOW_BAT (MXC_EXP_IO_BASE + 0) -#define EXPIO_INT_PB_IRQ (MXC_EXP_IO_BASE + 1) -#define EXPIO_INT_OTG_FS_OVR (MXC_EXP_IO_BASE + 2) -#define EXPIO_INT_FSH_OVR (MXC_EXP_IO_BASE + 3) -#define EXPIO_INT_RES4 (MXC_EXP_IO_BASE + 4) -#define EXPIO_INT_RES5 (MXC_EXP_IO_BASE + 5) -#define EXPIO_INT_RES6 (MXC_EXP_IO_BASE + 6) -#define EXPIO_INT_RES7 (MXC_EXP_IO_BASE + 7) -#define EXPIO_INT_ENET_INT (MXC_EXP_IO_BASE + 8) -#define EXPIO_INT_OTG_FS_INT (MXC_EXP_IO_BASE + 9) -#define EXPIO_INT_XUART_INTA (MXC_EXP_IO_BASE + 10) -#define EXPIO_INT_XUART_INTB (MXC_EXP_IO_BASE + 11) -#define EXPIO_INT_SYNTH_IRQ (MXC_EXP_IO_BASE + 12) -#define EXPIO_INT_CE_INT1 (MXC_EXP_IO_BASE + 13) -#define EXPIO_INT_CE_INT2 (MXC_EXP_IO_BASE + 14) -#define EXPIO_INT_RES15 (MXC_EXP_IO_BASE + 15) - -#define MXC_MAX_EXP_IO_LINES 16 - -#endif /* __ASM_ARCH_MXC_BOARD_MX31ADS_H__ */ -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 16/16] arm/mxc: grammar fix 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König ` (14 preceding siblings ...) 2010-05-24 19:55 ` [PATCH 15/16] arm/mx3/mx31ads: " Uwe Kleine-König @ 2010-05-24 19:55 ` Uwe Kleine-König 15 siblings, 0 replies; 32+ messages in thread From: Uwe Kleine-König @ 2010-05-24 19:55 UTC (permalink / raw) To: linux-arm-kernel Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> --- .../plat-mxc/include/mach/board-eukrea_cpuimx27.h | 2 +- arch/arm/plat-mxc/include/mach/board-mx31lilly.h | 2 +- arch/arm/plat-mxc/include/mach/board-mx31lite.h | 2 +- arch/arm/plat-mxc/include/mach/board-mx31moboard.h | 2 +- arch/arm/plat-mxc/include/mach/board-pcm038.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/plat-mxc/include/mach/board-eukrea_cpuimx27.h b/arch/arm/plat-mxc/include/mach/board-eukrea_cpuimx27.h index a1fd583..45b2fb8 100644 --- a/arch/arm/plat-mxc/include/mach/board-eukrea_cpuimx27.h +++ b/arch/arm/plat-mxc/include/mach/board-eukrea_cpuimx27.h @@ -25,7 +25,7 @@ #ifndef __ASSEMBLY__ /* * This CPU module needs a baseboard to work. After basic initializing - * its own devices, it calls baseboard's init function. + * its own devices, it calls the baseboard's init function. * TODO: Add your own baseboard init function and call it from * inside eukrea_cpuimx27_init(). * diff --git a/arch/arm/plat-mxc/include/mach/board-mx31lilly.h b/arch/arm/plat-mxc/include/mach/board-mx31lilly.h index eb5a502..0df71bf 100644 --- a/arch/arm/plat-mxc/include/mach/board-mx31lilly.h +++ b/arch/arm/plat-mxc/include/mach/board-mx31lilly.h @@ -31,7 +31,7 @@ enum mx31lilly_boards { /* * This CPU module needs a baseboard to work. After basic initializing - * its own devices, it calls baseboard's init function. + * its own devices, it calls the baseboard's init function. */ extern void mx31lilly_db_init(void); diff --git a/arch/arm/plat-mxc/include/mach/board-mx31lite.h b/arch/arm/plat-mxc/include/mach/board-mx31lite.h index 2b2da03..c1ad0ae 100644 --- a/arch/arm/plat-mxc/include/mach/board-mx31lite.h +++ b/arch/arm/plat-mxc/include/mach/board-mx31lite.h @@ -32,7 +32,7 @@ enum mx31lite_boards { /* * This CPU module needs a baseboard to work. After basic initializing - * its own devices, it calls baseboard's init function. + * its own devices, it calls the baseboard's init function. */ extern void mx31lite_db_init(void); diff --git a/arch/arm/plat-mxc/include/mach/board-mx31moboard.h b/arch/arm/plat-mxc/include/mach/board-mx31moboard.h index fc5fec9..bf494e3 100644 --- a/arch/arm/plat-mxc/include/mach/board-mx31moboard.h +++ b/arch/arm/plat-mxc/include/mach/board-mx31moboard.h @@ -30,7 +30,7 @@ enum mx31moboard_boards { /* * This CPU module needs a baseboard to work. After basic initializing - * its own devices, it calls baseboard's init function. + * its own devices, it calls the baseboard's init function. */ extern void mx31moboard_devboard_init(void); diff --git a/arch/arm/plat-mxc/include/mach/board-pcm038.h b/arch/arm/plat-mxc/include/mach/board-pcm038.h index 410f978..6f371e3 100644 --- a/arch/arm/plat-mxc/include/mach/board-pcm038.h +++ b/arch/arm/plat-mxc/include/mach/board-pcm038.h @@ -22,7 +22,7 @@ #ifndef __ASSEMBLY__ /* * This CPU module needs a baseboard to work. After basic initializing - * its own devices, it calls baseboard's init function. + * its own devices, it calls the baseboard's init function. * TODO: Add your own baseboard init function and call it from * inside pcm038_init(). * -- 1.7.0 ^ permalink raw reply related [flat|nested] 32+ messages in thread
end of thread, other threads:[~2010-06-24 9:36 UTC | newest] Thread overview: 32+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-05-24 19:54 [PATCH 00/16] imx patches for 2.6.36 Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 01/16] arm/mx3: rename mach-mx35pdk.c to mach-mx35_3ds.c matching its arch number Uwe Kleine-König 2010-05-24 22:20 ` Fabio Estevam 2010-05-25 7:55 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 02/16] arm/mx25: rename mach-mx25pdk.c to mach-mx25_3ds.c " Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 03/16] arm/mx1: add CONFIG_VIDEO_MX1 to defconfig Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 04/16] arm/mx1: don't use deprecated symbol names Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 05/16] arm/mx2/pca100: add #ifdef to fix compiler warning Uwe Kleine-König 2010-05-25 0:06 ` Wolfram Sang 2010-05-25 9:04 ` Uwe Kleine-König 2010-05-25 10:57 ` Wolfram Sang 2010-05-25 18:36 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 06/16] arm/mx1/scb9328: fix type of uart1_mxc_exit to make compiler happy Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 07/16] arm/mx2/mx27_3ds: document alternative names and remove empty header Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 08/16] arm/imx: remove empty and unused board headers Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 09/16] arm/mx2/mbimx27: compile fixes with CONFIG_TOUCHSCREEN_ADS7846=y Uwe Kleine-König 2010-05-24 20:10 ` Eric Bénard 2010-05-24 20:34 ` Uwe Kleine-König 2010-05-24 21:08 ` Eric Bénard 2010-06-22 16:13 ` Uwe Kleine-König 2010-06-22 17:21 ` Eric Bénard 2010-06-24 9:36 ` Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 10/16] arm/mx3/kzm_arm11_01: fold board header in its only user Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 11/16] arm/mx2/mx21ads: " Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 12/16] arm/mx2/mx27ads: " Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 13/16] arm/mx3/qong: get rid of nearly empty header Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user Uwe Kleine-König 2010-05-25 7:10 ` Sascha Hauer 2010-05-25 8:01 ` Alberto Panizzo 2010-05-25 8:20 ` [PATCH 13/16 v2] " Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 15/16] arm/mx3/mx31ads: " Uwe Kleine-König 2010-05-24 19:55 ` [PATCH 16/16] arm/mxc: grammar fix Uwe Kleine-König
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).