임베디드
[S3C6410] cs8900 device driver
shellbt
2011. 3. 10. 13:07
1. arch/arm/mach-s3c6400/include/mach/map.h에 내용 추가
/* CS8900 */
#define S3C64XX_PA_CS8900 (0x18800000)
#define S3C64XX_VA_CS8900 S3C_ADDR(0x03b00000)
#define S3C64XX_PA_CS8900 (0x18800000)
#define S3C64XX_VA_CS8900 S3C_ADDR(0x03b00000)
2. arch/arm/mach-s3c6410/mach-smdk6410.c 에 내용 추가
struct map_desc smdk6410_iodesc[] = {
{
.virtual = (unsigned long)S3C64XX_VA_CS8900,
.pfn = __phys_to_pfn(S3C64XX_PA_CS8900),
.length = SZ_4K,
.type = MT_DEVICE,
},
};
{
.virtual = (unsigned long)S3C64XX_VA_CS8900,
.pfn = __phys_to_pfn(S3C64XX_PA_CS8900),
.length = SZ_4K,
.type = MT_DEVICE,
},
};
3. 첨부 파일 사용
4. 인터럽트, 어드레스 같은 보드 특성 값은 재설정