ACPI: Do not try to set up acpi processor stuff on cores exceeding maxcpus=
[zen-stable.git] / arch / arm / mach-stmp378x / include / mach / regs-bch.h
blob532d24650717eb4e1fe7a07e9165fb87244b9d0a
1 /*
2 * stmp378x: BCH register definitions
4 * Copyright (c) 2008 Freescale Semiconductor
5 * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #define REGS_BCH_BASE (STMP3XXX_REGS_BASE + 0xA000)
22 #define REGS_BCH_PHYS 0x8000A000
23 #define REGS_BCH_SIZE 0x2000
25 #define HW_BCH_CTRL 0x0
26 #define BM_BCH_CTRL_COMPLETE_IRQ 0x00000001
27 #define BP_BCH_CTRL_COMPLETE_IRQ 0
28 #define BM_BCH_CTRL_COMPLETE_IRQ_EN 0x00000100
30 #define HW_BCH_STATUS0 0x10
31 #define BM_BCH_STATUS0_UNCORRECTABLE 0x00000004
32 #define BM_BCH_STATUS0_CORRECTED 0x00000008
33 #define BM_BCH_STATUS0_STATUS_BLK0 0x0000FF00
34 #define BP_BCH_STATUS0_STATUS_BLK0 8
35 #define BM_BCH_STATUS0_COMPLETED_CE 0x000F0000
36 #define BP_BCH_STATUS0_COMPLETED_CE 16
38 #define HW_BCH_LAYOUTSELECT 0x70
40 #define HW_BCH_FLASH0LAYOUT0 0x80
41 #define BM_BCH_FLASH0LAYOUT0_DATA0_SIZE 0x00000FFF
42 #define BP_BCH_FLASH0LAYOUT0_DATA0_SIZE 0
43 #define BM_BCH_FLASH0LAYOUT0_ECC0 0x0000F000
44 #define BP_BCH_FLASH0LAYOUT0_ECC0 12
45 #define BM_BCH_FLASH0LAYOUT0_META_SIZE 0x00FF0000
46 #define BP_BCH_FLASH0LAYOUT0_META_SIZE 16
47 #define BM_BCH_FLASH0LAYOUT0_NBLOCKS 0xFF000000
48 #define BP_BCH_FLASH0LAYOUT0_NBLOCKS 24
49 #define BM_BCH_FLASH0LAYOUT1_DATAN_SIZE 0x00000FFF
50 #define BP_BCH_FLASH0LAYOUT1_DATAN_SIZE 0
51 #define BM_BCH_FLASH0LAYOUT1_ECCN 0x0000F000
52 #define BP_BCH_FLASH0LAYOUT1_ECCN 12
53 #define BM_BCH_FLASH0LAYOUT1_PAGE_SIZE 0xFFFF0000
54 #define BP_BCH_FLASH0LAYOUT1_PAGE_SIZE 16
56 #define HW_BCH_BLOCKNAME 0x150