Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
linux
Commits
53640f41
Commit
53640f41
authored
12 years ago
by
Sascha Hauer
Browse files
Options
Download
Plain Diff
Merge remote-tracking branch 'arm-soc/imx/multiplatform' into imx25-dt
parents
77b67063
68b25325
Changes
217
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
54 additions
and
34 deletions
+54
-34
arch/arm/mach-imx/cpuidle.h
arch/arm/mach-imx/cpuidle.h
+0
-0
arch/arm/mach-imx/devices-imx1.h
arch/arm/mach-imx/devices-imx1.h
+1
-2
arch/arm/mach-imx/devices-imx21.h
arch/arm/mach-imx/devices-imx21.h
+1
-2
arch/arm/mach-imx/devices-imx25.h
arch/arm/mach-imx/devices-imx25.h
+1
-2
arch/arm/mach-imx/devices-imx27.h
arch/arm/mach-imx/devices-imx27.h
+1
-2
arch/arm/mach-imx/devices-imx31.h
arch/arm/mach-imx/devices-imx31.h
+1
-2
arch/arm/mach-imx/devices-imx35.h
arch/arm/mach-imx/devices-imx35.h
+1
-2
arch/arm/mach-imx/devices-imx50.h
arch/arm/mach-imx/devices-imx50.h
+1
-2
arch/arm/mach-imx/devices-imx51.h
arch/arm/mach-imx/devices-imx51.h
+1
-2
arch/arm/mach-imx/devices/Kconfig
arch/arm/mach-imx/devices/Kconfig
+0
-0
arch/arm/mach-imx/devices/Makefile
arch/arm/mach-imx/devices/Makefile
+2
-0
arch/arm/mach-imx/devices/devices-common.h
arch/arm/mach-imx/devices/devices-common.h
+8
-1
arch/arm/mach-imx/devices/devices.c
arch/arm/mach-imx/devices/devices.c
+1
-3
arch/arm/mach-imx/devices/platform-ahci-imx.c
arch/arm/mach-imx/devices/platform-ahci-imx.c
+3
-2
arch/arm/mach-imx/devices/platform-fec.c
arch/arm/mach-imx/devices/platform-fec.c
+3
-2
arch/arm/mach-imx/devices/platform-flexcan.c
arch/arm/mach-imx/devices/platform-flexcan.c
+2
-2
arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c
arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c
+3
-2
arch/arm/mach-imx/devices/platform-gpio-mxc.c
arch/arm/mach-imx/devices/platform-gpio-mxc.c
+1
-1
arch/arm/mach-imx/devices/platform-gpio_keys.c
arch/arm/mach-imx/devices/platform-gpio_keys.c
+3
-2
arch/arm/mach-imx/devices/platform-imx-dma.c
arch/arm/mach-imx/devices/platform-imx-dma.c
+20
-3
No files found.
arch/arm/
plat-mxc/include/
mach/cpuidle.h
→
arch/arm/mach
-imx
/cpuidle.h
View file @
53640f41
File moved
This diff is collapsed.
Click to expand it.
arch/arm/mach-imx/devices-imx1.h
View file @
53640f41
...
...
@@ -6,8 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/mx1.h>
#include <mach/devices-common.h>
#include "devices/devices-common.h"
extern
const
struct
imx_imx_fb_data
imx1_imx_fb_data
;
#define imx1_add_imx_fb(pdata) \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-imx/devices-imx21.h
View file @
53640f41
...
...
@@ -6,8 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/mx21.h>
#include <mach/devices-common.h>
#include "devices/devices-common.h"
extern
const
struct
imx_imx21_hcd_data
imx21_imx21_hcd_data
;
#define imx21_add_imx21_hcd(pdata) \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-imx/devices-imx25.h
View file @
53640f41
...
...
@@ -6,8 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/mx25.h>
#include <mach/devices-common.h>
#include "devices/devices-common.h"
extern
const
struct
imx_fec_data
imx25_fec_data
;
#define imx25_add_fec(pdata) \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-imx/devices-imx27.h
View file @
53640f41
...
...
@@ -6,8 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/mx27.h>
#include <mach/devices-common.h>
#include "devices/devices-common.h"
extern
const
struct
imx_fec_data
imx27_fec_data
;
#define imx27_add_fec(pdata) \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-imx/devices-imx31.h
View file @
53640f41
...
...
@@ -6,8 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/mx31.h>
#include <mach/devices-common.h>
#include "devices/devices-common.h"
extern
const
struct
imx_fsl_usb2_udc_data
imx31_fsl_usb2_udc_data
;
#define imx31_add_fsl_usb2_udc(pdata) \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-imx/devices-imx35.h
View file @
53640f41
...
...
@@ -6,8 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/mx35.h>
#include <mach/devices-common.h>
#include "devices/devices-common.h"
extern
const
struct
imx_fec_data
imx35_fec_data
;
#define imx35_add_fec(pdata) \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-imx/devices-imx50.h
View file @
53640f41
...
...
@@ -18,8 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <mach/mx50.h>
#include <mach/devices-common.h>
#include "devices/devices-common.h"
extern
const
struct
imx_imx_uart_1irq_data
imx50_imx_uart_data
[];
#define imx50_add_imx_uart(id, pdata) \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-imx/devices-imx51.h
View file @
53640f41
...
...
@@ -6,8 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/mx51.h>
#include <mach/devices-common.h>
#include "devices/devices-common.h"
extern
const
struct
imx_fec_data
imx51_fec_data
;
#define imx51_add_fec(pdata) \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/Kconfig
→
arch/arm/
mach-i
mx/devices/Kconfig
View file @
53640f41
File moved
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/Makefile
→
arch/arm/
mach-i
mx/devices/Makefile
View file @
53640f41
obj-y
:=
devices.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_FEC)
+=
platform-fec.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_FLEXCAN)
+=
platform-flexcan.o
obj-$(CONFIG_IMX_HAVE_PLATFORM_FSL_USB2_UDC)
+=
platform-fsl-usb2-udc.o
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-mxc/include/mach
/devices-common.h
→
arch/arm/
mach-imx/devices
/devices-common.h
View file @
53640f41
...
...
@@ -108,6 +108,7 @@ struct platform_device *__init imx_add_imxdi_rtc(
#include <linux/platform_data/video-imxfb.h>
struct
imx_imx_fb_data
{
const
char
*
devid
;
resource_size_t
iobase
;
resource_size_t
iosize
;
resource_size_t
irq
;
...
...
@@ -118,6 +119,7 @@ struct platform_device *__init imx_add_imx_fb(
#include <linux/platform_data/i2c-imx.h>
struct
imx_imx_i2c_data
{
const
char
*
devid
;
int
id
;
resource_size_t
iobase
;
resource_size_t
iosize
;
...
...
@@ -219,6 +221,7 @@ struct platform_device *__init imx_add_mx1_camera(
#include <linux/platform_data/camera-mx2.h>
struct
imx_mx2_camera_data
{
const
char
*
devid
;
resource_size_t
iobasecsi
;
resource_size_t
iosizecsi
;
resource_size_t
irqcsi
;
...
...
@@ -244,6 +247,7 @@ struct platform_device *__init imx_add_mxc_ehci(
#include <linux/platform_data/mmc-mxcmmc.h>
struct
imx_mxc_mmc_data
{
const
char
*
devid
;
int
id
;
resource_size_t
iobase
;
resource_size_t
iosize
;
...
...
@@ -256,6 +260,7 @@ struct platform_device *__init imx_add_mxc_mmc(
#include <linux/platform_data/mtd-mxc_nand.h>
struct
imx_mxc_nand_data
{
const
char
*
devid
;
/*
* id is traditionally 0, but -1 is more appropriate. We use -1 for new
* machines but don't change existing devices as the nand device usually
...
...
@@ -290,6 +295,7 @@ struct platform_device *__init imx_add_mxc_pwm(
/* mxc_rtc */
struct
imx_mxc_rtc_data
{
const
char
*
devid
;
resource_size_t
iobase
;
resource_size_t
irq
;
};
...
...
@@ -326,7 +332,8 @@ struct platform_device *__init imx_add_spi_imx(
const
struct
imx_spi_imx_data
*
data
,
const
struct
spi_imx_master
*
pdata
);
struct
platform_device
*
imx_add_imx_dma
(
void
);
struct
platform_device
*
imx_add_imx_dma
(
char
*
name
,
resource_size_t
iobase
,
int
irq
,
int
irq_err
);
struct
platform_device
*
imx_add_imx_sdma
(
char
*
name
,
resource_size_t
iobase
,
int
irq
,
struct
sdma_platform_data
*
pdata
);
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-mxc
/devices.c
→
arch/arm/
mach-imx/devices
/devices.c
View file @
53640f41
...
...
@@ -21,7 +21,6 @@
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <mach/common.h>
struct
device
mxc_aips_bus
=
{
.
init_name
=
"mxc_aips"
,
...
...
@@ -33,7 +32,7 @@ struct device mxc_ahb_bus = {
.
parent
=
&
platform_bus
,
};
static
int
__init
mxc_device_init
(
void
)
int
__init
mxc_device_init
(
void
)
{
int
ret
;
...
...
@@ -46,4 +45,3 @@ static int __init mxc_device_init(void)
done:
return
ret
;
}
core_initcall
(
mxc_device_init
);
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/platform-ahci-imx.c
→
arch/arm/
mach-i
mx/devices/platform-ahci-imx.c
View file @
53640f41
...
...
@@ -24,8 +24,9 @@
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "../hardware.h"
#include "devices-common.h"
#define imx_ahci_imx_data_entry_single(soc, _devid) \
{ \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/platform-fec.c
→
arch/arm/
mach-i
mx/devices/platform-fec.c
View file @
53640f41
...
...
@@ -8,8 +8,9 @@
*/
#include <linux/dma-mapping.h>
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "../hardware.h"
#include "devices-common.h"
#define imx_fec_data_entry_single(soc, _devid) \
{ \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/platform-flexcan.c
→
arch/arm/
mach-i
mx/devices/platform-flexcan.c
View file @
53640f41
...
...
@@ -5,8 +5,8 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include
<mach
/hardware.h
>
#include
<mach/
devices-common.h
>
#include
"..
/hardware.h
"
#include
"
devices-common.h
"
#define imx_flexcan_data_entry_single(soc, _id, _hwid, _size) \
{ \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/platform-fsl-usb2-udc.c
→
arch/arm/
mach-i
mx/devices/platform-fsl-usb2-udc.c
View file @
53640f41
...
...
@@ -7,8 +7,9 @@
* Free Software Foundation.
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "../hardware.h"
#include "devices-common.h"
#define imx_fsl_usb2_udc_data_entry_single(soc) \
{ \
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/platform-gpio-mxc.c
→
arch/arm/
mach-i
mx/devices/platform-gpio-mxc.c
View file @
53640f41
...
...
@@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include
<mach/
devices-common.h
>
#include
"
devices-common.h
"
struct
platform_device
*
__init
mxc_register_gpio
(
char
*
name
,
int
id
,
resource_size_t
iobase
,
resource_size_t
iosize
,
int
irq
,
int
irq_high
)
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/platform-gpio_keys.c
→
arch/arm/
mach-i
mx/devices/platform-gpio_keys.c
View file @
53640f41
...
...
@@ -16,8 +16,9 @@
* Boston, MA 02110-1301, USA.
*/
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "../hardware.h"
#include "devices-common.h"
struct
platform_device
*
__init
imx_add_gpio_keys
(
const
struct
gpio_keys_platform_data
*
pdata
)
...
...
This diff is collapsed.
Click to expand it.
arch/arm/
plat-
mx
c
/devices/platform-imx-dma.c
→
arch/arm/
mach-i
mx/devices/platform-imx-dma.c
View file @
53640f41
...
...
@@ -6,12 +6,29 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include
<mach/
devices-common.h
>
#include
"
devices-common.h
"
struct
platform_device
__init
__maybe_unused
*
imx_add_imx_dma
(
void
)
struct
platform_device
__init
__maybe_unused
*
imx_add_imx_dma
(
char
*
name
,
resource_size_t
iobase
,
int
irq
,
int
irq_err
)
{
struct
resource
res
[]
=
{
{
.
start
=
iobase
,
.
end
=
iobase
+
SZ_4K
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
start
=
irq
,
.
end
=
irq
,
.
flags
=
IORESOURCE_IRQ
,
},
{
.
start
=
irq_err
,
.
end
=
irq_err
,
.
flags
=
IORESOURCE_IRQ
,
},
};
return
platform_device_register_resndata
(
&
mxc_ahb_bus
,
"imx-dma"
,
-
1
,
NULL
,
0
,
NULL
,
0
);
name
,
-
1
,
res
,
ARRAY_SIZE
(
res
)
,
NULL
,
0
);
}
struct
platform_device
__init
__maybe_unused
*
imx_add_imx_sdma
(
char
*
name
,
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
7
…
11
Next
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