Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004 Freescale Semiconductor, Inc. |
| 3 | * Liberty Eran (liberty@freescale.com) |
| 4 | */ |
| 5 | |
| 6 | #ifndef __E300_H__ |
| 7 | #define __E300_H__ |
| 8 | |
Scott Wood | 95e7ef8 | 2007-04-16 14:34:16 -0500 | [diff] [blame] | 9 | #define PVR_E300C1 0x80830000 |
| 10 | #define PVR_E300C2 0x80840000 |
| 11 | #define PVR_E300C3 0x80850000 |
Rafal Jaworowski | 8993e54 | 2007-07-27 14:43:59 +0200 | [diff] [blame] | 12 | #define PVR_E300C4 0x80860000 |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 13 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 14 | /* |
| 15 | * Hardware Implementation-Dependent Register 0 (HID0) |
| 16 | */ |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 17 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 18 | /* #define HID0 1008 already defined in processor.h */ |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 19 | #define HID0_MASK_MACHINE_CHECK 0x00000000 |
| 20 | #define HID0_ENABLE_MACHINE_CHECK 0x80000000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 21 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 22 | #define HID0_DISABLE_CACHE_PARITY 0x00000000 |
| 23 | #define HID0_ENABLE_CACHE_PARITY 0x40000000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 24 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 25 | #define HID0_DISABLE_ADDRESS_PARITY 0x00000000 /* on mpc8349ads must be disabled */ |
| 26 | #define HID0_ENABLE_ADDRESS_PARITY 0x20000000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 27 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 28 | #define HID0_DISABLE_DATA_PARITY 0x00000000 /* on mpc8349ads must be disabled */ |
| 29 | #define HID0_ENABLE_DATE_PARITY 0x10000000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 30 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 31 | #define HID0_CORE_CLK_OUT 0x00000000 |
| 32 | #define HID0_CORE_CLK_OUT_DIV_2 0x08000000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 33 | |
| 34 | #define HID0_ENABLE_ARTRY_OUT_PRECHARGE 0x00000000 /* on mpc8349ads must be enabled */ |
| 35 | #define HID0_DISABLE_ARTRY_OUT_PRECHARGE 0x01000000 |
| 36 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 37 | #define HID0_DISABLE_DOSE_MODE 0x00000000 |
| 38 | #define HID0_ENABLE_DOSE_MODE 0x00800000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 39 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 40 | #define HID0_DISABLE_NAP_MODE 0x00000000 |
| 41 | #define HID0_ENABLE_NAP_MODE 0x00400000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 42 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 43 | #define HID0_DISABLE_SLEEP_MODE 0x00000000 |
| 44 | #define HID0_ENABLE_SLEEP_MODE 0x00200000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 45 | |
| 46 | #define HID0_DISABLE_DYNAMIC_POWER_MANAGMENT 0x00000000 |
| 47 | #define HID0_ENABLE_DYNAMIC_POWER_MANAGMENT 0x00100000 |
| 48 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 49 | #define HID0_SOFT_RESET 0x00010000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 50 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 51 | #define HID0_DISABLE_INSTRUCTION_CACHE 0x00000000 |
| 52 | #define HID0_ENABLE_INSTRUCTION_CACHE 0x00008000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 53 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 54 | #define HID0_DISABLE_DATA_CACHE 0x00000000 |
| 55 | #define HID0_ENABLE_DATA_CACHE 0x00004000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 56 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 57 | #define HID0_LOCK_INSTRUCTION_CACHE 0x00002000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 58 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 59 | #define HID0_LOCK_DATA_CACHE 0x00001000 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 60 | |
| 61 | #define HID0_INVALIDATE_INSTRUCTION_CACHE 0x00000800 |
| 62 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 63 | #define HID0_INVALIDATE_DATA_CACHE 0x00000400 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 64 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 65 | #define HID0_DISABLE_M_BIT 0x00000000 |
| 66 | #define HID0_ENABLE_M_BIT 0x00000080 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 67 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 68 | #define HID0_FBIOB 0x00000010 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 69 | |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 70 | #define HID0_DISABLE_ADDRESS_BROADCAST 0x00000000 |
| 71 | #define HID0_ENABLE_ADDRESS_BROADCAST 0x00000008 |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 72 | |
| 73 | #define HID0_ENABLE_NOOP_DCACHE_INSTRUCTION 0x00000000 |
| 74 | #define HID0_DISABLE_NOOP_DCACHE_INSTRUCTION 0x00000001 |
| 75 | |
| 76 | /* |
| 77 | * Hardware Implementation-Dependent Register 2 (HID2) |
| 78 | */ |
| 79 | #define HID2 1011 |
| 80 | |
| 81 | #define HID2_LET 0x08000000 |
| 82 | #define HID2_HBE 0x00040000 |
| 83 | #define HID2_IWLCK_000 0x00000000 /* no ways locked */ |
| 84 | #define HID2_IWLCK_001 0x00002000 /* way 0 locked */ |
| 85 | #define HID2_IWLCK_010 0x00004000 /* way 0 through way 1 locked */ |
| 86 | #define HID2_IWLCK_011 0x00006000 /* way 0 through way 2 locked */ |
| 87 | #define HID2_IWLCK_100 0x00008000 /* way 0 through way 3 locked */ |
| 88 | #define HID2_IWLCK_101 0x0000A000 /* way 0 through way 4 locked */ |
| 89 | #define HID2_IWLCK_110 0x0000C000 /* way 0 through way 5 locked */ |
| 90 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 91 | #endif /* __E300_H__ */ |