brintos

brintos / linux-shallow public Read only

0
0
Text · 1.5 KiB · 892bbb6 Raw
57 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 *  Copyright (C) 2008-2010 Samsung Electronics4 *  Kyungmin Park <kyungmin.park@samsung.com>5 */6#ifndef __SAMSUNG_ONENAND_H__7#define __SAMSUNG_ONENAND_H__8 9/*10 * OneNAND Controller11 */12#define MEM_CFG_OFFSET		0x000013#define BURST_LEN_OFFSET	0x001014#define MEM_RESET_OFFSET	0x002015#define INT_ERR_STAT_OFFSET	0x003016#define INT_ERR_MASK_OFFSET	0x004017#define INT_ERR_ACK_OFFSET	0x005018#define ECC_ERR_STAT_OFFSET	0x006019#define MANUFACT_ID_OFFSET	0x007020#define DEVICE_ID_OFFSET	0x008021#define DATA_BUF_SIZE_OFFSET	0x009022#define BOOT_BUF_SIZE_OFFSET	0x00A023#define BUF_AMOUNT_OFFSET	0x00B024#define TECH_OFFSET		0x00C025#define FBA_WIDTH_OFFSET	0x00D026#define FPA_WIDTH_OFFSET	0x00E027#define FSA_WIDTH_OFFSET	0x00F028#define TRANS_SPARE_OFFSET	0x014029#define DBS_DFS_WIDTH_OFFSET	0x016030#define INT_PIN_ENABLE_OFFSET	0x01A031#define ACC_CLOCK_OFFSET	0x01C032#define FLASH_VER_ID_OFFSET	0x01F033#define FLASH_AUX_CNTRL_OFFSET	0x0300		/* s3c64xx only */34 35#define ONENAND_MEM_RESET_HOT	0x336#define ONENAND_MEM_RESET_COLD	0x237#define ONENAND_MEM_RESET_WARM	0x138 39#define CACHE_OP_ERR		(1 << 13)40#define RST_CMP			(1 << 12)41#define RDY_ACT			(1 << 11)42#define INT_ACT			(1 << 10)43#define UNSUP_CMD		(1 << 9)44#define LOCKED_BLK		(1 << 8)45#define BLK_RW_CMP		(1 << 7)46#define ERS_CMP			(1 << 6)47#define PGM_CMP			(1 << 5)48#define LOAD_CMP		(1 << 4)49#define ERS_FAIL		(1 << 3)50#define PGM_FAIL		(1 << 2)51#define INT_TO			(1 << 1)52#define LD_FAIL_ECC_ERR		(1 << 0)53 54#define TSRF			(1 << 0)55 56#endif57