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
1265edb8
Commit
1265edb8
authored
Dec 08, 2007
by
Russell King
Committed by
Russell King
Dec 08, 2007
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pxa-fixes'
parents
94545bad
03d14a55
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
23 deletions
+22
-23
arch/arm/Kconfig
arch/arm/Kconfig
+7
-1
arch/arm/common/it8152.c
arch/arm/common/it8152.c
+2
-8
arch/arm/mach-pxa/cm-x270-pci.c
arch/arm/mach-pxa/cm-x270-pci.c
+8
-10
include/asm-arm/arch-pxa/pxa-regs.h
include/asm-arm/arch-pxa/pxa-regs.h
+1
-0
sound/arm/pxa2xx-ac97.c
sound/arm/pxa2xx-ac97.c
+2
-2
sound/soc/pxa/pxa2xx-ac97.c
sound/soc/pxa/pxa2xx-ac97.c
+2
-2
No files found.
arch/arm/Kconfig
View file @
1265edb8
...
@@ -537,7 +537,7 @@ config ISA_DMA_API
...
@@ -537,7 +537,7 @@ config ISA_DMA_API
bool
bool
config PCI
config PCI
bool "PCI support" if ARCH_INTEGRATOR_AP || ARCH_VERSATILE_PB || ARCH_IXP4XX || ARCH_KS8695
bool "PCI support" if ARCH_INTEGRATOR_AP || ARCH_VERSATILE_PB || ARCH_IXP4XX || ARCH_KS8695
|| MACH_ARMCORE
help
help
Find out whether you have a PCI motherboard. PCI is the name of a
Find out whether you have a PCI motherboard. PCI is the name of a
bus system, i.e. the way the CPU talks to the other stuff inside
bus system, i.e. the way the CPU talks to the other stuff inside
...
@@ -558,6 +558,12 @@ config PCI_HOST_VIA82C505
...
@@ -558,6 +558,12 @@ config PCI_HOST_VIA82C505
depends on PCI && ARCH_SHARK
depends on PCI && ARCH_SHARK
default y
default y
config PCI_HOST_ITE8152
bool
depends on PCI && MACH_ARMCORE
default y
select DMABOUNCE
source "drivers/pci/Kconfig"
source "drivers/pci/Kconfig"
source "drivers/pcmcia/Kconfig"
source "drivers/pcmcia/Kconfig"
...
...
arch/arm/common/it8152.c
View file @
1265edb8
...
@@ -70,8 +70,6 @@ static inline void it8152_irq(int irq)
...
@@ -70,8 +70,6 @@ static inline void it8152_irq(int irq)
{
{
struct
irq_desc
*
desc
;
struct
irq_desc
*
desc
;
printk
(
KERN_DEBUG
"===> %s: irq=%d
\n
"
,
__FUNCTION__
,
irq
);
desc
=
irq_desc
+
irq
;
desc
=
irq_desc
+
irq
;
desc_handle_irq
(
irq
,
desc
);
desc_handle_irq
(
irq
,
desc
);
}
}
...
@@ -106,8 +104,6 @@ void it8152_irq_demux(unsigned int irq, struct irq_desc *desc)
...
@@ -106,8 +104,6 @@ void it8152_irq_demux(unsigned int irq, struct irq_desc *desc)
int
bits_pd
,
bits_lp
,
bits_ld
;
int
bits_pd
,
bits_lp
,
bits_ld
;
int
i
;
int
i
;
printk
(
KERN_DEBUG
"=> %s: irq = %d
\n
"
,
__FUNCTION__
,
irq
);
while
(
1
)
{
while
(
1
)
{
/* Read all */
/* Read all */
bits_pd
=
__raw_readl
(
IT8152_INTC_PDCNIRR
);
bits_pd
=
__raw_readl
(
IT8152_INTC_PDCNIRR
);
...
@@ -293,8 +289,7 @@ int dma_needs_bounce(struct device *dev, dma_addr_t dma_addr, size_t size)
...
@@ -293,8 +289,7 @@ int dma_needs_bounce(struct device *dev, dma_addr_t dma_addr, size_t size)
*/
*/
int
pci_set_dma_mask
(
struct
pci_dev
*
dev
,
u64
mask
)
int
pci_set_dma_mask
(
struct
pci_dev
*
dev
,
u64
mask
)
{
{
printk
(
KERN_DEBUG
"%s: %s %llx
\n
"
,
dev_dbg
(
&
dev
->
dev
,
"%s: %llx
\n
"
,
__FUNCTION__
,
mask
);
__FUNCTION__
,
dev
->
dev
.
bus_id
,
mask
);
if
(
mask
>=
PHYS_OFFSET
+
SZ_64M
-
1
)
if
(
mask
>=
PHYS_OFFSET
+
SZ_64M
-
1
)
return
0
;
return
0
;
...
@@ -304,8 +299,7 @@ int pci_set_dma_mask(struct pci_dev *dev, u64 mask)
...
@@ -304,8 +299,7 @@ int pci_set_dma_mask(struct pci_dev *dev, u64 mask)
int
int
pci_set_consistent_dma_mask
(
struct
pci_dev
*
dev
,
u64
mask
)
pci_set_consistent_dma_mask
(
struct
pci_dev
*
dev
,
u64
mask
)
{
{
printk
(
KERN_DEBUG
"%s: %s %llx
\n
"
,
dev_dbg
(
&
dev
->
dev
,
"%s: %llx
\n
"
,
__FUNCTION__
,
mask
);
__FUNCTION__
,
dev
->
dev
.
bus_id
,
mask
);
if
(
mask
>=
PHYS_OFFSET
+
SZ_64M
-
1
)
if
(
mask
>=
PHYS_OFFSET
+
SZ_64M
-
1
)
return
0
;
return
0
;
...
...
arch/arm/mach-pxa/cm-x270-pci.c
View file @
1265edb8
...
@@ -40,7 +40,7 @@ void __init cmx270_pci_adjust_zones(int node, unsigned long *zone_size,
...
@@ -40,7 +40,7 @@ void __init cmx270_pci_adjust_zones(int node, unsigned long *zone_size,
{
{
unsigned
int
sz
=
SZ_64M
>>
PAGE_SHIFT
;
unsigned
int
sz
=
SZ_64M
>>
PAGE_SHIFT
;
pr
intk
(
KERN_INFO
"Adjusting zones for CM-x270
\n
"
);
pr
_info
(
"Adjusting zones for CM-x270
\n
"
);
/*
/*
* Only adjust if > 64M on current system
* Only adjust if > 64M on current system
...
@@ -104,8 +104,7 @@ static int __init cmx270_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
...
@@ -104,8 +104,7 @@ static int __init cmx270_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
{
{
int
irq
;
int
irq
;
printk
(
KERN_DEBUG
"===> %s: %s slot=%x, pin=%x
\n
"
,
__FUNCTION__
,
dev_dbg
(
&
dev
->
dev
,
"%s: slot=%x, pin=%x
\n
"
,
__FUNCTION__
,
slot
,
pin
);
pci_name
(
dev
),
slot
,
pin
);
irq
=
it8152_pci_map_irq
(
dev
,
slot
,
pin
);
irq
=
it8152_pci_map_irq
(
dev
,
slot
,
pin
);
if
(
irq
)
if
(
irq
)
...
@@ -141,14 +140,13 @@ static int __init cmx270_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
...
@@ -141,14 +140,13 @@ static int __init cmx270_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
return
(
0
);
return
(
0
);
}
}
static
struct
pci_bus
*
__init
static
void
cmx270_pci_preinit
(
void
)
cmx270_pci_scan_bus
(
int
nr
,
struct
pci_sys_data
*
sys
)
{
{
pr
intk
(
KERN_INFO
"Initializing CM-X270 PCI subsystem
\n
"
);
pr
_info
(
"Initializing CM-X270 PCI subsystem
\n
"
);
__raw_writel
(
0x800
,
IT8152_PCI_CFG_ADDR
);
__raw_writel
(
0x800
,
IT8152_PCI_CFG_ADDR
);
if
(
__raw_readl
(
IT8152_PCI_CFG_DATA
)
==
0x81521283
)
{
if
(
__raw_readl
(
IT8152_PCI_CFG_DATA
)
==
0x81521283
)
{
pr
intk
(
KERN_INFO
"PCI Bridge found.
\n
"
);
pr
_info
(
"PCI Bridge found.
\n
"
);
/* set PCI I/O base at 0 */
/* set PCI I/O base at 0 */
writel
(
0x848
,
IT8152_PCI_CFG_ADDR
);
writel
(
0x848
,
IT8152_PCI_CFG_ADDR
);
...
@@ -163,7 +161,7 @@ cmx270_pci_scan_bus(int nr, struct pci_sys_data *sys)
...
@@ -163,7 +161,7 @@ cmx270_pci_scan_bus(int nr, struct pci_sys_data *sys)
/* CardBus Controller on ATXbase baseboard */
/* CardBus Controller on ATXbase baseboard */
writel
(
0x4000
,
IT8152_PCI_CFG_ADDR
);
writel
(
0x4000
,
IT8152_PCI_CFG_ADDR
);
if
(
readl
(
IT8152_PCI_CFG_DATA
)
==
0xAC51104C
)
{
if
(
readl
(
IT8152_PCI_CFG_DATA
)
==
0xAC51104C
)
{
pr
intk
(
KERN_INFO
"CardBus Bridge found.
\n
"
);
pr
_info
(
"CardBus Bridge found.
\n
"
);
/* Configure socket 0 */
/* Configure socket 0 */
writel
(
0x408C
,
IT8152_PCI_CFG_ADDR
);
writel
(
0x408C
,
IT8152_PCI_CFG_ADDR
);
...
@@ -196,7 +194,6 @@ cmx270_pci_scan_bus(int nr, struct pci_sys_data *sys)
...
@@ -196,7 +194,6 @@ cmx270_pci_scan_bus(int nr, struct pci_sys_data *sys)
writel
(
0xb0000000
,
IT8152_PCI_CFG_DATA
);
writel
(
0xb0000000
,
IT8152_PCI_CFG_DATA
);
}
}
}
}
return
it8152_pci_scan_bus
(
nr
,
sys
);
}
}
static
struct
hw_pci
cmx270_pci
__initdata
=
{
static
struct
hw_pci
cmx270_pci
__initdata
=
{
...
@@ -204,7 +201,8 @@ static struct hw_pci cmx270_pci __initdata = {
...
@@ -204,7 +201,8 @@ static struct hw_pci cmx270_pci __initdata = {
.
map_irq
=
cmx270_pci_map_irq
,
.
map_irq
=
cmx270_pci_map_irq
,
.
nr_controllers
=
1
,
.
nr_controllers
=
1
,
.
setup
=
it8152_pci_setup
,
.
setup
=
it8152_pci_setup
,
.
scan
=
cmx270_pci_scan_bus
,
.
scan
=
it8152_pci_scan_bus
,
.
preinit
=
cmx270_pci_preinit
,
};
};
static
int
__init
cmx270_init_pci
(
void
)
static
int
__init
cmx270_init_pci
(
void
)
...
...
include/asm-arm/arch-pxa/pxa-regs.h
View file @
1265edb8
...
@@ -1784,6 +1784,7 @@
...
@@ -1784,6 +1784,7 @@
#define CCCR_M_MASK 0x0060
/* Memory Frequency to Run Mode Frequency Multiplier */
#define CCCR_M_MASK 0x0060
/* Memory Frequency to Run Mode Frequency Multiplier */
#define CCCR_L_MASK 0x001f
/* Crystal Frequency to Memory Frequency Multiplier */
#define CCCR_L_MASK 0x001f
/* Crystal Frequency to Memory Frequency Multiplier */
#define CKEN_AC97CONF (31)
/* AC97 Controller Configuration */
#define CKEN_CAMERA (24)
/* Camera Interface Clock Enable */
#define CKEN_CAMERA (24)
/* Camera Interface Clock Enable */
#define CKEN_SSP1 (23)
/* SSP1 Unit Clock Enable */
#define CKEN_SSP1 (23)
/* SSP1 Unit Clock Enable */
#define CKEN_MEMC (22)
/* Memory Controller Clock Enable */
#define CKEN_MEMC (22)
/* Memory Controller Clock Enable */
...
...
sound/arm/pxa2xx-ac97.c
View file @
1265edb8
...
@@ -113,9 +113,9 @@ static void pxa2xx_ac97_reset(struct snd_ac97 *ac97)
...
@@ -113,9 +113,9 @@ static void pxa2xx_ac97_reset(struct snd_ac97 *ac97)
gsr_bits
=
0
;
gsr_bits
=
0
;
#ifdef CONFIG_PXA27x
#ifdef CONFIG_PXA27x
/* PXA27x Developers Manual section 13.5.2.2.1 */
/* PXA27x Developers Manual section 13.5.2.2.1 */
pxa_set_cken
(
1
<<
31
,
1
);
pxa_set_cken
(
CKEN_AC97CONF
,
1
);
udelay
(
5
);
udelay
(
5
);
pxa_set_cken
(
1
<<
31
,
0
);
pxa_set_cken
(
CKEN_AC97CONF
,
0
);
GCR
=
GCR_COLD_RST
;
GCR
=
GCR_COLD_RST
;
udelay
(
50
);
udelay
(
50
);
#else
#else
...
...
sound/soc/pxa/pxa2xx-ac97.c
View file @
1265edb8
...
@@ -160,9 +160,9 @@ static void pxa2xx_ac97_cold_reset(struct snd_ac97 *ac97)
...
@@ -160,9 +160,9 @@ static void pxa2xx_ac97_cold_reset(struct snd_ac97 *ac97)
gsr_bits
=
0
;
gsr_bits
=
0
;
#ifdef CONFIG_PXA27x
#ifdef CONFIG_PXA27x
/* PXA27x Developers Manual section 13.5.2.2.1 */
/* PXA27x Developers Manual section 13.5.2.2.1 */
pxa_set_cken
(
31
,
1
);
pxa_set_cken
(
CKEN_AC97CONF
,
1
);
udelay
(
5
);
udelay
(
5
);
pxa_set_cken
(
31
,
0
);
pxa_set_cken
(
CKEN_AC97CONF
,
0
);
GCR
=
GCR_COLD_RST
;
GCR
=
GCR_COLD_RST
;
udelay
(
50
);
udelay
(
50
);
#else
#else
...
...
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