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
nexedi
linux
Commits
b5ccf78a
Commit
b5ccf78a
authored
Aug 04, 2003
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Make PXA compile.
Fix up several errors in the PXA code preventing it from building.
parent
6018f7ed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
67 deletions
+8
-67
arch/arm/mach-pxa/dma.c
arch/arm/mach-pxa/dma.c
+3
-1
arch/arm/mach-pxa/generic.c
arch/arm/mach-pxa/generic.c
+1
-1
arch/arm/mach-pxa/pm.c
arch/arm/mach-pxa/pm.c
+2
-63
arch/arm/mach-pxa/sleep.S
arch/arm/mach-pxa/sleep.S
+2
-2
No files found.
arch/arm/mach-pxa/dma.c
View file @
b5ccf78a
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <asm/system.h>
#include <asm/system.h>
...
@@ -92,7 +93,7 @@ void pxa_free_dma (int dma_ch)
...
@@ -92,7 +93,7 @@ void pxa_free_dma (int dma_ch)
local_irq_restore
(
flags
);
local_irq_restore
(
flags
);
}
}
static
void
dma_irq_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
dma_irq_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
int
i
,
dint
=
DINT
;
int
i
,
dint
=
DINT
;
...
@@ -111,6 +112,7 @@ static void dma_irq_handler(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -111,6 +112,7 @@ static void dma_irq_handler(int irq, void *dev_id, struct pt_regs *regs)
}
}
}
}
}
}
return
IRQ_HANDLED
;
}
}
static
int
__init
pxa_dma_init
(
void
)
static
int
__init
pxa_dma_init
(
void
)
...
...
arch/arm/mach-pxa/generic.c
View file @
b5ccf78a
...
@@ -103,7 +103,7 @@ EXPORT_SYMBOL(get_lclk_frequency_10khz);
...
@@ -103,7 +103,7 @@ EXPORT_SYMBOL(get_lclk_frequency_10khz);
void
pxa_gpio_mode
(
int
gpio_mode
)
void
pxa_gpio_mode
(
int
gpio_mode
)
{
{
long
flags
;
unsigned
long
flags
;
int
gpio
=
gpio_mode
&
GPIO_MD_MASK_NR
;
int
gpio
=
gpio_mode
&
GPIO_MD_MASK_NR
;
int
fn
=
(
gpio_mode
&
GPIO_MD_MASK_FN
)
>>
8
;
int
fn
=
(
gpio_mode
&
GPIO_MD_MASK_FN
)
>>
8
;
int
gafr
;
int
gafr
;
...
...
arch/arm/mach-pxa/pm.c
View file @
b5ccf78a
...
@@ -11,12 +11,6 @@
...
@@ -11,12 +11,6 @@
* modify it under the terms of the GNU General Public License.
* modify it under the terms of the GNU General Public License.
*/
*/
#include <linux/config.h>
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/sysctl.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <asm/hardware.h>
#include <asm/hardware.h>
...
@@ -81,7 +75,7 @@ int pm_do_suspend(void)
...
@@ -81,7 +75,7 @@ int pm_do_suspend(void)
/*
/*
* Temporary solution. This won't be necessary once
* Temporary solution. This won't be necessary once
* we move pxa support into the serial
/*
driver
* we move pxa support into the serial driver
* Save the FF UART
* Save the FF UART
*/
*/
SAVE
(
FFIER
);
SAVE
(
FFIER
);
...
@@ -175,7 +169,7 @@ int pm_do_suspend(void)
...
@@ -175,7 +169,7 @@ int pm_do_suspend(void)
/*
/*
* Temporary solution. This won't be necessary once
* Temporary solution. This won't be necessary once
* we move pxa support into the serial
/*
driver.
* we move pxa support into the serial driver.
* Restore the FF UART.
* Restore the FF UART.
*/
*/
RESTORE
(
FFMCR
);
RESTORE
(
FFMCR
);
...
@@ -207,58 +201,3 @@ unsigned long sleep_phys_sp(void *sp)
...
@@ -207,58 +201,3 @@ unsigned long sleep_phys_sp(void *sp)
{
{
return
virt_to_phys
(
sp
);
return
virt_to_phys
(
sp
);
}
}
#ifdef CONFIG_SYSCTL
/*
* ARGH! ACPI people defined CTL_ACPI in linux/acpi.h rather than
* linux/sysctl.h.
*
* This means our interface here won't survive long - it needs a new
* interface. Quick hack to get this working - use sysctl id 9999.
*/
#warning ACPI broke the kernel, this interface needs to be fixed up.
#define CTL_ACPI 9999
#define ACPI_S1_SLP_TYP 19
/*
* Send us to sleep.
*/
static
int
sysctl_pm_do_suspend
(
void
)
{
int
retval
;
retval
=
pm_send_all
(
PM_SUSPEND
,
(
void
*
)
3
);
if
(
retval
==
0
)
{
retval
=
pm_do_suspend
();
pm_send_all
(
PM_RESUME
,
(
void
*
)
0
);
}
return
retval
;
}
static
struct
ctl_table
pm_table
[]
=
{
{
ACPI_S1_SLP_TYP
,
"suspend"
,
NULL
,
0
,
0600
,
NULL
,
(
proc_handler
*
)
&
sysctl_pm_do_suspend
},
{
0
}
};
static
struct
ctl_table
pm_dir_table
[]
=
{
{
CTL_ACPI
,
"pm"
,
NULL
,
0
,
0555
,
pm_table
},
{
0
}
};
/*
* Initialize power interface
*/
static
int
__init
pm_init
(
void
)
{
register_sysctl_table
(
pm_dir_table
,
1
);
return
0
;
}
__initcall
(
pm_init
);
#endif
arch/arm/mach-pxa/sleep.S
View file @
b5ccf78a
...
@@ -48,7 +48,7 @@ ENTRY(pxa_cpu_suspend)
...
@@ -48,7 +48,7 @@ ENTRY(pxa_cpu_suspend)
str
r0
,
[
r1
]
str
r0
,
[
r1
]
@
clean
data
cache
@
clean
data
cache
bl
cpu_xscale_cache_clean_invalidat
e_all
bl
xscale_flush_kern_cach
e_all
@
Put
the
processor
to
sleep
@
Put
the
processor
to
sleep
@
(
also
workaround
for
sighting
28071
)
@
(
also
workaround
for
sighting
28071
)
...
@@ -101,7 +101,7 @@ ENTRY(pxa_cpu_suspend)
...
@@ -101,7 +101,7 @@ ENTRY(pxa_cpu_suspend)
.
data
.
data
.
align
5
.
align
5
ENTRY
(
pxa_cpu_resume
)
ENTRY
(
pxa_cpu_resume
)
mov
r0
,
#
I_BIT
|
F_BIT |
MODE_SVC
@
set
SVC
,
irqs
off
mov
r0
,
#
PSR_I_BIT
| PSR_
F_BIT |
MODE_SVC
@
set
SVC
,
irqs
off
msr
cpsr_c
,
r0
msr
cpsr_c
,
r0
ldr
r0
,
sleep_save_sp
@
stack
phys
addr
ldr
r0
,
sleep_save_sp
@
stack
phys
addr
...
...
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