Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
abda8bc7
Commit
abda8bc7
authored
May 08, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Enclose MMC-related code in #ifdef CONFIG_MMC .. #endif
parent
fbfb0222
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
arch/arm/mach-versatile/core.c
arch/arm/mach-versatile/core.c
+13
-0
No files found.
arch/arm/mach-versatile/core.c
View file @
abda8bc7
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
* along with this program; if not, write to the Free Software
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
*/
#include <linux/config.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/device.h>
#include <linux/sysdev.h>
#include <linux/sysdev.h>
...
@@ -33,7 +34,9 @@
...
@@ -33,7 +34,9 @@
#include <asm/mach/flash.h>
#include <asm/mach/flash.h>
#include <asm/mach/irq.h>
#include <asm/mach/irq.h>
#include <asm/mach/map.h>
#include <asm/mach/map.h>
#ifdef CONFIG_MMC
#include <asm/mach/mmc.h>
#include <asm/mach/mmc.h>
#endif
/*
/*
* All IO addresses are mapped onto VA 0xFFFx.xxxx, where x.xxxx
* All IO addresses are mapped onto VA 0xFFFx.xxxx, where x.xxxx
...
@@ -294,6 +297,7 @@ static struct platform_device smc91x_device = {
...
@@ -294,6 +297,7 @@ static struct platform_device smc91x_device = {
#define VERSATILE_SYSMCI (IO_ADDRESS(VERSATILE_SYS_BASE) + VERSATILE_SYS_MCI_OFFSET)
#define VERSATILE_SYSMCI (IO_ADDRESS(VERSATILE_SYS_BASE) + VERSATILE_SYS_MCI_OFFSET)
#ifdef CONFIG_MMC
static
unsigned
int
mmc_status
(
struct
device
*
dev
)
static
unsigned
int
mmc_status
(
struct
device
*
dev
)
{
{
struct
amba_device
*
adev
=
container_of
(
dev
,
struct
amba_device
,
dev
);
struct
amba_device
*
adev
=
container_of
(
dev
,
struct
amba_device
,
dev
);
...
@@ -318,6 +322,7 @@ static struct mmc_platform_data mmc1_plat_data = {
...
@@ -318,6 +322,7 @@ static struct mmc_platform_data mmc1_plat_data = {
.
ocr_mask
=
MMC_VDD_32_33
|
MMC_VDD_33_34
,
.
ocr_mask
=
MMC_VDD_32_33
|
MMC_VDD_33_34
,
.
status
=
mmc_status
,
.
status
=
mmc_status
,
};
};
#endif
#define AMBA_DEVICE(name,busid,base,plat) \
#define AMBA_DEVICE(name,busid,base,plat) \
static struct amba_device name##_device = { \
static struct amba_device name##_device = { \
...
@@ -396,12 +401,16 @@ static struct amba_device name##_device = { \
...
@@ -396,12 +401,16 @@ static struct amba_device name##_device = { \
/* FPGA Primecells */
/* FPGA Primecells */
AMBA_DEVICE
(
aaci
,
"fpga:04"
,
AACI
,
NULL
);
AMBA_DEVICE
(
aaci
,
"fpga:04"
,
AACI
,
NULL
);
#ifdef CONFIG_MMC
AMBA_DEVICE
(
mmc0
,
"fpga:05"
,
MMCI0
,
&
mmc0_plat_data
);
AMBA_DEVICE
(
mmc0
,
"fpga:05"
,
MMCI0
,
&
mmc0_plat_data
);
#endif
AMBA_DEVICE
(
kmi0
,
"fpga:06"
,
KMI0
,
NULL
);
AMBA_DEVICE
(
kmi0
,
"fpga:06"
,
KMI0
,
NULL
);
AMBA_DEVICE
(
kmi1
,
"fpga:07"
,
KMI1
,
NULL
);
AMBA_DEVICE
(
kmi1
,
"fpga:07"
,
KMI1
,
NULL
);
AMBA_DEVICE
(
uart3
,
"fpga:09"
,
UART3
,
NULL
);
AMBA_DEVICE
(
uart3
,
"fpga:09"
,
UART3
,
NULL
);
AMBA_DEVICE
(
sci1
,
"fpga:0a"
,
SCI1
,
NULL
);
AMBA_DEVICE
(
sci1
,
"fpga:0a"
,
SCI1
,
NULL
);
#ifdef CONFIG_MMC
AMBA_DEVICE
(
mmc1
,
"fpga:0b"
,
MMCI1
,
&
mmc1_plat_data
);
AMBA_DEVICE
(
mmc1
,
"fpga:0b"
,
MMCI1
,
&
mmc1_plat_data
);
#endif
/* DevChip Primecells */
/* DevChip Primecells */
AMBA_DEVICE
(
smc
,
"dev:00"
,
SMC
,
NULL
);
AMBA_DEVICE
(
smc
,
"dev:00"
,
SMC
,
NULL
);
...
@@ -440,11 +449,15 @@ static struct amba_device *amba_devs[] __initdata = {
...
@@ -440,11 +449,15 @@ static struct amba_device *amba_devs[] __initdata = {
&
sci0_device
,
&
sci0_device
,
&
ssp0_device
,
&
ssp0_device
,
&
aaci_device
,
&
aaci_device
,
#ifdef CONFIG_MMC
&
mmc0_device
,
&
mmc0_device
,
#endif
&
kmi0_device
,
&
kmi0_device
,
&
kmi1_device
,
&
kmi1_device
,
&
sci1_device
,
&
sci1_device
,
#ifdef CONFIG_MMC
&
mmc1_device
,
&
mmc1_device
,
#endif
};
};
#define VA_LEDS_BASE (IO_ADDRESS(VERSATILE_SYS_BASE) + VERSATILE_SYS_LED_OFFSET)
#define VA_LEDS_BASE (IO_ADDRESS(VERSATILE_SYS_BASE) + VERSATILE_SYS_LED_OFFSET)
...
...
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