Exemple #1
0
Fichier : nand.c Projet : 7LK/McWRT
static void xway_read_buf(struct mtd_info *mtd, uint8_t *buf, int len)
{
	int i;

	for (i = 0; i < len; i++)
	{
		unsigned char res8 =  ltq_r8((void __iomem *)(NAND_BASE_ADDRESS | (NAND_READ_DATA)));
		buf[i] = res8;
	}
}
Exemple #2
0
unsigned char
ltq_nand_read_byte(struct mtd_info *mtd)
{
	return ltq_r8((void __iomem *)(NAND_BASE_ADDRESS | (NAND_READ_DATA)));
}