mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 08:00:26 +09:00
Merge pull request #2 from brain-hackers/fix-fb-dma
Framebuffer の DMA を起動直前に無効化
This commit is contained in:
commit
188b1ac67f
@ -146,6 +146,8 @@ struct mxs_dma_chan {
|
||||
struct list_head done;
|
||||
};
|
||||
|
||||
int mxs_dma_disable(int chan);
|
||||
|
||||
struct mxs_dma_desc *mxs_dma_desc_alloc(void);
|
||||
void mxs_dma_desc_free(struct mxs_dma_desc *);
|
||||
int mxs_dma_desc_append(int channel, struct mxs_dma_desc *pdesc);
|
||||
|
@ -1,5 +1,6 @@
|
||||
ifdef CONFIG_VIDEO_MXS
|
||||
obj-$(CONFIG_VIDEO_MXS) += lcd.o
|
||||
obj-$(CONFIG_VIDEO_MXS) += dma.o
|
||||
else
|
||||
obj- = __dummy__.o
|
||||
endif
|
||||
|
7
board/sharp/common/dma.c
Normal file
7
board/sharp/common/dma.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <common.h>
|
||||
#include <bootm.h>
|
||||
#include <asm/mach-imx/dma.h>
|
||||
|
||||
void board_quiesce_devices(void) {
|
||||
mxs_dma_disable(MXS_DMA_CHANNEL_AHB_APBH_LCDIF);
|
||||
}
|
@ -176,7 +176,7 @@ static int mxs_dma_enable(int channel)
|
||||
* state. It is unwise to call this function if there is ANY chance the hardware
|
||||
* is still processing a command.
|
||||
*/
|
||||
static int mxs_dma_disable(int channel)
|
||||
int mxs_dma_disable(int channel)
|
||||
{
|
||||
struct mxs_dma_chan *pchan;
|
||||
struct mxs_apbh_regs *apbh_regs =
|
||||
|
Loading…
Reference in New Issue
Block a user