aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm')
-rw-r--r--include/asm-arm/arch-at91/at91_ecc.h38
-rw-r--r--include/asm-arm/arch-at91/board.h4
2 files changed, 2 insertions, 40 deletions
diff --git a/include/asm-arm/arch-at91/at91_ecc.h b/include/asm-arm/arch-at91/at91_ecc.h
deleted file mode 100644
index 1e5a8caca2d1..000000000000
--- a/include/asm-arm/arch-at91/at91_ecc.h
+++ /dev/null
@@ -1,38 +0,0 @@
1/*
2 * include/asm-arm/arch-at91/at91_ecc.h
3 *
4 * Error Corrected Code Controller (ECC) - System peripherals regsters.
5 * Based on AT91SAM9260 datasheet revision B.
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 */
12
13#ifndef AT91_ECC_H
14#define AT91_ECC_H
15
16#define AT91_ECC_CR 0x00 /* Control register */
17#define AT91_ECC_RST (1 << 0) /* Reset parity */
18
19#define AT91_ECC_MR 0x04 /* Mode register */
20#define AT91_ECC_PAGESIZE (3 << 0) /* Page Size */
21#define AT91_ECC_PAGESIZE_528 (0)
22#define AT91_ECC_PAGESIZE_1056 (1)
23#define AT91_ECC_PAGESIZE_2112 (2)
24#define AT91_ECC_PAGESIZE_4224 (3)
25
26#define AT91_ECC_SR 0x08 /* Status register */
27#define AT91_ECC_RECERR (1 << 0) /* Recoverable Error */
28#define AT91_ECC_ECCERR (1 << 1) /* ECC Single Bit Error */
29#define AT91_ECC_MULERR (1 << 2) /* Multiple Errors */
30
31#define AT91_ECC_PR 0x0c /* Parity register */
32#define AT91_ECC_BITADDR (0xf << 0) /* Bit Error Address */
33#define AT91_ECC_WORDADDR (0xfff << 4) /* Word Error Address */
34
35#define AT91_ECC_NPR 0x10 /* NParity register */
36#define AT91_ECC_NPARITY (0xffff << 0) /* NParity */
37
38#endif
diff --git a/include/asm-arm/arch-at91/board.h b/include/asm-arm/arch-at91/board.h
index dc189f01c5b3..6296922a6843 100644
--- a/include/asm-arm/arch-at91/board.h
+++ b/include/asm-arm/arch-at91/board.h
@@ -85,7 +85,7 @@ struct at91_usbh_data {
85extern void __init at91_add_device_usbh(struct at91_usbh_data *data); 85extern void __init at91_add_device_usbh(struct at91_usbh_data *data);
86 86
87 /* NAND / SmartMedia */ 87 /* NAND / SmartMedia */
88struct at91_nand_data { 88struct atmel_nand_data {
89 u8 enable_pin; /* chip enable */ 89 u8 enable_pin; /* chip enable */
90 u8 det_pin; /* card detect */ 90 u8 det_pin; /* card detect */
91 u8 rdy_pin; /* ready/busy */ 91 u8 rdy_pin; /* ready/busy */
@@ -94,7 +94,7 @@ struct at91_nand_data {
94 u8 bus_width_16; /* buswidth is 16 bit */ 94 u8 bus_width_16; /* buswidth is 16 bit */
95 struct mtd_partition* (*partition_info)(int, int*); 95 struct mtd_partition* (*partition_info)(int, int*);
96}; 96};
97extern void __init at91_add_device_nand(struct at91_nand_data *data); 97extern void __init at91_add_device_nand(struct atmel_nand_data *data);
98 98
99 /* I2C*/ 99 /* I2C*/
100extern void __init at91_add_device_i2c(struct i2c_board_info *devices, int nr_devices); 100extern void __init at91_add_device_i2c(struct i2c_board_info *devices, int nr_devices);