* Error enabling CONFIG_PPC4XX_DMA in lk2.4.27-pre3?
@ 2005-04-08 20:19 Sanjay Bajaj
2005-04-13 20:50 ` Roger Larsson
0 siblings, 1 reply; 2+ messages in thread
From: Sanjay Bajaj @ 2005-04-08 20:19 UTC (permalink / raw)
To: linuxppc-embedded
Hi! Gurus,
I tried to enable DMA in lk2.4.27-pre3 and it fails with the error =
attached to the end of the mail. On further debugging, I found that =
though CONFIG_PPC4XX_DMA is included in the .config but the =
asm/ppc4xx_dma.h includes CONFIG_PPC4XX_EDMA, which includes all the =
constants reported undeclared in the error message. Out of curiosity, =
changed .._EDMA to .._DMA in asm/ppc4xx_dma.h and still had errors. Any =
help is appreciated.
Thanks,
Sanjay
*****
ppc4xx_dma.c: In function `ppc4xx_enable_dma':
ppc4xx_dma.c:116: error: `DMA_CS0' undeclared (first use in this =
function)
ppc4xx_dma.c:116: error: (Each undeclared identifier is reported only =
once
ppc4xx_dma.c:116: error: for each function it appears in.)
ppc4xx_dma.c:116: error: `DMA_TS0' undeclared (first use in this =
function)
ppc4xx_dma.c:116: error: `DMA_CH0_ERR' undeclared (first use in this =
function)
ppc4xx_dma.c:117: error: `DMA_CS1' undeclared (first use in this =
function)
ppc4xx_dma.c:117: error: `DMA_TS1' undeclared (first use in this =
function)
ppc4xx_dma.c:117: error: `DMA_CH1_ERR' undeclared (first use in this =
function)
ppc4xx_dma.c:118: error: `DMA_CS2' undeclared (first use in this =
function)
ppc4xx_dma.c:118: error: `DMA_TS2' undeclared (first use in this =
function)
ppc4xx_dma.c:118: error: `DMA_CH2_ERR' undeclared (first use in this =
function)
ppc4xx_dma.c:119: error: `DMA_CS3' undeclared (first use in this =
function)
ppc4xx_dma.c:119: error: `DMA_TS3' undeclared (first use in this =
function)
ppc4xx_dma.c:119: error: `DMA_CH3_ERR' undeclared (first use in this =
function)
ppc4xx_dma.c: In function `ppc4xx_init_dma_channel':
ppc4xx_dma.c:624: error: `SET_DMA_CONTROL' undeclared (first use in this =
function)
ppc4xx_dma.c:629: warning: implicit declaration of function =
`GET_DMA_POLARITY'
ppc4xx_dma.c: In function `ppc4xx_get_channel_config':
ppc4xx_dma.c:726: warning: implicit declaration of function =
`GET_DMA_PRIORITY'
ppc4xx_dma.c:738: error: structure has no member named `ch_enable'
ppc4xx_dma.c:738: warning: implicit declaration of function `GET_DMA_CH'
ppc4xx_dma.c:739: error: structure has no member named `ece_enable'
ppc4xx_dma.c:740: error: structure has no member named `tcd_disable'
ppc4xx_dma.c: In function `ppc4xx_set_channel_priority':
ppc4xx_dma.c:763: error: `PRIORITY_LOW' undeclared (first use in this =
function)
ppc4xx_dma.c:764: error: `PRIORITY_MID_LOW' undeclared (first use in =
this function)
ppc4xx_dma.c:765: error: `PRIORITY_MID_HIGH' undeclared (first use in =
this function)
ppc4xx_dma.c:765: error: `PRIORITY_HIGH' undeclared (first use in this =
function)
ppc4xx_dma.c:772: warning: implicit declaration of function =
`SET_DMA_PRIORITY'
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error enabling CONFIG_PPC4XX_DMA in lk2.4.27-pre3?
2005-04-08 20:19 Error enabling CONFIG_PPC4XX_DMA in lk2.4.27-pre3? Sanjay Bajaj
@ 2005-04-13 20:50 ` Roger Larsson
0 siblings, 0 replies; 2+ messages in thread
From: Roger Larsson @ 2005-04-13 20:50 UTC (permalink / raw)
To: linuxppc-embedded
On Friday 08 April 2005 22.19, Sanjay Bajaj wrote:
> Hi! Gurus,
>
> I tried to enable DMA in lk2.4.27-pre3 and it fails with the error attached
> to the end of the mail. On further debugging, I found that though
> CONFIG_PPC4XX_DMA is included in the .config but the asm/ppc4xx_dma.h
> includes CONFIG_PPC4XX_EDMA, which includes all the constants reported
> undeclared in the error message. Out of curiosity, changed .._EDMA to
> .._DMA in asm/ppc4xx_dma.h and still had errors. Any help is appreciated.
>
Hmm...
What processor are you using?
If I remember correctly 405GPr did not enable CONFIG_PPC4XX_EDMA
but 405GP did... yepp, this check in 'arch/ppc/config.in' checks for 405GP
but not 405GPr
bool 'PPC4xx DMA controller support' CONFIG_PPC4xx_DMA
if [ "$CONFIG_PPC4xx_DMA" = "y" ]; then
if [ "$CONFIG_405GP" = "y" -o "$CONFIG_NP405L" = "y" \
-o "$CONFIG_NP405H" = "y" -o "$CONFIG_NP405GS" = "y" \
-o "$CONFIG_440" = "y" -o "$CONFIG_405LP" = "y" \
-o "$CONFIG_405EP" = "y" ]; then
define_bool CONFIG_PPC4xx_EDMA y
fi
if [ "$CONFIG_STB03xxx" = "y" ]; then
define_bool CONFIG_STBXXX_DMA y
fi
fi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-13 21:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-08 20:19 Error enabling CONFIG_PPC4XX_DMA in lk2.4.27-pre3? Sanjay Bajaj
2005-04-13 20:50 ` Roger Larsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox