도와주세요!!
답변 감사합니다.
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
답변 부탁드리겠습니다.
디바이스 WATCHDOG과 SPI는 S5PV210의 기본 기능 아닌가요?
기본기능이라면 기본기능 포팅도 모두 이루어 지지 않았는데 파셨다는 것이 되는데 이건 아니겠죠?
모듈 컴파일을 하신건가요?
현재 SPI는 CONFIG_S3C64XX_DEV_SPI 설정이 안되어 있어 등록되지 않습니다.
CONFIG_S3C64XX_DEV_SPI 설정을 하시더라도 플랫폼 정보만 등록하기 때문에
디바이스 드라이버는 직접 올리셔야 합니다.
WATCHDOG 또한 플랫폼 정보만 등록하고 있습니다.
결론적으로 WATCHDOG, spi는 현재 커널에서 사용하고 있지 않습니다.
필요하시다면 커널 옵션을 변경하여 디바이스 드라이버를 포함 시켜주셔야 합니다
경우에따라 디바이스 드라이버 소스를 수정해야 할지도 모릅니다.