Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
37439a0f
Commit
37439a0f
authored
Jan 14, 2010
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'imx' of
git://git.pengutronix.de/git/ukl/linux-2.6
into mxc-master
parents
becc670a
a8dfb646
Changes
62
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
669 additions
and
1283 deletions
+669
-1283
arch/arm/configs/mx1ads_defconfig
arch/arm/configs/mx1ads_defconfig
+0
-742
arch/arm/configs/mx27_defconfig
arch/arm/configs/mx27_defconfig
+1
-1
arch/arm/mach-mx1/Makefile
arch/arm/mach-mx1/Makefile
+2
-2
arch/arm/mach-mx1/mach-mx1ads.c
arch/arm/mach-mx1/mach-mx1ads.c
+1
-1
arch/arm/mach-mx1/mach-scb9328.c
arch/arm/mach-mx1/mach-scb9328.c
+1
-1
arch/arm/mach-mx2/Kconfig
arch/arm/mach-mx2/Kconfig
+4
-4
arch/arm/mach-mx2/Makefile
arch/arm/mach-mx2/Makefile
+11
-9
arch/arm/mach-mx2/clock_imx21.c
arch/arm/mach-mx2/clock_imx21.c
+234
-2
arch/arm/mach-mx2/clock_imx27.c
arch/arm/mach-mx2/clock_imx27.c
+18
-15
arch/arm/mach-mx2/cpu_imx27.c
arch/arm/mach-mx2/cpu_imx27.c
+2
-1
arch/arm/mach-mx2/crm_regs.h
arch/arm/mach-mx2/crm_regs.h
+0
-258
arch/arm/mach-mx2/mach-cpuimx27.c
arch/arm/mach-mx2/mach-cpuimx27.c
+6
-6
arch/arm/mach-mx2/mach-imx27lite.c
arch/arm/mach-mx2/mach-imx27lite.c
+2
-2
arch/arm/mach-mx2/mach-mx21ads.c
arch/arm/mach-mx2/mach-mx21ads.c
+5
-5
arch/arm/mach-mx2/mach-mx27_3ds.c
arch/arm/mach-mx2/mach-mx27_3ds.c
+2
-2
arch/arm/mach-mx2/mach-mx27ads.c
arch/arm/mach-mx2/mach-mx27ads.c
+3
-3
arch/arm/mach-mx2/mach-mxt_td60.c
arch/arm/mach-mx2/mach-mxt_td60.c
+2
-26
arch/arm/mach-mx2/mach-pca100.c
arch/arm/mach-mx2/mach-pca100.c
+2
-2
arch/arm/mach-mx2/mach-pcm038.c
arch/arm/mach-mx2/mach-pcm038.c
+5
-7
arch/arm/mach-mx2/pcm970-baseboard.c
arch/arm/mach-mx2/pcm970-baseboard.c
+2
-2
arch/arm/mach-mx25/clock.c
arch/arm/mach-mx25/clock.c
+2
-0
arch/arm/mach-mx25/devices.c
arch/arm/mach-mx25/devices.c
+19
-0
arch/arm/mach-mx25/devices.h
arch/arm/mach-mx25/devices.h
+1
-0
arch/arm/mach-mx25/mx25pdk.c
arch/arm/mach-mx25/mx25pdk.c
+44
-2
arch/arm/mach-mx3/Kconfig
arch/arm/mach-mx3/Kconfig
+2
-1
arch/arm/mach-mx3/Makefile
arch/arm/mach-mx3/Makefile
+17
-13
arch/arm/mach-mx3/clock-imx31.c
arch/arm/mach-mx3/clock-imx31.c
+3
-2
arch/arm/mach-mx3/clock-imx35.c
arch/arm/mach-mx3/clock-imx35.c
+3
-2
arch/arm/mach-mx3/cpu.c
arch/arm/mach-mx3/cpu.c
+1
-1
arch/arm/mach-mx3/crm_regs.h
arch/arm/mach-mx3/crm_regs.h
+1
-1
arch/arm/mach-mx3/iomux-imx31.c
arch/arm/mach-mx3/iomux-imx31.c
+1
-1
arch/arm/mach-mx3/mach-armadillo5x0.c
arch/arm/mach-mx3/mach-armadillo5x0.c
+6
-6
arch/arm/mach-mx3/mach-kzm_arm11_01.c
arch/arm/mach-mx3/mach-kzm_arm11_01.c
+18
-13
arch/arm/mach-mx3/mach-mx31_3ds.c
arch/arm/mach-mx3/mach-mx31_3ds.c
+5
-10
arch/arm/mach-mx3/mach-mx31ads.c
arch/arm/mach-mx3/mach-mx31ads.c
+7
-12
arch/arm/mach-mx3/mach-mx31lilly.c
arch/arm/mach-mx3/mach-mx31lilly.c
+4
-4
arch/arm/mach-mx3/mach-mx31lite.c
arch/arm/mach-mx3/mach-mx31lite.c
+11
-12
arch/arm/mach-mx3/mach-mx31moboard.c
arch/arm/mach-mx3/mach-mx31moboard.c
+8
-3
arch/arm/mach-mx3/mach-mx35pdk.c
arch/arm/mach-mx3/mach-mx35pdk.c
+2
-2
arch/arm/mach-mx3/mach-pcm037.c
arch/arm/mach-mx3/mach-pcm037.c
+33
-15
arch/arm/mach-mx3/mach-pcm037_eet.c
arch/arm/mach-mx3/mach-pcm037_eet.c
+0
-0
arch/arm/mach-mx3/mach-pcm043.c
arch/arm/mach-mx3/mach-pcm043.c
+2
-2
arch/arm/mach-mx3/mach-qong.c
arch/arm/mach-mx3/mach-qong.c
+8
-10
arch/arm/mach-mx3/mm.c
arch/arm/mach-mx3/mm.c
+5
-0
arch/arm/mach-mx3/mx31moboard-devboard.c
arch/arm/mach-mx3/mx31moboard-devboard.c
+1
-1
arch/arm/mach-mx3/mx31moboard-marxbot.c
arch/arm/mach-mx3/mx31moboard-marxbot.c
+1
-1
arch/arm/plat-mxc/Makefile
arch/arm/plat-mxc/Makefile
+4
-0
arch/arm/plat-mxc/ehci.c
arch/arm/plat-mxc/ehci.c
+2
-2
arch/arm/plat-mxc/include/mach/board-kzmarm11.h
arch/arm/plat-mxc/include/mach/board-kzmarm11.h
+9
-9
arch/arm/plat-mxc/include/mach/board-mx31ads.h
arch/arm/plat-mxc/include/mach/board-mx31ads.h
+1
-1
arch/arm/plat-mxc/include/mach/hardware.h
arch/arm/plat-mxc/include/mach/hardware.h
+5
-0
arch/arm/plat-mxc/include/mach/iomux-mx25.h
arch/arm/plat-mxc/include/mach/iomux-mx25.h
+29
-29
arch/arm/plat-mxc/include/mach/mx1.h
arch/arm/plat-mxc/include/mach/mx1.h
+3
-3
arch/arm/plat-mxc/include/mach/mx21.h
arch/arm/plat-mxc/include/mach/mx21.h
+10
-3
arch/arm/plat-mxc/include/mach/mx25.h
arch/arm/plat-mxc/include/mach/mx25.h
+9
-16
arch/arm/plat-mxc/include/mach/mx27.h
arch/arm/plat-mxc/include/mach/mx27.h
+29
-3
arch/arm/plat-mxc/include/mach/mx2x.h
arch/arm/plat-mxc/include/mach/mx2x.h
+5
-3
arch/arm/plat-mxc/include/mach/mx31.h
arch/arm/plat-mxc/include/mach/mx31.h
+33
-0
arch/arm/plat-mxc/include/mach/mx35.h
arch/arm/plat-mxc/include/mach/mx35.h
+13
-0
arch/arm/plat-mxc/include/mach/mx3x.h
arch/arm/plat-mxc/include/mach/mx3x.h
+5
-3
arch/arm/plat-mxc/include/mach/mxc.h
arch/arm/plat-mxc/include/mach/mxc.h
+4
-3
arch/arm/plat-mxc/include/mach/uncompress.h
arch/arm/plat-mxc/include/mach/uncompress.h
+0
-3
No files found.
arch/arm/configs/mx1ads_defconfig
deleted
100644 → 0
View file @
becc670a
This diff is collapsed.
Click to expand it.
arch/arm/configs/mx27_defconfig
View file @
37439a0f
...
...
@@ -200,7 +200,7 @@ CONFIG_MACH_MX27ADS=y
CONFIG_MACH_PCM038=y
CONFIG_MACH_PCM970_BASEBOARD=y
CONFIG_MACH_MX27_3DS=y
CONFIG_MACH_MX27LITE=y
CONFIG_MACH_
I
MX27LITE=y
CONFIG_MXC_IRQ_PRIOR=y
CONFIG_MXC_PWM=y
...
...
arch/arm/mach-mx1/Makefile
View file @
37439a0f
...
...
@@ -10,5 +10,5 @@ obj-y += generic.o clock.o devices.o
obj-$(CONFIG_MX1_VIDEO)
+=
ksym_mx1.o mx1_camera_fiq.o
# Specific board support
obj-$(CONFIG_ARCH_MX1ADS)
+=
mx1ads.o
obj-$(CONFIG_MACH_SCB9328)
+=
scb9328.o
\ No newline at end of file
obj-$(CONFIG_ARCH_MX1ADS)
+=
mach-mx1ads.o
obj-$(CONFIG_MACH_SCB9328)
+=
mach-scb9328.o
arch/arm/mach-mx1/mx1ads.c
→
arch/arm/mach-mx1/m
ach-m
x1ads.c
View file @
37439a0f
/*
* arch/arm/mach-imx/mx1ads.c
* arch/arm/mach-imx/m
ach-m
x1ads.c
*
* Initially based on:
* linux-2.6.7-imx/arch/arm/mach-imx/scb9328.c
...
...
arch/arm/mach-mx1/scb9328.c
→
arch/arm/mach-mx1/
mach-
scb9328.c
View file @
37439a0f
/*
* linux/arch/arm/mach-mx1/scb9328.c
* linux/arch/arm/mach-mx1/
mach-
scb9328.c
*
* Copyright (c) 2004 Sascha Hauer <saschahauer@web.de>
* Copyright (c) 2006-2008 Juergen Beisert <jbeisert@netscape.net>
...
...
arch/arm/mach-mx2/Kconfig
View file @
37439a0f
...
...
@@ -55,7 +55,7 @@ config MACH_PCM970_BASEBOARD
endchoice
config MACH_
EUKREA_
CPUIMX27
config MACH_CPUIMX27
bool "Eukrea CPUIMX27 module"
depends on MACH_MX27
help
...
...
@@ -64,14 +64,14 @@ config MACH_EUKREA_CPUIMX27
config MACH_EUKREA_CPUIMX27_USESDHC2
bool "CPUIMX27 integrates SDHC2 module"
depends on MACH_
EUKREA_
CPUIMX27
depends on MACH_CPUIMX27
help
This adds support for the internal SDHC2 used on CPUIMX27 used
for wifi or eMMC.
choice
prompt "Baseboard"
depends on MACH_
EUKREA_
CPUIMX27
depends on MACH_CPUIMX27
default MACH_EUKREA_MBIMX27_BASEBOARD
config MACH_EUKREA_MBIMX27_BASEBOARD
...
...
@@ -90,7 +90,7 @@ config MACH_MX27_3DS
Include support for MX27PDK platform. This includes specific
configurations for the board and its peripherals.
config MACH_MX27LITE
config MACH_
I
MX27LITE
bool "LogicPD MX27 LITEKIT platform"
depends on MACH_MX27
help
...
...
arch/arm/mach-mx2/Makefile
View file @
37439a0f
...
...
@@ -5,20 +5,22 @@
# Object file lists.
obj-y
:=
generic.o devices.o serial.o
CFLAGS_generic.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
CFLAGS_devices.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
CFLAGS_serial.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-$(CONFIG_MACH_MX21)
+=
clock_imx21.o
obj-$(CONFIG_MACH_MX27)
+=
cpu_imx27.o
obj-$(CONFIG_MACH_MX27)
+=
clock_imx27.o
obj-$(CONFIG_MACH_MX21ADS)
+=
mx21ads.o
obj-$(CONFIG_MACH_MX27ADS)
+=
mx27ads.o
obj-$(CONFIG_MACH_PCM038)
+=
pcm038.o
obj-$(CONFIG_MACH_MX21ADS)
+=
m
ach-m
x21ads.o
obj-$(CONFIG_MACH_MX27ADS)
+=
m
ach-m
x27ads.o
obj-$(CONFIG_MACH_PCM038)
+=
mach-
pcm038.o
obj-$(CONFIG_MACH_PCM970_BASEBOARD)
+=
pcm970-baseboard.o
obj-$(CONFIG_MACH_MX27_3DS)
+=
m
x27pdk
.o
obj-$(CONFIG_MACH_
MX27LITE)
+=
mx27lite.o
obj-$(CONFIG_MACH_
EUKREA_CPUIMX27)
+=
eukrea_
cpuimx27.o
obj-$(CONFIG_MACH_MX27_3DS)
+=
m
ach-mx27_3ds
.o
obj-$(CONFIG_MACH_
IMX27LITE)
+=
mach-i
mx27lite.o
obj-$(CONFIG_MACH_
CPUIMX27)
+=
mach-
cpuimx27.o
obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD)
+=
eukrea_mbimx27-baseboard.o
obj-$(CONFIG_MACH_PCA100)
+=
pca100.o
obj-$(CONFIG_MACH_MXT_TD60)
+=
mxt_td60.o
obj-$(CONFIG_MACH_PCA100)
+=
mach-pca100.o
obj-$(CONFIG_MACH_MXT_TD60)
+=
mach-mxt_td60.o
arch/arm/mach-mx2/clock_imx21.c
View file @
37439a0f
...
...
@@ -23,11 +23,242 @@
#include <linux/module.h>
#include <mach/clock.h>
#include <mach/hardware.h>
#include <mach/common.h>
#include <asm/clkdev.h>
#include <asm/div64.h>
#include "crm_regs.h"
#define IO_ADDR_CCM(off) (MX21_IO_ADDRESS(MX21_CCM_BASE_ADDR + (off)))
/* Register offsets */
#define CCM_CSCR IO_ADDR_CCM(0x0)
#define CCM_MPCTL0 IO_ADDR_CCM(0x4)
#define CCM_MPCTL1 IO_ADDR_CCM(0x8)
#define CCM_SPCTL0 IO_ADDR_CCM(0xc)
#define CCM_SPCTL1 IO_ADDR_CCM(0x10)
#define CCM_OSC26MCTL IO_ADDR_CCM(0x14)
#define CCM_PCDR0 IO_ADDR_CCM(0x18)
#define CCM_PCDR1 IO_ADDR_CCM(0x1c)
#define CCM_PCCR0 IO_ADDR_CCM(0x20)
#define CCM_PCCR1 IO_ADDR_CCM(0x24)
#define CCM_CCSR IO_ADDR_CCM(0x28)
#define CCM_PMCTL IO_ADDR_CCM(0x2c)
#define CCM_PMCOUNT IO_ADDR_CCM(0x30)
#define CCM_WKGDCTL IO_ADDR_CCM(0x34)
#define CCM_CSCR_PRESC_OFFSET 29
#define CCM_CSCR_PRESC_MASK (0x7 << CCM_CSCR_PRESC_OFFSET)
#define CCM_CSCR_USB_OFFSET 26
#define CCM_CSCR_USB_MASK (0x7 << CCM_CSCR_USB_OFFSET)
#define CCM_CSCR_SD_OFFSET 24
#define CCM_CSCR_SD_MASK (0x3 << CCM_CSCR_SD_OFFSET)
#define CCM_CSCR_SPLLRES (1 << 22)
#define CCM_CSCR_MPLLRES (1 << 21)
#define CCM_CSCR_SSI2_OFFSET 20
#define CCM_CSCR_SSI2 (1 << CCM_CSCR_SSI2_OFFSET)
#define CCM_CSCR_SSI1_OFFSET 19
#define CCM_CSCR_SSI1 (1 << CCM_CSCR_SSI1_OFFSET)
#define CCM_CSCR_FIR_OFFSET 18
#define CCM_CSCR_FIR (1 << CCM_CSCR_FIR_OFFSET)
#define CCM_CSCR_SP (1 << 17)
#define CCM_CSCR_MCU (1 << 16)
#define CCM_CSCR_BCLK_OFFSET 10
#define CCM_CSCR_BCLK_MASK (0xf << CCM_CSCR_BCLK_OFFSET)
#define CCM_CSCR_IPDIV_OFFSET 9
#define CCM_CSCR_IPDIV (1 << CCM_CSCR_IPDIV_OFFSET)
#define CCM_CSCR_OSC26MDIV (1 << 4)
#define CCM_CSCR_OSC26M (1 << 3)
#define CCM_CSCR_FPM (1 << 2)
#define CCM_CSCR_SPEN (1 << 1)
#define CCM_CSCR_MPEN 1
#define CCM_MPCTL0_CPLM (1 << 31)
#define CCM_MPCTL0_PD_OFFSET 26
#define CCM_MPCTL0_PD_MASK (0xf << 26)
#define CCM_MPCTL0_MFD_OFFSET 16
#define CCM_MPCTL0_MFD_MASK (0x3ff << 16)
#define CCM_MPCTL0_MFI_OFFSET 10
#define CCM_MPCTL0_MFI_MASK (0xf << 10)
#define CCM_MPCTL0_MFN_OFFSET 0
#define CCM_MPCTL0_MFN_MASK 0x3ff
#define CCM_MPCTL1_LF (1 << 15)
#define CCM_MPCTL1_BRMO (1 << 6)
#define CCM_SPCTL0_CPLM (1 << 31)
#define CCM_SPCTL0_PD_OFFSET 26
#define CCM_SPCTL0_PD_MASK (0xf << 26)
#define CCM_SPCTL0_MFD_OFFSET 16
#define CCM_SPCTL0_MFD_MASK (0x3ff << 16)
#define CCM_SPCTL0_MFI_OFFSET 10
#define CCM_SPCTL0_MFI_MASK (0xf << 10)
#define CCM_SPCTL0_MFN_OFFSET 0
#define CCM_SPCTL0_MFN_MASK 0x3ff
#define CCM_SPCTL1_LF (1 << 15)
#define CCM_SPCTL1_BRMO (1 << 6)
#define CCM_OSC26MCTL_PEAK_OFFSET 16
#define CCM_OSC26MCTL_PEAK_MASK (0x3 << 16)
#define CCM_OSC26MCTL_AGC_OFFSET 8
#define CCM_OSC26MCTL_AGC_MASK (0x3f << 8)
#define CCM_OSC26MCTL_ANATEST_OFFSET 0
#define CCM_OSC26MCTL_ANATEST_MASK 0x3f
#define CCM_PCDR0_SSI2BAUDDIV_OFFSET 26
#define CCM_PCDR0_SSI2BAUDDIV_MASK (0x3f << 26)
#define CCM_PCDR0_SSI1BAUDDIV_OFFSET 16
#define CCM_PCDR0_SSI1BAUDDIV_MASK (0x3f << 16)
#define CCM_PCDR0_NFCDIV_OFFSET 12
#define CCM_PCDR0_NFCDIV_MASK (0xf << 12)
#define CCM_PCDR0_48MDIV_OFFSET 5
#define CCM_PCDR0_48MDIV_MASK (0x7 << CCM_PCDR0_48MDIV_OFFSET)
#define CCM_PCDR0_FIRIDIV_OFFSET 0
#define CCM_PCDR0_FIRIDIV_MASK 0x1f
#define CCM_PCDR1_PERDIV4_OFFSET 24
#define CCM_PCDR1_PERDIV4_MASK (0x3f << 24)
#define CCM_PCDR1_PERDIV3_OFFSET 16
#define CCM_PCDR1_PERDIV3_MASK (0x3f << 16)
#define CCM_PCDR1_PERDIV2_OFFSET 8
#define CCM_PCDR1_PERDIV2_MASK (0x3f << 8)
#define CCM_PCDR1_PERDIV1_OFFSET 0
#define CCM_PCDR1_PERDIV1_MASK 0x3f
#define CCM_PCCR_HCLK_CSI_OFFSET 31
#define CCM_PCCR_HCLK_CSI_REG CCM_PCCR0
#define CCM_PCCR_HCLK_DMA_OFFSET 30
#define CCM_PCCR_HCLK_DMA_REG CCM_PCCR0
#define CCM_PCCR_HCLK_BROM_OFFSET 28
#define CCM_PCCR_HCLK_BROM_REG CCM_PCCR0
#define CCM_PCCR_HCLK_EMMA_OFFSET 27
#define CCM_PCCR_HCLK_EMMA_REG CCM_PCCR0
#define CCM_PCCR_HCLK_LCDC_OFFSET 26
#define CCM_PCCR_HCLK_LCDC_REG CCM_PCCR0
#define CCM_PCCR_HCLK_SLCDC_OFFSET 25
#define CCM_PCCR_HCLK_SLCDC_REG CCM_PCCR0
#define CCM_PCCR_HCLK_USBOTG_OFFSET 24
#define CCM_PCCR_HCLK_USBOTG_REG CCM_PCCR0
#define CCM_PCCR_HCLK_BMI_OFFSET 23
#define CCM_PCCR_BMI_MASK (1 << CCM_PCCR_BMI_MASK)
#define CCM_PCCR_HCLK_BMI_REG CCM_PCCR0
#define CCM_PCCR_PERCLK4_OFFSET 22
#define CCM_PCCR_PERCLK4_REG CCM_PCCR0
#define CCM_PCCR_SLCDC_OFFSET 21
#define CCM_PCCR_SLCDC_REG CCM_PCCR0
#define CCM_PCCR_FIRI_BAUD_OFFSET 20
#define CCM_PCCR_FIRI_BAUD_MASK (1 << CCM_PCCR_FIRI_BAUD_MASK)
#define CCM_PCCR_FIRI_BAUD_REG CCM_PCCR0
#define CCM_PCCR_NFC_OFFSET 19
#define CCM_PCCR_NFC_REG CCM_PCCR0
#define CCM_PCCR_LCDC_OFFSET 18
#define CCM_PCCR_LCDC_REG CCM_PCCR0
#define CCM_PCCR_SSI1_BAUD_OFFSET 17
#define CCM_PCCR_SSI1_BAUD_REG CCM_PCCR0
#define CCM_PCCR_SSI2_BAUD_OFFSET 16
#define CCM_PCCR_SSI2_BAUD_REG CCM_PCCR0
#define CCM_PCCR_EMMA_OFFSET 15
#define CCM_PCCR_EMMA_REG CCM_PCCR0
#define CCM_PCCR_USBOTG_OFFSET 14
#define CCM_PCCR_USBOTG_REG CCM_PCCR0
#define CCM_PCCR_DMA_OFFSET 13
#define CCM_PCCR_DMA_REG CCM_PCCR0
#define CCM_PCCR_I2C1_OFFSET 12
#define CCM_PCCR_I2C1_REG CCM_PCCR0
#define CCM_PCCR_GPIO_OFFSET 11
#define CCM_PCCR_GPIO_REG CCM_PCCR0
#define CCM_PCCR_SDHC2_OFFSET 10
#define CCM_PCCR_SDHC2_REG CCM_PCCR0
#define CCM_PCCR_SDHC1_OFFSET 9
#define CCM_PCCR_SDHC1_REG CCM_PCCR0
#define CCM_PCCR_FIRI_OFFSET 8
#define CCM_PCCR_FIRI_MASK (1 << CCM_PCCR_BAUD_MASK)
#define CCM_PCCR_FIRI_REG CCM_PCCR0
#define CCM_PCCR_SSI2_IPG_OFFSET 7
#define CCM_PCCR_SSI2_REG CCM_PCCR0
#define CCM_PCCR_SSI1_IPG_OFFSET 6
#define CCM_PCCR_SSI1_REG CCM_PCCR0
#define CCM_PCCR_CSPI2_OFFSET 5
#define CCM_PCCR_CSPI2_REG CCM_PCCR0
#define CCM_PCCR_CSPI1_OFFSET 4
#define CCM_PCCR_CSPI1_REG CCM_PCCR0
#define CCM_PCCR_UART4_OFFSET 3
#define CCM_PCCR_UART4_REG CCM_PCCR0
#define CCM_PCCR_UART3_OFFSET 2
#define CCM_PCCR_UART3_REG CCM_PCCR0
#define CCM_PCCR_UART2_OFFSET 1
#define CCM_PCCR_UART2_REG CCM_PCCR0
#define CCM_PCCR_UART1_OFFSET 0
#define CCM_PCCR_UART1_REG CCM_PCCR0
#define CCM_PCCR_OWIRE_OFFSET 31
#define CCM_PCCR_OWIRE_REG CCM_PCCR1
#define CCM_PCCR_KPP_OFFSET 30
#define CCM_PCCR_KPP_REG CCM_PCCR1
#define CCM_PCCR_RTC_OFFSET 29
#define CCM_PCCR_RTC_REG CCM_PCCR1
#define CCM_PCCR_PWM_OFFSET 28
#define CCM_PCCR_PWM_REG CCM_PCCR1
#define CCM_PCCR_GPT3_OFFSET 27
#define CCM_PCCR_GPT3_REG CCM_PCCR1
#define CCM_PCCR_GPT2_OFFSET 26
#define CCM_PCCR_GPT2_REG CCM_PCCR1
#define CCM_PCCR_GPT1_OFFSET 25
#define CCM_PCCR_GPT1_REG CCM_PCCR1
#define CCM_PCCR_WDT_OFFSET 24
#define CCM_PCCR_WDT_REG CCM_PCCR1
#define CCM_PCCR_CSPI3_OFFSET 23
#define CCM_PCCR_CSPI3_REG CCM_PCCR1
#define CCM_PCCR_CSPI1_MASK (1 << CCM_PCCR_CSPI1_OFFSET)
#define CCM_PCCR_CSPI2_MASK (1 << CCM_PCCR_CSPI2_OFFSET)
#define CCM_PCCR_CSPI3_MASK (1 << CCM_PCCR_CSPI3_OFFSET)
#define CCM_PCCR_DMA_MASK (1 << CCM_PCCR_DMA_OFFSET)
#define CCM_PCCR_EMMA_MASK (1 << CCM_PCCR_EMMA_OFFSET)
#define CCM_PCCR_GPIO_MASK (1 << CCM_PCCR_GPIO_OFFSET)
#define CCM_PCCR_GPT1_MASK (1 << CCM_PCCR_GPT1_OFFSET)
#define CCM_PCCR_GPT2_MASK (1 << CCM_PCCR_GPT2_OFFSET)
#define CCM_PCCR_GPT3_MASK (1 << CCM_PCCR_GPT3_OFFSET)
#define CCM_PCCR_HCLK_BROM_MASK (1 << CCM_PCCR_HCLK_BROM_OFFSET)
#define CCM_PCCR_HCLK_CSI_MASK (1 << CCM_PCCR_HCLK_CSI_OFFSET)
#define CCM_PCCR_HCLK_DMA_MASK (1 << CCM_PCCR_HCLK_DMA_OFFSET)
#define CCM_PCCR_HCLK_EMMA_MASK (1 << CCM_PCCR_HCLK_EMMA_OFFSET)
#define CCM_PCCR_HCLK_LCDC_MASK (1 << CCM_PCCR_HCLK_LCDC_OFFSET)
#define CCM_PCCR_HCLK_SLCDC_MASK (1 << CCM_PCCR_HCLK_SLCDC_OFFSET)
#define CCM_PCCR_HCLK_USBOTG_MASK (1 << CCM_PCCR_HCLK_USBOTG_OFFSET)
#define CCM_PCCR_I2C1_MASK (1 << CCM_PCCR_I2C1_OFFSET)
#define CCM_PCCR_KPP_MASK (1 << CCM_PCCR_KPP_OFFSET)
#define CCM_PCCR_LCDC_MASK (1 << CCM_PCCR_LCDC_OFFSET)
#define CCM_PCCR_NFC_MASK (1 << CCM_PCCR_NFC_OFFSET)
#define CCM_PCCR_OWIRE_MASK (1 << CCM_PCCR_OWIRE_OFFSET)
#define CCM_PCCR_PERCLK4_MASK (1 << CCM_PCCR_PERCLK4_OFFSET)
#define CCM_PCCR_PWM_MASK (1 << CCM_PCCR_PWM_OFFSET)
#define CCM_PCCR_RTC_MASK (1 << CCM_PCCR_RTC_OFFSET)
#define CCM_PCCR_SDHC1_MASK (1 << CCM_PCCR_SDHC1_OFFSET)
#define CCM_PCCR_SDHC2_MASK (1 << CCM_PCCR_SDHC2_OFFSET)
#define CCM_PCCR_SLCDC_MASK (1 << CCM_PCCR_SLCDC_OFFSET)
#define CCM_PCCR_SSI1_BAUD_MASK (1 << CCM_PCCR_SSI1_BAUD_OFFSET)
#define CCM_PCCR_SSI1_IPG_MASK (1 << CCM_PCCR_SSI1_IPG_OFFSET)
#define CCM_PCCR_SSI2_BAUD_MASK (1 << CCM_PCCR_SSI2_BAUD_OFFSET)
#define CCM_PCCR_SSI2_IPG_MASK (1 << CCM_PCCR_SSI2_IPG_OFFSET)
#define CCM_PCCR_UART1_MASK (1 << CCM_PCCR_UART1_OFFSET)
#define CCM_PCCR_UART2_MASK (1 << CCM_PCCR_UART2_OFFSET)
#define CCM_PCCR_UART3_MASK (1 << CCM_PCCR_UART3_OFFSET)
#define CCM_PCCR_UART4_MASK (1 << CCM_PCCR_UART4_OFFSET)
#define CCM_PCCR_USBOTG_MASK (1 << CCM_PCCR_USBOTG_OFFSET)
#define CCM_PCCR_WDT_MASK (1 << CCM_PCCR_WDT_OFFSET)
#define CCM_CCSR_32KSR (1 << 15)
#define CCM_CCSR_CLKMODE1 (1 << 9)
#define CCM_CCSR_CLKMODE0 (1 << 8)
#define CCM_CCSR_CLKOSEL_OFFSET 0
#define CCM_CCSR_CLKOSEL_MASK 0x1f
#define SYS_FMCR 0x14
/* Functional Muxing Control Reg */
#define SYS_CHIP_ID 0x00
/* The offset of CHIP ID register */
static
int
_clk_enable
(
struct
clk
*
clk
)
{
...
...
@@ -1004,6 +1235,7 @@ int __init mx21_clocks_init(unsigned long lref, unsigned long href)
clk_enable
(
&
uart_clk
[
0
]);
#endif
mxc_timer_init
(
&
gpt_clk
[
0
],
IO_ADDRESS
(
GPT1_BASE_ADDR
),
MXC_INT_GPT1
);
mxc_timer_init
(
&
gpt_clk
[
0
],
MX21_IO_ADDRESS
(
MX21_GPT1_BASE_ADDR
),
MX21_INT_GPT1
);
return
0
;
}
arch/arm/mach-mx2/clock_imx27.c
View file @
37439a0f
...
...
@@ -29,21 +29,23 @@
#include <mach/common.h>
#include <mach/hardware.h>
#define IO_ADDR_CCM(off) (MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR + (off)))
/* Register offsets */
#define CCM_CSCR
(IO_ADDRESS(CCM_BASE_ADDR) +
0x0)
#define CCM_MPCTL0
(IO_ADDRESS(CCM_BASE_ADDR) +
0x4)
#define CCM_MPCTL1
(IO_ADDRESS(CCM_BASE_ADDR) +
0x8)
#define CCM_SPCTL0
(IO_ADDRESS(CCM_BASE_ADDR) + 0xC
)
#define CCM_SPCTL1
(IO_ADDRESS(CCM_BASE_ADDR) +
0x10)
#define CCM_OSC26MCTL
(IO_ADDRESS(CCM_BASE_ADDR) +
0x14)
#define CCM_PCDR0
(IO_ADDRESS(CCM_BASE_ADDR) +
0x18)
#define CCM_PCDR1
(IO_ADDRESS(CCM_BASE_ADDR) +
0x1c)
#define CCM_PCCR0
(IO_ADDRESS(CCM_BASE_ADDR) +
0x20)
#define CCM_PCCR1
(IO_ADDRESS(CCM_BASE_ADDR) +
0x24)
#define CCM_CCSR
(IO_ADDRESS(CCM_BASE_ADDR) +
0x28)
#define CCM_PMCTL
(IO_ADDRESS(CCM_BASE_ADDR) +
0x2c)
#define CCM_PMCOUNT
(IO_ADDRESS(CCM_BASE_ADDR) +
0x30)
#define CCM_WKGDCTL
(IO_ADDRESS(CCM_BASE_ADDR) +
0x34)
#define CCM_CSCR
IO_ADDR_CCM(
0x0)
#define CCM_MPCTL0
IO_ADDR_CCM(
0x4)
#define CCM_MPCTL1
IO_ADDR_CCM(
0x8)
#define CCM_SPCTL0
IO_ADDR_CCM(0xc
)
#define CCM_SPCTL1
IO_ADDR_CCM(
0x10)
#define CCM_OSC26MCTL
IO_ADDR_CCM(
0x14)
#define CCM_PCDR0
IO_ADDR_CCM(
0x18)
#define CCM_PCDR1
IO_ADDR_CCM(
0x1c)
#define CCM_PCCR0
IO_ADDR_CCM(
0x20)
#define CCM_PCCR1
IO_ADDR_CCM(
0x24)
#define CCM_CCSR
IO_ADDR_CCM(
0x28)
#define CCM_PMCTL
IO_ADDR_CCM(
0x2c)
#define CCM_PMCOUNT
IO_ADDR_CCM(
0x30)
#define CCM_WKGDCTL
IO_ADDR_CCM(
0x34)
#define CCM_CSCR_UPDATE_DIS (1 << 31)
#define CCM_CSCR_SSI2 (1 << 23)
...
...
@@ -755,7 +757,8 @@ int __init mx27_clocks_init(unsigned long fref)
clk_enable
(
&
uart1_clk
);
#endif
mxc_timer_init
(
&
gpt1_clk
,
IO_ADDRESS
(
GPT1_BASE_ADDR
),
MXC_INT_GPT1
);
mxc_timer_init
(
&
gpt1_clk
,
MX27_IO_ADDRESS
(
MX27_GPT1_BASE_ADDR
),
MX27_INT_GPT1
);
return
0
;
}
...
...
arch/arm/mach-mx2/cpu_imx27.c
View file @
37439a0f
...
...
@@ -39,7 +39,8 @@ static void query_silicon_parameter(void)
* the silicon revision very early we read it here to
* avoid any further hooks
*/
val
=
__raw_readl
(
IO_ADDRESS
(
SYSCTRL_BASE_ADDR
)
+
SYS_CHIP_ID
);
val
=
__raw_readl
(
MX27_IO_ADDRESS
(
MX27_SYSCTRL_BASE_ADDR
+
SYS_CHIP_ID
));
cpu_silicon_rev
=
(
int
)(
val
>>
28
);
cpu_partnumber
=
(
int
)((
val
>>
12
)
&
0xFFFF
);
...
...
arch/arm/mach-mx2/crm_regs.h
deleted
100644 → 0
View file @
becc670a
This diff is collapsed.
Click to expand it.
arch/arm/mach-mx2/
eukrea_
cpuimx27.c
→
arch/arm/mach-mx2/
mach-
cpuimx27.c
View file @
37439a0f
...
...
@@ -142,28 +142,28 @@ static struct i2c_board_info eukrea_cpuimx27_i2c_devices[] = {
#if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
static
struct
plat_serial8250_port
serial_platform_data
[]
=
{
{
.
mapbase
=
(
unsigned
long
)(
CS3_BASE_ADDR
+
0x200000
),
.
mapbase
=
(
unsigned
long
)(
MX27_
CS3_BASE_ADDR
+
0x200000
),
.
irq
=
IRQ_GPIOB
(
23
),
.
uartclk
=
14745600
,
.
regshift
=
1
,
.
iotype
=
UPIO_MEM
,
.
flags
=
UPF_BOOT_AUTOCONF
|
UPF_SKIP_TEST
|
UPF_IOREMAP
,
},
{
.
mapbase
=
(
unsigned
long
)(
CS3_BASE_ADDR
+
0x400000
),
.
mapbase
=
(
unsigned
long
)(
MX27_
CS3_BASE_ADDR
+
0x400000
),
.
irq
=
IRQ_GPIOB
(
22
),
.
uartclk
=
14745600
,
.
regshift
=
1
,
.
iotype
=
UPIO_MEM
,
.
flags
=
UPF_BOOT_AUTOCONF
|
UPF_SKIP_TEST
|
UPF_IOREMAP
,
},
{
.
mapbase
=
(
unsigned
long
)(
CS3_BASE_ADDR
+
0x800000
),
.
mapbase
=
(
unsigned
long
)(
MX27_
CS3_BASE_ADDR
+
0x800000
),
.
irq
=
IRQ_GPIOB
(
27
),
.
uartclk
=
14745600
,
.
regshift
=
1
,
.
iotype
=
UPIO_MEM
,
.
flags
=
UPF_BOOT_AUTOCONF
|
UPF_SKIP_TEST
|
UPF_IOREMAP
,
},
{
.
mapbase
=
(
unsigned
long
)(
CS3_BASE_ADDR
+
0x1000000
),
.
mapbase
=
(
unsigned
long
)(
MX27_
CS3_BASE_ADDR
+
0x1000000
),
.
irq
=
IRQ_GPIOB
(
30
),
.
uartclk
=
14745600
,
.
regshift
=
1
,
...
...
@@ -224,8 +224,8 @@ static struct sys_timer eukrea_cpuimx27_timer = {
};
MACHINE_START
(
CPUIMX27
,
"EUKREA CPUIMX27"
)
.
phys_io
=
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX27_
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
MX27_
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx27_map_io
,
.
init_irq
=
mx27_init_irq
,
...
...
arch/arm/mach-mx2/mx27lite.c
→
arch/arm/mach-mx2/m
ach-im
x27lite.c
View file @
37439a0f
...
...
@@ -85,8 +85,8 @@ static struct sys_timer mx27lite_timer = {
};
MACHINE_START
(
IMX27LITE
,
"LogicPD i.MX27LITE"
)
.
phys_io
=
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX27_
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
MX27_
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx27_map_io
,
.
init_irq
=
mx27_init_irq
,
...
...
arch/arm/mach-mx2/mx21ads.c
→
arch/arm/mach-mx2/m
ach-m
x21ads.c
View file @
37439a0f
...
...
@@ -118,8 +118,8 @@ static struct physmap_flash_data mx21ads_flash_data = {
};
static
struct
resource
mx21ads_flash_resource
=
{
.
start
=
CS0_BASE_ADDR
,
.
end
=
CS0_BASE_ADDR
+
0x02000000
-
1
,
.
start
=
MX21_
CS0_BASE_ADDR
,
.
end
=
MX21_
CS0_BASE_ADDR
+
0x02000000
-
1
,
.
flags
=
IORESOURCE_MEM
,
};
...
...
@@ -242,7 +242,7 @@ static struct map_desc mx21ads_io_desc[] __initdata = {
*/
{
.
virtual
=
MX21ADS_MMIO_BASE_ADDR
,
.
pfn
=
__phys_to_pfn
(
CS1_BASE_ADDR
),
.
pfn
=
__phys_to_pfn
(
MX21_
CS1_BASE_ADDR
),
.
length
=
MX21ADS_MMIO_SIZE
,
.
type
=
MT_DEVICE
,
},
...
...
@@ -284,8 +284,8 @@ static struct sys_timer mx21ads_timer = {
MACHINE_START
(
MX21ADS
,
"Freescale i.MX21ADS"
)
/* maintainer: Freescale Semiconductor, Inc. */
.
phys_io
=
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX21_
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
MX21_
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx21ads_map_io
,
.
init_irq
=
mx21_init_irq
,
...
...
arch/arm/mach-mx2/m
x27pdk
.c
→
arch/arm/mach-mx2/m
ach-mx27_3ds
.c
View file @
37439a0f
...
...
@@ -85,8 +85,8 @@ static struct sys_timer mx27pdk_timer = {
MACHINE_START
(
MX27_3DS
,
"Freescale MX27PDK"
)
/* maintainer: Freescale Semiconductor, Inc. */
.
phys_io
=
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX27_
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
MX27_
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx27_map_io
,
.
init_irq
=
mx27_init_irq
,
...
...
arch/arm/mach-mx2/mx27ads.c
→
arch/arm/mach-mx2/m
ach-m
x27ads.c
View file @
37439a0f
...
...
@@ -320,7 +320,7 @@ static struct sys_timer mx27ads_timer = {
static
struct
map_desc
mx27ads_io_desc
[]
__initdata
=
{
{
.
virtual
=
PBC_BASE_ADDRESS
,
.
pfn
=
__phys_to_pfn
(
CS4_BASE_ADDR
),
.
pfn
=
__phys_to_pfn
(
MX27_
CS4_BASE_ADDR
),
.
length
=
SZ_1M
,
.
type
=
MT_DEVICE
,
},
...
...
@@ -334,8 +334,8 @@ static void __init mx27ads_map_io(void)
MACHINE_START
(
MX27ADS
,
"Freescale i.MX27ADS"
)
/* maintainer: Freescale Semiconductor, Inc. */
.
phys_io
=
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX27_
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
MX27_
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx27ads_map_io
,
.
init_irq
=
mx27_init_irq
,
...
...
arch/arm/mach-mx2/mxt_td60.c
→
arch/arm/mach-mx2/m
ach-m
xt_td60.c
View file @
37439a0f
...
...
@@ -58,21 +58,6 @@ static unsigned int mxt_td60_pins[] __initdata = {
PE9_PF_UART3_RXD
,
PE10_PF_UART3_CTS
,
PE11_PF_UART3_RTS
,
/* UART3 */
PB26_AF_UART4_RTS
,
PB28_AF_UART4_TXD
,
PB29_AF_UART4_CTS
,
PB31_AF_UART4_RXD
,
/* UART4 */
PB18_AF_UART5_TXD
,
PB19_AF_UART5_RXD
,
PB20_AF_UART5_CTS
,
PB21_AF_UART5_RTS
,
/* UART5 */
PB10_AF_UART6_TXD
,
PB12_AF_UART6_CTS
,
PB11_AF_UART6_RXD
,
PB13_AF_UART6_RTS
,
/* FEC */
PD0_AIN_FEC_TXD0
,
PD1_AIN_FEC_TXD1
,
...
...
@@ -261,12 +246,6 @@ static struct imxuart_platform_data uart_pdata[] = {
.
flags
=
IMXUART_HAVE_RTSCTS
,
},
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
},
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
},
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
},
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
},
};
...
...
@@ -278,9 +257,6 @@ static void __init mxt_td60_board_init(void)
mxc_register_device
(
&
mxc_uart_device0
,
&
uart_pdata
[
0
]);
mxc_register_device
(
&
mxc_uart_device1
,
&
uart_pdata
[
1
]);
mxc_register_device
(
&
mxc_uart_device2
,
&
uart_pdata
[
2
]);
mxc_register_device
(
&
mxc_uart_device3
,
&
uart_pdata
[
3
]);
mxc_register_device
(
&
mxc_uart_device4
,
&
uart_pdata
[
4
]);
mxc_register_device
(
&
mxc_uart_device5
,
&
uart_pdata
[
5
]);
mxc_register_device
(
&
mxc_nand_device
,
&
mxt_td60_nand_board_info
);
i2c_register_board_info
(
0
,
mxt_td60_i2c_devices
,
...
...
@@ -308,8 +284,8 @@ static struct sys_timer mxt_td60_timer = {
MACHINE_START
(
MXT_TD60
,
"Maxtrack i-MXT TD60"
)
/* maintainer: Maxtrack Industrial */
.
phys_io
=
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX27_
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
MX27_
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx27_map_io
,
.
init_irq
=
mx27_init_irq
,
...
...
arch/arm/mach-mx2/pca100.c
→
arch/arm/mach-mx2/
mach-
pca100.c
View file @
37439a0f
...
...
@@ -233,8 +233,8 @@ static struct sys_timer pca100_timer = {
};
MACHINE_START
(
PCA100
,
"phyCARD-i.MX27"
)
.
phys_io
=
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX27_
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
MX27_
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx27_map_io
,
.
init_irq
=
mx27_init_irq
,
...
...
arch/arm/mach-mx2/pcm038.c
→
arch/arm/mach-mx2/
mach-
pcm038.c
View file @
37439a0f
...
...
@@ -108,8 +108,8 @@ static struct platdata_mtd_ram pcm038_sram_data = {
};
static
struct
resource
pcm038_sram_resource
=
{
.
start
=
CS1_BASE_ADDR
,
.
end
=
CS1_BASE_ADDR
+
512
*
1024
-
1
,
.
start
=
MX27_
CS1_BASE_ADDR
,
.
end
=
MX27_
CS1_BASE_ADDR
+
512
*
1024
-
1
,
.
flags
=
IORESOURCE_MEM
,
};
...
...
@@ -173,9 +173,7 @@ static struct platform_device *platform_devices[] __initdata = {
* setup other stuffs to access the sram. */
static
void
__init
pcm038_init_sram
(
void
)
{
__raw_writel
(
0x0000d843
,
CSCR_U
(
1
));
__raw_writel
(
0x22252521
,
CSCR_L
(
1
));
__raw_writel
(
0x22220a00
,
CSCR_A
(
1
));
mx27_setup_weimcs
(
1
,
0x0000d843
,
0x22252521
,
0x22220a00
);
}
static
struct
imxi2c_platform_data
pcm038_i2c_1_data
=
{
...
...
@@ -328,8 +326,8 @@ static struct sys_timer pcm038_timer = {
};
MACHINE_START
(
PCM038
,
"phyCORE-i.MX27"
)
.
phys_io
=
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX27_
AIPI_BASE_ADDR
,
.
io_pg_offst
=
((
MX27_
AIPI_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx27_map_io
,
.
init_irq
=
mx27_init_irq
,
...
...
arch/arm/mach-mx2/pcm970-baseboard.c
View file @
37439a0f
...
...
@@ -190,8 +190,8 @@ static struct imx_fb_platform_data pcm038_fb_data = {
static
struct
resource
pcm970_sja1000_resources
[]
=
{
{
.
start
=
CS4_BASE_ADDR
,
.
end
=
CS4_BASE_ADDR
+
0x100
-
1
,
.
start
=
MX27_
CS4_BASE_ADDR
,
.
end
=
MX27_
CS4_BASE_ADDR
+
0x100
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
IRQ_GPIOE
(
19
),
...
...
arch/arm/mach-mx25/clock.c
View file @
37439a0f
...
...
@@ -173,6 +173,7 @@ DEFINE_CLOCK(pwm4_clk, 0, CCM_CGCR2, 2, get_rate_ipg, NULL);
DEFINE_CLOCK
(
kpp_clk
,
0
,
CCM_CGCR1
,
28
,
get_rate_ipg
,
NULL
);
DEFINE_CLOCK
(
tsc_clk
,
0
,
CCM_CGCR2
,
13
,
get_rate_ipg
,
NULL
);
DEFINE_CLOCK
(
i2c_clk
,
0
,
CCM_CGCR0
,
6
,
get_rate_i2c
,
NULL
);
DEFINE_CLOCK
(
fec_clk
,
0
,
CCM_CGCR0
,
23
,
get_rate_ipg
,
NULL
);
#define _REGISTER_CLOCK(d, n, c) \
{ \
...
...
@@ -204,6 +205,7 @@ static struct clk_lookup lookups[] = {
_REGISTER_CLOCK
(
"imx-i2c.0"
,
NULL
,
i2c_clk
)
_REGISTER_CLOCK
(
"imx-i2c.1"
,
NULL
,
i2c_clk
)
_REGISTER_CLOCK
(
"imx-i2c.2"
,
NULL
,
i2c_clk
)
_REGISTER_CLOCK
(
"fec.0"
,
NULL
,
fec_clk
)
};
int
__init
mx25_clocks_init
(
unsigned
long
fref
)
...
...
arch/arm/mach-mx25/devices.c
View file @
37439a0f
...
...
@@ -419,3 +419,22 @@ int __init mxc_register_gpios(void)
return
mxc_gpio_init
(
imx_gpio_ports
,
ARRAY_SIZE
(
imx_gpio_ports
));
}
static
struct
resource
mx25_fec_resources
[]
=
{
{
.
start
=
MX25_FEC_BASE_ADDR
,
.
end
=
MX25_FEC_BASE_ADDR
+
0xfff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
MX25_INT_FEC
,
.
end
=
MX25_INT_FEC
,
.
flags
=
IORESOURCE_IRQ
,
},
};
struct
platform_device
mx25_fec_device
=
{
.
name
=
"fec"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
mx25_fec_resources
),
.
resource
=
mx25_fec_resources
,
};
arch/arm/mach-mx25/devices.h
View file @
37439a0f
...
...
@@ -17,3 +17,4 @@ extern struct platform_device mxc_keypad_device;
extern
struct
platform_device
mxc_i2c_device0
;
extern
struct
platform_device
mxc_i2c_device1
;
extern
struct
platform_device
mxc_i2c_device2
;
extern
struct
platform_device
mx25_fec_device
;
arch/arm/mach-mx25/mx25pdk.c
View file @
37439a0f
...
...
@@ -18,10 +18,11 @@
#include <linux/types.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/irq.h>
#include <linux/gpio.h>
#include <linux/
smsc911x
.h>
#include <linux/
fec
.h>
#include <linux/platform_device.h>
#include <mach/hardware.h>
...
...
@@ -35,16 +36,57 @@
#include <mach/mx25.h>
#include <mach/mxc_nand.h>
#include "devices.h"
#include <mach/iomux
-v3
.h>
#include <mach/iomux.h>
static
struct
imxuart_platform_data
uart_pdata
=
{
.
flags
=
IMXUART_HAVE_RTSCTS
,
};
static
struct
pad_desc
mx25pdk_pads
[]
=
{
MX25_PAD_FEC_MDC__FEC_MDC
,
MX25_PAD_FEC_MDIO__FEC_MDIO
,
MX25_PAD_FEC_TDATA0__FEC_TDATA0
,
MX25_PAD_FEC_TDATA1__FEC_TDATA1
,
MX25_PAD_FEC_TX_EN__FEC_TX_EN
,
MX25_PAD_FEC_RDATA0__FEC_RDATA0
,
MX25_PAD_FEC_RDATA1__FEC_RDATA1
,
MX25_PAD_FEC_RX_DV__FEC_RX_DV
,
MX25_PAD_FEC_TX_CLK__FEC_TX_CLK
,
MX25_PAD_A17__GPIO_2_3
,
/* FEC_EN, GPIO 35 */
MX25_PAD_D12__GPIO_4_8
,
/* FEC_RESET_B, GPIO 104 */
};
static
struct
fec_platform_data
mx25_fec_pdata
=
{
.
phy
=
PHY_INTERFACE_MODE_RMII
,
};
#define FEC_ENABLE_GPIO 35
#define FEC_RESET_B_GPIO 104
static
void
__init
mx25pdk_fec_reset
(
void
)
{
gpio_request
(
FEC_ENABLE_GPIO
,
"FEC PHY enable"
);
gpio_request
(
FEC_RESET_B_GPIO
,
"FEC PHY reset"
);
gpio_direction_output
(
FEC_ENABLE_GPIO
,
0
);
/* drop PHY power */
gpio_direction_output
(
FEC_RESET_B_GPIO
,
0
);
/* assert reset */
udelay
(
2
);
/* turn on PHY power and lift reset */
gpio_set_value
(
FEC_ENABLE_GPIO
,
1
);
gpio_set_value
(
FEC_RESET_B_GPIO
,
1
);
}
static
void
__init
mx25pdk_init
(
void
)
{
mxc_iomux_v3_setup_multiple_pads
(
mx25pdk_pads
,
ARRAY_SIZE
(
mx25pdk_pads
));
mxc_register_device
(
&
mxc_uart_device0
,
&
uart_pdata
);
mxc_register_device
(
&
mxc_usbh2
,
NULL
);
mx25pdk_fec_reset
();
mxc_register_device
(
&
mx25_fec_device
,
&
mx25_fec_pdata
);
}
static
void
__init
mx25pdk_timer_init
(
void
)
...
...
arch/arm/mach-mx3/Kconfig
View file @
37439a0f
...
...
@@ -49,6 +49,7 @@ config MACH_PCM037_EET
config MACH_MX31LITE
bool "Support MX31 LITEKIT (LogicPD)"
select ARCH_MX31
select MXC_ULPI if USB_ULPI
help
Include support for MX31 LITEKIT platform. This includes specific
configurations for the board and its peripherals.
...
...
@@ -63,7 +64,7 @@ config MACH_MX31_3DS
config MACH_MX31MOBOARD
bool "Support mx31moboard platforms (EPFL Mobots group)"
select ARCH_MX31
select MXC_ULPI
select MXC_ULPI
if USB_ULPI
help
Include support for mx31moboard platform. This includes specific
configurations for the board and its peripherals.
...
...
arch/arm/mach-mx3/Makefile
View file @
37439a0f
...
...
@@ -5,18 +5,22 @@
# Object file lists.
obj-y
:=
mm.o devices.o cpu.o
obj-$(CONFIG_ARCH_MX31)
+=
clock.o iomux.o
CFLAGS_mm.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
CFLAGS_devices.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
CFLAGS_cpu.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-$(CONFIG_ARCH_MX31)
+=
clock-imx31.o iomux-imx31.o
obj-$(CONFIG_ARCH_MX35)
+=
clock-imx35.o
obj-$(CONFIG_MACH_MX31ADS)
+=
mx31ads.o
obj-$(CONFIG_MACH_MX31LILLY)
+=
mx31lilly.o mx31lilly-db.o
obj-$(CONFIG_MACH_MX31LITE)
+=
mx31lite.o mx31lite-db.o
obj-$(CONFIG_MACH_PCM037)
+=
pcm037.o
obj-$(CONFIG_MACH_PCM037_EET)
+=
pcm037_eet.o
obj-$(CONFIG_MACH_MX31_3DS)
+=
mx31pdk.o
obj-$(CONFIG_MACH_MX31MOBOARD)
+=
mx31moboard.o mx31moboard-devboard.o
\
obj-$(CONFIG_MACH_MX31ADS)
+=
mach-mx31ads.o
obj-$(CONFIG_MACH_MX31LILLY)
+=
mach-mx31lilly.o mx31lilly-db.o
obj-$(CONFIG_MACH_MX31LITE)
+=
mach-mx31lite.o mx31lite-db.o
obj-$(CONFIG_MACH_PCM037)
+=
mach-pcm037.o
obj-$(CONFIG_MACH_PCM037_EET)
+=
mach-pcm037_eet.o
obj-$(CONFIG_MACH_MX31_3DS)
+=
mach-mx31_3ds.o
CFLAGS_mach-mx31_3ds.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-$(CONFIG_MACH_MX31MOBOARD)
+=
mach-mx31moboard.o mx31moboard-devboard.o
\
mx31moboard-marxbot.o
obj-$(CONFIG_MACH_QONG)
+=
qong.o
obj-$(CONFIG_MACH_PCM043)
+=
pcm043.o
obj-$(CONFIG_MACH_ARMADILLO5X0)
+=
armadillo5x0.o
obj-$(CONFIG_MACH_MX35_3DS)
+=
mx35pdk.o
obj-$(CONFIG_MACH_KZM_ARM11_01)
+=
kzmarm1
1.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)
+=
m
ach-m
x35pdk.o
obj-$(CONFIG_MACH_KZM_ARM11_01)
+=
mach-kzm_arm11_0
1.o
arch/arm/mach-mx3/clock.c
→
arch/arm/mach-mx3/clock
-imx31
.c
View file @
37439a0f
...
...
@@ -618,14 +618,15 @@ int __init mx31_clocks_init(unsigned long fref)
mx31_read_cpu_rev
();
if
(
mx31_revision
()
>=
CHIP_REV_2_0
)
{
if
(
mx31_revision
()
>=
MX31_
CHIP_REV_2_0
)
{
reg
=
__raw_readl
(
MXC_CCM_PMCR1
);
/* No PLL restart on DVFS switch; enable auto EMI handshake */
reg
|=
MXC_CCM_PMCR1_PLLRDIS
|
MXC_CCM_PMCR1_EMIRQ_EN
;
__raw_writel
(
reg
,
MXC_CCM_PMCR1
);
}
mxc_timer_init
(
&
ipg_clk
,
IO_ADDRESS
(
GPT1_BASE_ADDR
),
MXC_INT_GPT
);
mxc_timer_init
(
&
ipg_clk
,
MX31_IO_ADDRESS
(
MX31_GPT1_BASE_ADDR
),
MX31_INT_GPT
);
return
0
;
}
...
...
arch/arm/mach-mx3/clock-imx35.c
View file @
37439a0f
...
...
@@ -28,7 +28,7 @@
#include <mach/hardware.h>
#include <mach/common.h>
#define CCM_BASE
IO_ADDRESS(
CCM_BASE_ADDR)
#define CCM_BASE
MX35_IO_ADDRESS(MX35_
CCM_BASE_ADDR)
#define CCM_CCMR 0x00
#define CCM_PDR0 0x04
...
...
@@ -504,7 +504,8 @@ int __init mx35_clocks_init()
__raw_writel
((
3
<<
26
)
|
ll
,
CCM_BASE
+
CCM_CGR2
);
__raw_writel
(
0
,
CCM_BASE
+
CCM_CGR3
);
mxc_timer_init
(
&
gpt_clk
,
IO_ADDRESS
(
GPT1_BASE_ADDR
),
MXC_INT_GPT
);
mxc_timer_init
(
&
gpt_clk
,
MX35_IO_ADDRESS
(
MX35_GPT1_BASE_ADDR
),
MX35_INT_GPT
);
return
0
;
}
...
...
arch/arm/mach-mx3/cpu.c
View file @
37439a0f
...
...
@@ -41,7 +41,7 @@ void __init mx31_read_cpu_rev(void)
u32
i
,
srev
;
/* read SREV register from IIM module */
srev
=
__raw_readl
(
IO_ADDRESS
(
IIM_BASE_ADDR
)
+
MXC_IIMSREV
);
srev
=
__raw_readl
(
IO_ADDRESS
(
IIM_BASE_ADDR
+
MXC_IIMSREV
)
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
mx31_cpu_type
);
i
++
)
if
(
srev
==
mx31_cpu_type
[
i
].
srev
)
{
...
...
arch/arm/mach-mx3/crm_regs.h
View file @
37439a0f
...
...
@@ -24,7 +24,7 @@
#define CKIH_CLK_FREQ_27MHZ 27000000
#define CKIL_CLK_FREQ 32768
#define MXC_CCM_BASE
IO_ADDRESS(
CCM_BASE_ADDR)
#define MXC_CCM_BASE
MX31_IO_ADDRESS(MX31_
CCM_BASE_ADDR)
/* Register addresses */
#define MXC_CCM_CCMR (MXC_CCM_BASE + 0x00)
...
...
arch/arm/mach-mx3/iomux.c
→
arch/arm/mach-mx3/iomux
-imx31
.c
View file @
37439a0f
...
...
@@ -29,7 +29,7 @@
/*
* IOMUX register (base) addresses
*/
#define IOMUX_BASE
IO_ADDRESS(
IOMUXC_BASE_ADDR)
#define IOMUX_BASE
MX31_IO_ADDRESS(MX31_
IOMUXC_BASE_ADDR)
#define IOMUXINT_OBS1 (IOMUX_BASE + 0x000)
#define IOMUXINT_OBS2 (IOMUX_BASE + 0x004)
#define IOMUXGPR (IOMUX_BASE + 0x008)
...
...
arch/arm/mach-mx3/armadillo5x0.c
→
arch/arm/mach-mx3/
mach-
armadillo5x0.c
View file @
37439a0f
...
...
@@ -182,8 +182,8 @@ static struct physmap_flash_data armadillo5x0_nor_flash_pdata = {
static
struct
resource
armadillo5x0_nor_flash_resource
=
{
.
flags
=
IORESOURCE_MEM
,
.
start
=
CS0_BASE_ADDR
,
.
end
=
CS0_BASE_ADDR
+
SZ_64M
-
1
,
.
start
=
MX31_
CS0_BASE_ADDR
,
.
end
=
MX31_
CS0_BASE_ADDR
+
SZ_64M
-
1
,
};
static
struct
platform_device
armadillo5x0_nor_flash
=
{
...
...
@@ -311,8 +311,8 @@ static struct imxmmc_platform_data sdhc_pdata = {
*/
static
struct
resource
armadillo5x0_smc911x_resources
[]
=
{
{
.
start
=
CS3_BASE_ADDR
,
.
end
=
CS3_BASE_ADDR
+
SZ_32M
-
1
,
.
start
=
MX31_
CS3_BASE_ADDR
,
.
end
=
MX31_
CS3_BASE_ADDR
+
SZ_32M
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
IOMUX_TO_IRQ
(
MX31_PIN_GPIO1_0
),
...
...
@@ -406,8 +406,8 @@ static struct sys_timer armadillo5x0_timer = {
MACHINE_START
(
ARMADILLO5X0
,
"Armadillo-500"
)
/* Maintainer: Alberto Panizzo */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x00000100
,
.
map_io
=
mx31_map_io
,
.
init_irq
=
mx31_init_irq
,
...
...
arch/arm/mach-mx3/
kzmarm1
1.c
→
arch/arm/mach-mx3/
mach-kzm_arm11_0
1.c
View file @
37439a0f
...
...
@@ -46,13 +46,18 @@
#include "devices.h"
#define KZM_ARM11_IO_ADDRESS(x) ( \
IMX_IO_ADDRESS(x, MX31_CS4) ?: \
IMX_IO_ADDRESS(x, MX31_CS5) ?: \
MX31_IO_ADDRESS(x))
#if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
/*
* KZM-ARM11-01 has an external UART on FPGA
*/
static
struct
plat_serial8250_port
serial_platform_data
[]
=
{
{
.
membase
=
IO_ADDRESS
(
KZM_ARM11_16550
),
.
membase
=
KZM_ARM11_
IO_ADDRESS
(
KZM_ARM11_16550
),
.
mapbase
=
KZM_ARM11_16550
,
.
irq
=
IOMUX_TO_IRQ
(
MX31_PIN_GPIO1_1
),
.
irqflags
=
IRQ_TYPE_EDGE_RISING
,
...
...
@@ -102,9 +107,9 @@ static int __init kzm_init_ext_uart(void)
/*
* Unmask UART interrupt
*/
tmp
=
__raw_readb
(
IO_ADDRESS
(
KZM_ARM11_CTL1
));
tmp
=
__raw_readb
(
KZM_ARM11_
IO_ADDRESS
(
KZM_ARM11_CTL1
));
tmp
|=
0x2
;
__raw_writeb
(
tmp
,
IO_ADDRESS
(
KZM_ARM11_CTL1
));
__raw_writeb
(
tmp
,
KZM_ARM11_
IO_ADDRESS
(
KZM_ARM11_CTL1
));
return
platform_device_register
(
&
serial_device
);
}
...
...
@@ -128,8 +133,8 @@ static struct smsc911x_platform_config kzm_smsc9118_config = {
static
struct
resource
kzm_smsc9118_resources
[]
=
{
{
.
start
=
CS5_BASE_ADDR
,
.
end
=
CS5_BASE_ADDR
+
SZ_128K
-
1
,
.
start
=
MX31_
CS5_BASE_ADDR
,
.
end
=
MX31_
CS5_BASE_ADDR
+
SZ_128K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
...
...
@@ -222,15 +227,15 @@ static void __init kzm_board_init(void)
*/
static
struct
map_desc
kzm_io_desc
[]
__initdata
=
{
{
.
virtual
=
CS4_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
CS4_BASE_ADDR
),
.
length
=
CS4_SIZE
,
.
virtual
=
MX31_
CS4_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX31_
CS4_BASE_ADDR
),
.
length
=
MX31_
CS4_SIZE
,
.
type
=
MT_DEVICE
},
{
.
virtual
=
CS5_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
CS5_BASE_ADDR
),
.
length
=
CS5_SIZE
,
.
virtual
=
MX31_
CS5_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX31_
CS5_BASE_ADDR
),
.
length
=
MX31_
CS5_SIZE
,
.
type
=
MT_DEVICE
},
};
...
...
@@ -258,8 +263,8 @@ static struct sys_timer kzm_timer = {
* initialize __mach_desc_KZM_ARM11_01 data structure.
*/
MACHINE_START
(
KZM_ARM11_01
,
"Kyoto Microcomputer Co., Ltd. KZM-ARM11-01"
)
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
kzm_map_io
,
.
init_irq
=
mx31_init_irq
,
...
...
arch/arm/mach-mx3/m
x31pdk
.c
→
arch/arm/mach-mx3/m
ach-mx31_3ds
.c
View file @
37439a0f
...
...
@@ -211,14 +211,9 @@ static int __init mx31pdk_init_expio(void)
*/
static
struct
map_desc
mx31pdk_io_desc
[]
__initdata
=
{
{
.
virtual
=
SPBA0_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
SPBA0_BASE_ADDR
),
.
length
=
SPBA0_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
,
},
{
.
virtual
=
CS5_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
CS5_BASE_ADDR
),
.
length
=
CS5_SIZE
,
.
virtual
=
MX31_CS5_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX31_CS5_BASE_ADDR
),
.
length
=
MX31_CS5_SIZE
,
.
type
=
MT_DEVICE
,
},
};
...
...
@@ -261,8 +256,8 @@ static struct sys_timer mx31pdk_timer = {
*/
MACHINE_START
(
MX31_3DS
,
"Freescale MX31PDK (3DS)"
)
/* Maintainer: Freescale Semiconductor, Inc. */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx31pdk_map_io
,
.
init_irq
=
mx31_init_irq
,
...
...
arch/arm/mach-mx3/mx31ads.c
→
arch/arm/mach-mx3/m
ach-m
x31ads.c
View file @
37439a0f
...
...
@@ -60,7 +60,7 @@
static
struct
plat_serial8250_port
serial_platform_data
[]
=
{
{
.
membase
=
(
void
*
)(
PBC_BASE_ADDRESS
+
PBC_SC16C652_UARTA
),
.
mapbase
=
(
unsigned
long
)(
CS4_BASE_ADDR
+
PBC_SC16C652_UARTA
),
.
mapbase
=
(
unsigned
long
)(
MX31_
CS4_BASE_ADDR
+
PBC_SC16C652_UARTA
),
.
irq
=
EXPIO_INT_XUART_INTA
,
.
uartclk
=
14745600
,
.
regshift
=
0
,
...
...
@@ -68,7 +68,7 @@ static struct plat_serial8250_port serial_platform_data[] = {
.
flags
=
UPF_BOOT_AUTOCONF
|
UPF_SKIP_TEST
|
UPF_AUTO_IRQ
,
},
{
.
membase
=
(
void
*
)(
PBC_BASE_ADDRESS
+
PBC_SC16C652_UARTB
),
.
mapbase
=
(
unsigned
long
)(
CS4_BASE_ADDR
+
PBC_SC16C652_UARTB
),
.
mapbase
=
(
unsigned
long
)(
MX31_
CS4_BASE_ADDR
+
PBC_SC16C652_UARTB
),
.
irq
=
EXPIO_INT_XUART_INTB
,
.
uartclk
=
14745600
,
.
regshift
=
0
,
...
...
@@ -486,14 +486,9 @@ static void mxc_init_i2c(void)
*/
static
struct
map_desc
mx31ads_io_desc
[]
__initdata
=
{
{
.
virtual
=
SPBA0_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
SPBA0_BASE_ADDR
),
.
length
=
SPBA0_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
},
{
.
virtual
=
CS4_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
CS4_BASE_ADDR
),
.
length
=
CS4_SIZE
/
2
,
.
virtual
=
MX31_CS4_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX31_CS4_BASE_ADDR
),
.
length
=
MX31_CS4_SIZE
/
2
,
.
type
=
MT_DEVICE
},
};
...
...
@@ -538,8 +533,8 @@ static struct sys_timer mx31ads_timer = {
*/
MACHINE_START
(
MX31ADS
,
"Freescale MX31ADS"
)
/* Maintainer: Freescale Semiconductor, Inc. */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx31ads_map_io
,
.
init_irq
=
mx31ads_init_irq
,
...
...
arch/arm/mach-mx3/mx31lilly.c
→
arch/arm/mach-mx3/m
ach-m
x31lilly.c
View file @
37439a0f
...
...
@@ -57,8 +57,8 @@
static
struct
resource
smsc91x_resources
[]
=
{
{
.
start
=
CS4_BASE_ADDR
,
.
end
=
CS4_BASE_ADDR
+
0xffff
,
.
start
=
MX31_
CS4_BASE_ADDR
,
.
end
=
MX31_
CS4_BASE_ADDR
+
0xffff
,
.
flags
=
IORESOURCE_MEM
,
},
{
...
...
@@ -195,8 +195,8 @@ static struct sys_timer mx31lilly_timer = {
};
MACHINE_START
(
LILLY1131
,
"INCO startec LILLY-1131"
)
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx31_map_io
,
.
init_irq
=
mx31_init_irq
,
...
...
arch/arm/mach-mx3/mx31lite.c
→
arch/arm/mach-mx3/m
ach-m
x31lite.c
View file @
37439a0f
...
...
@@ -82,8 +82,8 @@ static struct smsc911x_platform_config smsc911x_config = {
static
struct
resource
smsc911x_resources
[]
=
{
{
.
start
=
CS4_BASE_ADDR
,
.
end
=
CS4_BASE_ADDR
+
0x100
,
.
start
=
MX31_
CS4_BASE_ADDR
,
.
end
=
MX31_
CS4_BASE_ADDR
+
0x100
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
IOMUX_TO_IRQ
(
MX31_PIN_SFS6
),
...
...
@@ -135,6 +135,7 @@ static struct spi_board_info mc13783_spi_dev __initdata = {
* USB
*/
#if defined(CONFIG_USB_ULPI)
#define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \
PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
...
...
@@ -180,6 +181,7 @@ static struct mxc_usbh_platform_data usbh2_pdata = {
.
portsc
=
MXC_EHCI_MODE_ULPI
|
MXC_EHCI_UTMI_8BIT
,
.
flags
=
MXC_EHCI_POWER_PINS_ENABLED
,
};
#endif
/*
* NOR flash
...
...
@@ -212,14 +214,9 @@ static struct platform_device physmap_flash_device = {
*/
static
struct
map_desc
mx31lite_io_desc
[]
__initdata
=
{
{
.
virtual
=
SPBA0_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
SPBA0_BASE_ADDR
),
.
length
=
SPBA0_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
},
{
.
virtual
=
CS4_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
CS4_BASE_ADDR
),
.
length
=
CS4_SIZE
,
.
virtual
=
MX31_CS4_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
MX31_CS4_BASE_ADDR
),
.
length
=
MX31_CS4_SIZE
,
.
type
=
MT_DEVICE
}
};
...
...
@@ -261,11 +258,13 @@ static void __init mxc_board_init(void)
mxc_register_device
(
&
mxc_spi_device1
,
&
spi1_pdata
);
spi_register_board_info
(
&
mc13783_spi_dev
,
1
);
#if defined(CONFIG_USB_ULPI)
/* USB */
usbh2_pdata
.
otg
=
otg_ulpi_create
(
&
mxc_ulpi_access_ops
,
USB_OTG_DRV_VBUS
|
USB_OTG_DRV_VBUS_EXT
);
mxc_register_device
(
&
mxc_usbh2
,
&
usbh2_pdata
);
#endif
/* SMSC9117 IRQ pin */
ret
=
gpio_request
(
IOMUX_TO_GPIO
(
MX31_PIN_SFS6
),
"sms9117-irq"
);
...
...
@@ -288,8 +287,8 @@ struct sys_timer mx31lite_timer = {
MACHINE_START
(
MX31LITE
,
"LogicPD i.MX31 SOM"
)
/* Maintainer: Freescale Semiconductor, Inc. */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx31lite_map_io
,
.
init_irq
=
mx31_init_irq
,
...
...
arch/arm/mach-mx3/mx31moboard.c
→
arch/arm/mach-mx3/m
ach-m
x31moboard.c
View file @
37439a0f
...
...
@@ -346,6 +346,8 @@ static struct fsl_usb2_platform_data usb_pdata = {
.
phy_mode
=
FSL_USB2_PHY_ULPI
,
};
#if defined(CONFIG_USB_ULPI)
#define USBH2_EN_B IOMUX_TO_GPIO(MX31_PIN_SCK6)
static
int
moboard_usbh2_hw_init
(
struct
platform_device
*
pdev
)
...
...
@@ -392,8 +394,11 @@ static int __init moboard_usbh2_init(void)
usbh2_pdata
.
otg
=
otg_ulpi_create
(
&
mxc_ulpi_access_ops
,
USB_OTG_DRV_VBUS
|
USB_OTG_DRV_VBUS_EXT
);
return
mxc_register_device
(
&
mx
31
_usbh2
,
&
usbh2_pdata
);
return
mxc_register_device
(
&
mx
c
_usbh2
,
&
usbh2_pdata
);
}
#else
static
inline
int
moboard_usbh2_init
(
void
)
{
return
0
;
}
#endif
static
struct
gpio_led
mx31moboard_leds
[]
=
{
...
...
@@ -564,8 +569,8 @@ struct sys_timer mx31moboard_timer = {
MACHINE_START
(
MX31MOBOARD
,
"EPFL Mobots mx31moboard"
)
/* Maintainer: Valentin Longchamp, EPFL Mobots group */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx31_map_io
,
.
init_irq
=
mx31_init_irq
,
...
...
arch/arm/mach-mx3/mx35pdk.c
→
arch/arm/mach-mx3/m
ach-m
x35pdk.c
View file @
37439a0f
...
...
@@ -106,8 +106,8 @@ struct sys_timer mx35pdk_timer = {
MACHINE_START
(
MX35_3DS
,
"Freescale MX35PDK"
)
/* Maintainer: Freescale Semiconductor, Inc */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
((
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX35_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
((
MX35_
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx35_map_io
,
.
init_irq
=
mx35_init_irq
,
...
...
arch/arm/mach-mx3/pcm037.c
→
arch/arm/mach-mx3/
mach-
pcm037.c
View file @
37439a0f
...
...
@@ -248,8 +248,8 @@ static struct imxuart_platform_data uart_pdata = {
static
struct
resource
smsc911x_resources
[]
=
{
{
.
start
=
CS1_BASE_ADDR
+
0x300
,
.
end
=
CS1_BASE_ADDR
+
0x300
+
SZ_64K
-
1
,
.
start
=
MX31_
CS1_BASE_ADDR
+
0x300
,
.
end
=
MX31_
CS1_BASE_ADDR
+
0x300
+
SZ_64K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
IOMUX_TO_IRQ
(
MX31_PIN_GPIO3_1
),
...
...
@@ -281,8 +281,8 @@ static struct platdata_mtd_ram pcm038_sram_data = {
};
static
struct
resource
pcm038_sram_resource
=
{
.
start
=
CS4_BASE_ADDR
,
.
end
=
CS4_BASE_ADDR
+
512
*
1024
-
1
,
.
start
=
MX31_
CS4_BASE_ADDR
,
.
end
=
MX31_
CS4_BASE_ADDR
+
512
*
1024
-
1
,
.
flags
=
IORESOURCE_MEM
,
};
...
...
@@ -322,16 +322,25 @@ static int pcm037_camera_power(struct device *dev, int on)
return
0
;
}
static
struct
i2c_board_info
pcm037_i2c_
2_devices
[]
=
{
static
struct
i2c_board_info
pcm037_i2c_
camera
[]
=
{
{
I2C_BOARD_INFO
(
"mt9t031"
,
0x5d
),
},
{
I2C_BOARD_INFO
(
"mt9v022"
,
0x48
),
},
};
static
struct
soc_camera_link
iclink
=
{
static
struct
soc_camera_link
iclink_mt9v022
=
{
.
bus_id
=
0
,
/* Must match with the camera ID */
.
board_info
=
&
pcm037_i2c_camera
[
1
],
.
i2c_adapter_id
=
2
,
.
module_name
=
"mt9v022"
,
};
static
struct
soc_camera_link
iclink_mt9t031
=
{
.
bus_id
=
0
,
/* Must match with the camera ID */
.
power
=
pcm037_camera_power
,
.
board_info
=
&
pcm037_i2c_
2_devices
[
0
],
.
board_info
=
&
pcm037_i2c_
camera
[
0
],
.
i2c_adapter_id
=
2
,
.
module_name
=
"mt9t031"
,
};
...
...
@@ -345,11 +354,19 @@ static struct i2c_board_info pcm037_i2c_devices[] = {
}
};
static
struct
platform_device
pcm037_
camera
=
{
static
struct
platform_device
pcm037_
mt9t031
=
{
.
name
=
"soc-camera-pdrv"
,
.
id
=
0
,
.
dev
=
{
.
platform_data
=
&
iclink
,
.
platform_data
=
&
iclink_mt9t031
,
},
};
static
struct
platform_device
pcm037_mt9v022
=
{
.
name
=
"soc-camera-pdrv"
,
.
id
=
1
,
.
dev
=
{
.
platform_data
=
&
iclink_mt9v022
,
},
};
...
...
@@ -449,7 +466,8 @@ static int __init pcm037_camera_alloc_dma(const size_t buf_size)
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
pcm037_flash
,
&
pcm037_sram_device
,
&
pcm037_camera
,
&
pcm037_mt9t031
,
&
pcm037_mt9v022
,
};
static
struct
ipu_platform_data
mx3_ipu_data
=
{
...
...
@@ -518,8 +536,8 @@ static struct mx3fb_platform_data mx3fb_pdata = {
static
struct
resource
pcm970_sja1000_resources
[]
=
{
{
.
start
=
CS5_BASE_ADDR
,
.
end
=
CS5_BASE_ADDR
+
0x100
-
1
,
.
start
=
MX31_
CS5_BASE_ADDR
,
.
end
=
MX31_
CS5_BASE_ADDR
+
0x100
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
IOMUX_TO_IRQ
(
IOMUX_PIN
(
48
,
105
)),
...
...
@@ -599,7 +617,7 @@ static void __init mxc_board_init(void)
if
(
!
ret
)
gpio_direction_output
(
IOMUX_TO_GPIO
(
MX31_PIN_CSI_D5
),
1
);
else
iclink
.
power
=
NULL
;
iclink
_mt9t031
.
power
=
NULL
;
if
(
!
pcm037_camera_alloc_dma
(
4
*
1024
*
1024
))
mxc_register_device
(
&
mx3_camera
,
&
camera_pdata
);
...
...
@@ -618,8 +636,8 @@ struct sys_timer pcm037_timer = {
MACHINE_START
(
PCM037
,
"Phytec Phycore pcm037"
)
/* Maintainer: Pengutronix */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx31_map_io
,
.
init_irq
=
mx31_init_irq
,
...
...
arch/arm/mach-mx3/pcm037_eet.c
→
arch/arm/mach-mx3/
mach-
pcm037_eet.c
View file @
37439a0f
File moved
arch/arm/mach-mx3/pcm043.c
→
arch/arm/mach-mx3/
mach-
pcm043.c
View file @
37439a0f
...
...
@@ -248,8 +248,8 @@ struct sys_timer pcm043_timer = {
MACHINE_START
(
PCM043
,
"Phytec Phycore pcm043"
)
/* Maintainer: Pengutronix */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
((
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX35_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
((
MX35_
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx35_map_io
,
.
init_irq
=
mx35_init_irq
,
...
...
arch/arm/mach-mx3/qong.c
→
arch/arm/mach-mx3/
mach-
qong.c
View file @
37439a0f
...
...
@@ -43,7 +43,7 @@
#define QONG_FPGA_VERSION(major, minor, rev) \
(((major & 0xF) << 12) | ((minor & 0xF) << 8) | (rev & 0xFF))
#define QONG_FPGA_BASEADDR CS1_BASE_ADDR
#define QONG_FPGA_BASEADDR
MX31_
CS1_BASE_ADDR
#define QONG_FPGA_PERIPH_SIZE (1 << 24)
#define QONG_FPGA_CTRL_BASEADDR QONG_FPGA_BASEADDR
...
...
@@ -115,8 +115,8 @@ static struct physmap_flash_data qong_flash_data = {
};
static
struct
resource
qong_flash_resource
=
{
.
start
=
CS0_BASE_ADDR
,
.
end
=
CS0_BASE_ADDR
+
QONG_NOR_SIZE
-
1
,
.
start
=
MX31_
CS0_BASE_ADDR
,
.
end
=
MX31_
CS0_BASE_ADDR
+
QONG_NOR_SIZE
-
1
,
.
flags
=
IORESOURCE_MEM
,
};
...
...
@@ -180,8 +180,8 @@ static struct platform_nand_data qong_nand_data = {
};
static
struct
resource
qong_nand_resource
=
{
.
start
=
CS3_BASE_ADDR
,
.
end
=
CS3_BASE_ADDR
+
SZ_32M
-
1
,
.
start
=
MX31_
CS3_BASE_ADDR
,
.
end
=
MX31_
CS3_BASE_ADDR
+
SZ_32M
-
1
,
.
flags
=
IORESOURCE_MEM
,
};
...
...
@@ -198,9 +198,7 @@ static struct platform_device qong_nand_device = {
static
void
__init
qong_init_nand_mtd
(
void
)
{
/* init CS */
__raw_writel
(
0x00004f00
,
CSCR_U
(
3
));
__raw_writel
(
0x20013b31
,
CSCR_L
(
3
));
__raw_writel
(
0x00020800
,
CSCR_A
(
3
));
mx31_setup_weimcs
(
3
,
0x00004f00
,
0x20013b31
,
0x00020800
);
mxc_iomux_set_gpr
(
MUX_SDCTL_CSD1_SEL
,
true
);
/* enable pin */
...
...
@@ -275,8 +273,8 @@ static struct sys_timer qong_timer = {
MACHINE_START
(
QONG
,
"Dave/DENX QongEVB-LITE"
)
/* Maintainer: DENX Software Engineering GmbH */
.
phys_io
=
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
(
AIPS1_BASE_ADDR_VIRT
)
>>
18
)
&
0xfffc
,
.
phys_io
=
MX31_
AIPS1_BASE_ADDR
,
.
io_pg_offst
=
(
MX31_AIPS1_BASE_ADDR_VIRT
>>
18
)
&
0xfffc
,
.
boot_params
=
PHYS_OFFSET
+
0x100
,
.
map_io
=
mx31_map_io
,
.
init_irq
=
mx31_init_irq
,
...
...
arch/arm/mach-mx3/mm.c
View file @
37439a0f
...
...
@@ -65,6 +65,11 @@ static struct map_desc mxc_io_desc[] __initdata = {
.
pfn
=
__phys_to_pfn
(
AIPS2_BASE_ADDR
),
.
length
=
AIPS2_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
},
{
.
virtual
=
SPBA0_BASE_ADDR_VIRT
,
.
pfn
=
__phys_to_pfn
(
SPBA0_BASE_ADDR
),
.
length
=
SPBA0_SIZE
,
.
type
=
MT_DEVICE_NONSHARED
},
};
...
...
arch/arm/mach-mx3/mx31moboard-devboard.c
View file @
37439a0f
...
...
@@ -179,7 +179,7 @@ static int __init devboard_usbh1_init(void)
usbh1_pdata
.
otg
=
otg
;
return
mxc_register_device
(
&
mx
31
_usbh1
,
&
usbh1_pdata
);
return
mxc_register_device
(
&
mx
c
_usbh1
,
&
usbh1_pdata
);
}
/*
...
...
arch/arm/mach-mx3/mx31moboard-marxbot.c
View file @
37439a0f
...
...
@@ -294,7 +294,7 @@ static int __init marxbot_usbh1_init(void)
usbh1_pdata
.
otg
=
otg
;
return
mxc_register_device
(
&
mx
31
_usbh1
,
&
usbh1_pdata
);
return
mxc_register_device
(
&
mx
c
_usbh1
,
&
usbh1_pdata
);
}
/*
...
...
arch/arm/plat-mxc/Makefile
View file @
37439a0f
...
...
@@ -7,9 +7,13 @@ obj-y := irq.o clock.o gpio.o time.o devices.o cpu.o system.o
obj-$(CONFIG_ARCH_MX1)
+=
iomux-mx1-mx2.o dma-mx1-mx2.o
obj-$(CONFIG_ARCH_MX2)
+=
iomux-mx1-mx2.o dma-mx1-mx2.o
CFLAGS_iomux-mx1-mx2.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
CFLAGS_dma-mx1-mx2.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-$(CONFIG_ARCH_MXC_IOMUX_V3)
+=
iomux-v3.o
obj-$(CONFIG_MXC_PWM)
+=
pwm.o
obj-$(CONFIG_USB_EHCI_MXC)
+=
ehci.o
obj-$(CONFIG_MXC_ULPI)
+=
ulpi.o
obj-$(CONFIG_ARCH_MXC_AUDMUX_V1)
+=
audmux-v1.o
CFLAGS_audmux-v1.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-$(CONFIG_ARCH_MXC_AUDMUX_V2)
+=
audmux-v2.o
CFLAGS_audmux-v2.o
=
-DIMX_NEEDS_DEPRECATED_SYMBOLS
arch/arm/plat-mxc/ehci.c
View file @
37439a0f
...
...
@@ -43,7 +43,7 @@ int mxc_set_usbcontrol(int port, unsigned int flags)
unsigned
int
v
;
if
(
cpu_is_mx31
())
{
v
=
readl
(
IO_ADDRESS
(
MX31_OTG_BASE_ADDR
+
v
=
readl
(
MX31_
IO_ADDRESS
(
MX31_OTG_BASE_ADDR
+
USBCTRL_OTGBASE_OFFSET
));
switch
(
port
)
{
...
...
@@ -79,7 +79,7 @@ int mxc_set_usbcontrol(int port, unsigned int flags)
break
;
}
writel
(
v
,
IO_ADDRESS
(
MX31_OTG_BASE_ADDR
+
writel
(
v
,
MX31_
IO_ADDRESS
(
MX31_OTG_BASE_ADDR
+
USBCTRL_OTGBASE_OFFSET
));
return
0
;
}
...
...
arch/arm/plat-mxc/include/mach/board-kzmarm11.h
View file @
37439a0f
...
...
@@ -21,19 +21,19 @@
/*
* KZM-ARM11-01 Board Control Registers on FPGA
*/
#define KZM_ARM11_CTL1 (CS4_BASE_ADDR + 0x1000)
#define KZM_ARM11_CTL2 (CS4_BASE_ADDR + 0x1001)
#define KZM_ARM11_RSW1 (CS4_BASE_ADDR + 0x1002)
#define KZM_ARM11_BACK_LIGHT (CS4_BASE_ADDR + 0x1004)
#define KZM_ARM11_FPGA_REV (CS4_BASE_ADDR + 0x1008)
#define KZM_ARM11_7SEG_LED (CS4_BASE_ADDR + 0x1010)
#define KZM_ARM11_LEDS (CS4_BASE_ADDR + 0x1020)
#define KZM_ARM11_DIPSW2 (CS4_BASE_ADDR + 0x1003)
#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 (CS4_BASE_ADDR + 0x1050)
#define KZM_ARM11_16550 (
MX31_
CS4_BASE_ADDR + 0x1050)
#endif
/* __ARM_ARCH_BOARD_KZM_ARM11_H */
arch/arm/plat-mxc/include/mach/board-mx31ads.h
View file @
37439a0f
...
...
@@ -14,7 +14,7 @@
#include <mach/hardware.h>
/* Base address of PBC controller */
#define PBC_BASE_ADDRESS
IO_ADDRESS(CS4_BASE_ADDR)
#define PBC_BASE_ADDRESS
MX31_CS4_BASE_ADDR_VIRT
/* Offsets for the PBC Controller register */
/* PBC Board status register offset */
...
...
arch/arm/plat-mxc/include/mach/hardware.h
View file @
37439a0f
...
...
@@ -22,6 +22,11 @@
#include <asm/sizes.h>
#define IMX_IO_ADDRESS(addr, module) \
((void __force __iomem *) \
(((unsigned long)((addr) - (module ## _BASE_ADDR)) < module ## _SIZE) ?\
(addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0))
#ifdef CONFIG_ARCH_MX3
#include <mach/mx3x.h>
#include <mach/mx31.h>
...
...
arch/arm/plat-mxc/include/mach/iomux-mx25.h
View file @
37439a0f
This diff is collapsed.
Click to expand it.
arch/arm/plat-mxc/include/mach/mx1.h
View file @
37439a0f
...
...
@@ -9,8 +9,8 @@
* published by the Free Software Foundation.
*/
#ifndef __
ASM_ARCH_MXC
_MX1_H__
#define __
ASM_ARCH_MXC
_MX1_H__
#ifndef __
MACH
_MX1_H__
#define __
MACH
_MX1_H__
#include <mach/vmalloc.h>
...
...
@@ -161,4 +161,4 @@
#define DMA_REQ_UART1_T 30
#define DMA_REQ_UART1_R 31
#endif
/*
__ASM_ARCH_MXC
_MX1_H__ */
#endif
/*
ifndef __MACH
_MX1_H__ */
arch/arm/plat-mxc/include/mach/mx21.h
View file @
37439a0f
...
...
@@ -22,8 +22,8 @@
* MA 02110-1301, USA.
*/
#ifndef __
ASM_ARCH_MXC
_MX21_H__
#define __
ASM_ARCH_MXC
_MX21_H__
#ifndef __
MACH
_MX21_H__
#define __
MACH
_MX21_H__
#define MX21_AIPI_BASE_ADDR 0x10000000
#define MX21_AIPI_BASE_ADDR_VIRT 0xf4000000
...
...
@@ -92,6 +92,11 @@
#define MX21_IRAM_BASE_ADDR 0xffffe800
/* internal ram */
#define MX21_IO_ADDRESS(x) ( \
IMX_IO_ADDRESS(x, MX21_AIPI) ?: \
IMX_IO_ADDRESS(x, MX21_SAHB1) ?: \
IMX_IO_ADDRESS(x, MX21_X_MEMC))
/* fixed interrupt numbers */
#define MX21_INT_CSPI3 6
#define MX21_INT_GPIO 8
...
...
@@ -179,6 +184,7 @@
#define MX21_DMA_REQ_CSI_STAT 30
#define MX21_DMA_REQ_CSI_RX 31
#ifdef IMX_NEEDS_DEPRECATED_SYMBOLS
/* these should go away */
#define SDRAM_BASE_ADDR MX21_SDRAM_BASE_ADDR
#define CSD1_BASE_ADDR MX21_CSD1_BASE_ADDR
...
...
@@ -211,5 +217,6 @@
#define DMA_REQ_FIRI_RX MX21_DMA_REQ_FIRI_RX
#define DMA_REQ_BMI_TX MX21_DMA_REQ_BMI_TX
#define DMA_REQ_BMI_RX MX21_DMA_REQ_BMI_RX
#endif
#endif
/*
__ASM_ARCH_MXC
_MX21_H__ */
#endif
/*
ifndef __MACH
_MX21_H__ */
arch/arm/plat-mxc/include/mach/mx25.h
View file @
37439a0f
...
...
@@ -22,23 +22,16 @@
#define MX25_GPIO3_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xa4000)
#define MX25_GPIO4_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0x9c000)
#define MX25_AIPS1_IO_ADDRESS(x) \
(((x) - MX25_AIPS1_BASE_ADDR) + MX25_AIPS1_BASE_ADDR_VIRT)
#define MX25_AIPS2_IO_ADDRESS(x) \
(((x) - MX25_AIPS2_BASE_ADDR) + MX25_AIPS2_BASE_ADDR_VIRT)
#define MX25_AVIC_IO_ADDRESS(x) \
(((x) - MX25_AVIC_BASE_ADDR) + MX25_AVIC_BASE_ADDR_VIRT)
#define __in_range(addr, name) ((addr) >= name##_BASE_ADDR && (addr) < name##_BASE_ADDR + name##_SIZE)
#define MX25_IO_ADDRESS(x) \
(void __force __iomem *) \
(__in_range(x, MX25_AIPS1) ? MX25_AIPS1_IO_ADDRESS(x) : \
__in_range(x, MX25_AIPS2) ? MX25_AIPS2_IO_ADDRESS(x) : \
__in_range(x, MX25_AVIC) ? MX25_AVIC_IO_ADDRESS(x) : \
0xDEADBEEF)
#define MX25_IO_ADDRESS(x) ( \
IMX_IO_ADDRESS(x, MX25_AIPS1) ?: \
IMX_IO_ADDRESS(x, MX25_AIPS2) ?: \
IMX_IO_ADDRESS(x, MX25_AVIC))
#define UART1_BASE_ADDR 0x43f90000
#define UART2_BASE_ADDR 0x43f94000
#endif
/* __MACH_MX25_H__ */
#define MX25_FEC_BASE_ADDR 0x50038000
#define MX25_INT_FEC 57
#endif
/* ifndef __MACH_MX25_H__ */
arch/arm/plat-mxc/include/mach/mx27.h
View file @
37439a0f
...
...
@@ -21,8 +21,12 @@
* MA 02110-1301, USA.
*/
#ifndef __ASM_ARCH_MXC_MX27_H__
#define __ASM_ARCH_MXC_MX27_H__
#ifndef __MACH_MX27_H__
#define __MACH_MX27_H__
#ifndef __ASSEMBLER__
#include <linux/io.h>
#endif
#define MX27_AIPI_BASE_ADDR 0x10000000
#define MX27_AIPI_BASE_ADDR_VIRT 0xf4000000
...
...
@@ -109,11 +113,31 @@
#define MX27_M3IF_BASE_ADDR (MX27_X_MEMC_BASE_ADDR + 0x3000)
#define MX27_PCMCIA_CTL_BASE_ADDR (MX27_X_MEMC_BASE_ADDR + 0x4000)
#define MX27_WEIM_CSCRx_BASE_ADDR(cs) (MX27_WEIM_BASE_ADDR + (cs) * 0x10)
#define MX27_WEIM_CSCRxU(cs) (MX27_WEIM_CSCRx_BASE_ADDR(cs))
#define MX27_WEIM_CSCRxL(cs) (MX27_WEIM_CSCRx_BASE_ADDR(cs) + 0x4)
#define MX27_WEIM_CSCRxA(cs) (MX27_WEIM_CSCRx_BASE_ADDR(cs) + 0x8)
#define MX27_PCMCIA_MEM_BASE_ADDR 0xdc000000
/* IRAM */
#define MX27_IRAM_BASE_ADDR 0xffff4c00
/* internal ram */
#define MX27_IO_ADDRESS(x) ( \
IMX_IO_ADDRESS(x, MX27_AIPI) ?: \
IMX_IO_ADDRESS(x, MX27_SAHB1) ?: \
IMX_IO_ADDRESS(x, MX27_X_MEMC))
#ifndef __ASSEMBLER__
static
inline
void
mx27_setup_weimcs
(
size_t
cs
,
unsigned
upper
,
unsigned
lower
,
unsigned
addional
)
{
__raw_writel
(
upper
,
MX27_IO_ADDRESS
(
MX27_WEIM_CSCRxU
(
cs
)));
__raw_writel
(
lower
,
MX27_IO_ADDRESS
(
MX27_WEIM_CSCRxL
(
cs
)));
__raw_writel
(
addional
,
MX27_IO_ADDRESS
(
MX27_WEIM_CSCRxA
(
cs
)));
}
#endif
/* fixed interrupt numbers */
#define MX27_INT_I2C2 1
#define MX27_INT_GPT6 2
...
...
@@ -225,6 +249,7 @@
extern
int
mx27_revision
(
void
);
#endif
#ifdef IMX_NEEDS_DEPRECATED_SYMBOLS
/* these should go away */
#define MSHC_BASE_ADDR MX27_MSHC_BASE_ADDR
#define GPT5_BASE_ADDR MX27_GPT5_BASE_ADDR
...
...
@@ -292,5 +317,6 @@ extern int mx27_revision(void);
#define DMA_REQ_UART6_RX MX27_DMA_REQ_UART6_RX
#define DMA_REQ_SDHC3 MX27_DMA_REQ_SDHC3
#define DMA_REQ_NFC MX27_DMA_REQ_NFC
#endif
#endif
/*
__ASM_ARCH_MXC
_MX27_H__ */
#endif
/*
ifndef __MACH
_MX27_H__ */
arch/arm/plat-mxc/include/mach/mx2x.h
View file @
37439a0f
...
...
@@ -20,8 +20,8 @@
* MA 02110-1301, USA.
*/
#ifndef __
ASM_ARCH_MXC
_MX2x_H__
#define __
ASM_ARCH_MXC
_MX2x_H__
#ifndef __
MACH
_MX2x_H__
#define __
MACH
_MX2x_H__
/* The following addresses are common between i.MX21 and i.MX27 */
...
...
@@ -176,6 +176,7 @@
#define MX2x_DMA_REQ_CSI_STAT 30
#define MX2x_DMA_REQ_CSI_RX 31
#ifdef IMX_NEEDS_DEPRECATED_SYMBOLS
/* these should go away */
#define AIPI_BASE_ADDR MX2x_AIPI_BASE_ADDR
#define AIPI_BASE_ADDR_VIRT MX2x_AIPI_BASE_ADDR_VIRT
...
...
@@ -287,5 +288,6 @@
#define DMA_REQ_UART1_TX MX2x_DMA_REQ_UART1_TX
#define DMA_REQ_CSI_STAT MX2x_DMA_REQ_CSI_STAT
#define DMA_REQ_CSI_RX MX2x_DMA_REQ_CSI_RX
#endif
#endif
/*
__ASM_ARCH_MXC
_MX2x_H__ */
#endif
/*
ifndef __MACH
_MX2x_H__ */
arch/arm/plat-mxc/include/mach/mx31.h
View file @
37439a0f
#ifndef __MACH_MX31_H__
#define __MACH_MX31_H__
#ifndef __ASSEMBLER__
#include <linux/io.h>
#endif
/*
* IRAM
*/
...
...
@@ -107,8 +114,30 @@
#define MX31_EMI_CTL_BASE_ADDR (MX31_X_MEMC_BASE_ADDR + 0x4000)
#define MX31_PCMCIA_CTL_BASE_ADDR MX31_EMI_CTL_BASE_ADDR
#define MX31_WEIM_CSCRx_BASE_ADDR(cs) (MX31_WEIM_BASE_ADDR + (cs) * 0x10)
#define MX31_WEIM_CSCRxU(cs) (MX31_WEIM_CSCRx_BASE_ADDR(cs))
#define MX31_WEIM_CSCRxL(cs) (MX31_WEIM_CSCRx_BASE_ADDR(cs) + 0x4)
#define MX31_WEIM_CSCRxA(cs) (MX31_WEIM_CSCRx_BASE_ADDR(cs) + 0x8)
#define MX31_PCMCIA_MEM_BASE_ADDR 0xbc000000
#define MX31_IO_ADDRESS(x) ( \
IMX_IO_ADDRESS(x, MX31_AIPS1) ?: \
IMX_IO_ADDRESS(x, MX31_AIPS2) ?: \
IMX_IO_ADDRESS(x, MX31_AVIC) ?: \
IMX_IO_ADDRESS(x, MX31_X_MEMC) ?: \
IMX_IO_ADDRESS(x, MX31_SPBA0))
#ifndef __ASSEMBLER__
static
inline
void
mx31_setup_weimcs
(
size_t
cs
,
unsigned
upper
,
unsigned
lower
,
unsigned
addional
)
{
__raw_writel
(
upper
,
MX31_IO_ADDRESS
(
MX31_WEIM_CSCRxU
(
cs
)));
__raw_writel
(
lower
,
MX31_IO_ADDRESS
(
MX31_WEIM_CSCRxL
(
cs
)));
__raw_writel
(
addional
,
MX31_IO_ADDRESS
(
MX31_WEIM_CSCRxA
(
cs
)));
}
#endif
#define MX31_INT_I2C3 3
#define MX31_INT_I2C2 4
#define MX31_INT_MPEG4_ENCODER 5
...
...
@@ -186,6 +215,7 @@
#define MX31_SYSTEM_REV_MIN MX31_CHIP_REV_1_0
#define MX31_SYSTEM_REV_NUM 3
#ifdef IMX_NEEDS_DEPRECATED_SYMBOLS
/* these should go away */
#define ATA_BASE_ADDR MX31_ATA_BASE_ADDR
#define UART4_BASE_ADDR MX31_UART4_BASE_ADDR
...
...
@@ -216,3 +246,6 @@
#define MXC_INT_UART5 MX31_INT_UART5
#define MXC_INT_CCM MX31_INT_CCM
#define MXC_INT_PCMCIA MX31_INT_PCMCIA
#endif
#endif
/* ifndef __MACH_MX31_H__ */
arch/arm/plat-mxc/include/mach/mx35.h
View file @
37439a0f
#ifndef __MACH_MX35_H__
#define __MACH_MX35_H__
/*
* IRAM
*/
...
...
@@ -104,6 +106,13 @@
#define MX35_NFC_BASE_ADDR 0xbb000000
#define MX35_PCMCIA_MEM_BASE_ADDR 0xbc000000
#define MX35_IO_ADDRESS(x) ( \
IMX_IO_ADDRESS(x, MX35_AIPS1) ?: \
IMX_IO_ADDRESS(x, MX35_AIPS2) ?: \
IMX_IO_ADDRESS(x, MX35_AVIC) ?: \
IMX_IO_ADDRESS(x, MX35_X_MEMC) ?: \
IMX_IO_ADDRESS(x, MX35_SPBA0))
/*
* Interrupt numbers
*/
...
...
@@ -180,6 +189,7 @@
#define MX35_SYSTEM_REV_MIN MX35_CHIP_REV_1_0
#define MX35_SYSTEM_REV_NUM 3
#ifdef IMX_NEEDS_DEPRECATED_SYMBOLS
/* these should go away */
#define MXC_FEC_BASE_ADDR MX35_FEC_BASE_ADDR
#define MXC_INT_OWIRE MX35_INT_OWIRE
...
...
@@ -195,3 +205,6 @@
#define MXC_INT_MLB MX35_INT_MLB
#define MXC_INT_SPDIF MX35_INT_SPDIF
#define MXC_INT_FEC MX35_INT_FEC
#endif
#endif
/* ifndef __MACH_MX35_H__ */
arch/arm/plat-mxc/include/mach/mx3x.h
View file @
37439a0f
...
...
@@ -8,8 +8,8 @@
* published by the Free Software Foundation.
*/
#ifndef __
ASM_ARCH_MXC_MX31
_H__
#define __
ASM_ARCH_MXC_MX31
_H__
#ifndef __
MACH_MX3x
_H__
#define __
MACH_MX3x
_H__
/*
* MX31 memory map:
...
...
@@ -269,6 +269,7 @@ static inline int mx31_revision(void)
}
#endif
#ifdef IMX_NEEDS_DEPRECATED_SYMBOLS
/* these should go away */
#define L2CC_BASE_ADDR MX3x_L2CC_BASE_ADDR
#define L2CC_SIZE MX3x_L2CC_SIZE
...
...
@@ -401,5 +402,6 @@ static inline int mx31_revision(void)
#define CHIP_REV_3_2 MX3x_CHIP_REV_3_2
#define SYSTEM_REV_MIN MX3x_SYSTEM_REV_MIN
#define SYSTEM_REV_NUM MX3x_SYSTEM_REV_NUM
#endif
#endif
/*
__ASM_ARCH_MXC_MX31
_H__ */
#endif
/*
ifndef __MACH_MX3x
_H__ */
arch/arm/plat-mxc/include/mach/mxc.h
View file @
37439a0f
...
...
@@ -121,9 +121,10 @@ extern unsigned int __mxc_cpu_type;
#endif
#if defined(CONFIG_ARCH_MX3) || defined(CONFIG_ARCH_MX2)
#define CSCR_U(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10)
#define CSCR_L(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10 + 0x4)
#define CSCR_A(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10 + 0x8)
/* These are deprecated, use mx[23][157]_setup_weimcs instead. */
#define CSCR_U(n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10))
#define CSCR_L(n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10 + 0x4))
#define CSCR_A(n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10 + 0x8))
#endif
#define cpu_is_mx3() (cpu_is_mx31() || cpu_is_mx35() || cpu_is_mxc91231())
...
...
arch/arm/plat-mxc/include/mach/uncompress.h
View file @
37439a0f
/*
* arch/arm/plat-mxc/include/mach/uncompress.h
*
*
*
* Copyright (C) 1999 ARM Limited
* Copyright (C) Shane Nay (shane@minirl.com)
*
...
...
@@ -25,7 +23,6 @@
#define __MXC_BOOT_UNCOMPRESS
#include <mach/hardware.h>
#include <asm/mach-types.h>
static
unsigned
long
uart_base
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment