도와주세요!!
답변 감사합니다.
WDT는 어떤 드라이버를 사용하고 있는지요?
SPI는 6410것을 사용하면 컴파일시 에러가 나타납니다.
CC [M] drivers/spi/spi_s3c64xx.o
drivers/spi/spi_s3c64xx.c: In function 'enable_datapath':
drivers/spi/spi_s3c64xx.c:307: error: implicit declaration of function 's3c2410_dma_config'
drivers/spi/spi_s3c64xx.c:308: error: implicit declaration of function 's3c2410_dma_enqueue'
drivers/spi/spi_s3c64xx.c:310: error: implicit declaration of function 's3c2410_dma_ctrl'
drivers/spi/spi_s3c64xx.c:310: error: 'S3C2410_DMAOP_START' undeclared (first use in this function)
drivers/spi/spi_s3c64xx.c:310: error: (Each undeclared identifier is reported only once
drivers/spi/spi_s3c64xx.c:310: error: for each function it appears in.)
drivers/spi/spi_s3c64xx.c:313: warning: passing argument 1 of 'sdd->do_xfer' discards qualifiers from pointer target type
drivers/spi/spi_s3c64xx.c:313: note: expected 'void *' but argument is of type 'const void *'
drivers/spi/spi_s3c64xx.c: At top level:
drivers/spi/spi_s3c64xx.c:511: warning: 'enum s3c2410_dma_buffresult' declared inside parameter list
drivers/spi/spi_s3c64xx.c:511: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/spi/spi_s3c64xx.c:511: warning: 'struct s3c2410_dma_chan' declared inside parameter list
drivers/spi/spi_s3c64xx.c:511: error: parameter 4 ('res') has incomplete type
drivers/spi/spi_s3c64xx.c: In function 's3c64xx_spi_dma_rxcb':
drivers/spi/spi_s3c64xx.c:518: error: 'S3C2410_RES_OK' undeclared (first use in this function)
drivers/spi/spi_s3c64xx.c: At top level:
drivers/spi/spi_s3c64xx.c:531: warning: 'enum s3c2410_dma_buffresult' declared inside parameter list
drivers/spi/spi_s3c64xx.c:531: warning: 'struct s3c2410_dma_chan' declared inside parameter list
drivers/spi/spi_s3c64xx.c:531: error: parameter 4 ('res') has incomplete type
drivers/spi/spi_s3c64xx.c: In function 's3c64xx_spi_dma_txcb':
drivers/spi/spi_s3c64xx.c:538: error: 'S3C2410_RES_OK' undeclared (first use in this function)
drivers/spi/spi_s3c64xx.c: In function 's3c64xx_spi_map_mssg':
drivers/spi/spi_s3c64xx.c:576: warning: passing argument 2 of 'dma_map_single' discards qualifiers from pointer target type
/home/pdh0085/develope/light_dhplab/prosoft/kernels/linux-2.6.35-s5pv210/arch/arm/include/asm/dma-mapping.h:350: note: expected 'void *' but argument is of type 'const void *'
drivers/spi/spi_s3c64xx.c: In function 'handle_msg':
drivers/spi/spi_s3c64xx.c:724: error: 'S3C2410_DMAOP_FLUSH' undeclared (first use in this function)
drivers/spi/spi_s3c64xx.c: In function 'acquire_dma':
drivers/spi/spi_s3c64xx.c:768: error: implicit declaration of function 's3c2410_dma_request'
drivers/spi/spi_s3c64xx.c:773: error: implicit declaration of function 's3c2410_dma_set_buffdone_fn'
drivers/spi/spi_s3c64xx.c:774: error: implicit declaration of function 's3c2410_dma_devconfig'
drivers/spi/spi_s3c64xx.c:774: error: 'S3C2410_DMASRC_HW' undeclared (first use in this function)
drivers/spi/spi_s3c64xx.c:780: error: implicit declaration of function 's3c2410_dma_free'
drivers/spi/spi_s3c64xx.c:784: error: 'S3C2410_DMASRC_MEM' undeclared (first use in this function)
make[3]: *** [drivers/spi/spi_s3c64xx.o] Error 1
make[2]: *** [drivers/spi] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/pdh0085/develope/light_dhplab/prosoft/kernels/linux-2.6.35-s5pv210'
make: *** [modules-build] Error 2
답변 부탁드리겠습니다.
arch/arm/mach-s5pv210/mach-ezs5pv210.c 에서 platform_device 정보를 등록 합니다.
wdt는 위 파일에서 설정하고 있습니다.
spi는 s3c6410 용 소스코드를 사용 합니다.
rtc 같은경우 menuconfig를 통해서 추적해 보니
drivers/rtc/rtc-ds1307.c 를 사용하고 있습니다.