/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2006 Thomas Gleixner <tglx@linutronix.de>
*
* Info:
* Contains defines, datastructures for ndfc nand controller
*/
#ifndef __LINUX_MTD_NDFC_H
#define __LINUX_MTD_NDFC_H
/* NDFC Register definitions */
#define NDFC_CMD 0 x00
#define NDFC_ALE 0 x04
#define NDFC_DATA 0 x08
#define NDFC_ECC 0 x10
#define NDFC_BCFG0 0 x30
#define NDFC_BCFG1 0 x34
#define NDFC_BCFG2 0 x38
#define NDFC_BCFG3 0 x3c
#define NDFC_CCR 0 x40
#define NDFC_STAT 0 x44
#define NDFC_HWCTL 0 x48
#define NDFC_REVID 0 x50
#define NDFC_STAT_IS_READY 0 x01000000
#define NDFC_CCR_RESET_CE 0 x80000000 /* CE Reset */
#define NDFC_CCR_RESET_ECC 0 x40000000 /* ECC Reset */
#define NDFC_CCR_RIE 0 x20000000 /* Interrupt Enable on Device Rdy */
#define NDFC_CCR_REN 0 x10000000 /* Enable wait for Rdy in LinearR */
#define NDFC_CCR_ROMEN 0 x08000000 /* Enable ROM In LinearR */
#define NDFC_CCR_ARE 0 x04000000 /* Auto-Read Enable */
#define NDFC_CCR_BS(x) (((x) & 0 x3) << 24 ) /* Select Bank on CE[x] */
#define NDFC_CCR_BS_MASK 0 x03000000 /* Select Bank */
#define NDFC_CCR_ARAC0 0 x00000000 /* 3 Addr, 1 Col 2 Row 512b page */
#define NDFC_CCR_ARAC1 0 x00001000 /* 4 Addr, 1 Col 3 Row 512b page */
#define NDFC_CCR_ARAC2 0 x00002000 /* 4 Addr, 2 Col 2 Row 2K page */
#define NDFC_CCR_ARAC3 0 x00003000 /* 5 Addr, 2 Col 3 Row 2K page */
#define NDFC_CCR_ARAC_MASK 0 x00003000 /* Auto-Read mode Addr Cycles */
#define NDFC_CCR_RPG 0 x0000C000 /* Auto-Read Page */
#define NDFC_CCR_EBCC 0 x00000004 /* EBC Configuration Completed */
#define NDFC_CCR_DHC 0 x00000002 /* Direct Hardware Control Enable */
#define NDFC_BxCFG_EN 0 x80000000 /* Bank Enable */
#define NDFC_BxCFG_CED 0 x40000000 /* nCE Style */
#define NDFC_BxCFG_SZ_MASK 0 x08000000 /* Bank Size */
#define NDFC_BxCFG_SZ_8BIT 0 x00000000 /* 8bit */
#define NDFC_BxCFG_SZ_16BIT 0 x08000000 /* 16bit */
#define NDFC_MAX_BANKS 4
struct ndfc_controller_settings {
uint32_t ccr_settings;
uint64_t ndfc_erpn;
};
struct ndfc_chip_settings {
uint32_t bank_settings;
};
#endif
Messung V0.5 in Prozent C=94 H=97 G=95
¤ Dauer der Verarbeitung: 0.7 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland