wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000-2002 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <watchdog.h> |
| 10 | |
| 11 | #include <mpc8xx.h> |
| 12 | #include <commproc.h> |
| 13 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 14 | #if defined(CONFIG_SYS_RTCSC) || defined(CONFIG_SYS_RMDS) |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 15 | DECLARE_GLOBAL_DATA_PTR; |
| 16 | #endif |
| 17 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 18 | #if defined(CONFIG_SYS_I2C_UCODE_PATCH) || defined(CONFIG_SYS_SPI_UCODE_PATCH) || \ |
| 19 | defined(CONFIG_SYS_SMC_UCODE_PATCH) |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 20 | void cpm_load_patch (volatile immap_t * immr); |
| 21 | #endif |
| 22 | |
| 23 | /* |
| 24 | * Breath some life into the CPU... |
| 25 | * |
| 26 | * Set up the memory map, |
| 27 | * initialize a bunch of registers, |
| 28 | * initialize the UPM's |
| 29 | */ |
| 30 | void cpu_init_f (volatile immap_t * immr) |
| 31 | { |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 32 | volatile memctl8xx_t *memctl = &immr->im_memctl; |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 33 | # ifdef CONFIG_SYS_PLPRCR |
wdenk | 180d3f7 | 2004-01-04 16:28:35 +0000 | [diff] [blame] | 34 | ulong mfmask; |
wdenk | c178d3d | 2004-01-24 20:25:54 +0000 | [diff] [blame] | 35 | # endif |
wdenk | 3bac351 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 36 | ulong reg; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 37 | |
| 38 | /* SYPCR - contains watchdog control (11-9) */ |
| 39 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 40 | immr->im_siu_conf.sc_sypcr = CONFIG_SYS_SYPCR; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 41 | |
| 42 | #if defined(CONFIG_WATCHDOG) |
| 43 | reset_8xx_watchdog (immr); |
| 44 | #endif /* CONFIG_WATCHDOG */ |
| 45 | |
| 46 | /* SIUMCR - contains debug pin configuration (11-6) */ |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 47 | #ifndef CONFIG_SVM_SC8xx |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 48 | immr->im_siu_conf.sc_siumcr |= CONFIG_SYS_SIUMCR; |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 49 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 50 | immr->im_siu_conf.sc_siumcr = CONFIG_SYS_SIUMCR; |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 51 | #endif |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 52 | /* initialize timebase status and control register (11-26) */ |
| 53 | /* unlock TBSCRK */ |
| 54 | |
| 55 | immr->im_sitk.sitk_tbscrk = KAPWR_KEY; |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 56 | immr->im_sit.sit_tbscr = CONFIG_SYS_TBSCR; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 57 | |
| 58 | /* initialize the PIT (11-31) */ |
| 59 | |
| 60 | immr->im_sitk.sitk_piscrk = KAPWR_KEY; |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 61 | immr->im_sit.sit_piscr = CONFIG_SYS_PISCR; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 62 | |
wdenk | 1cb8e98 | 2003-03-06 21:55:29 +0000 | [diff] [blame] | 63 | /* System integration timers. Don't change EBDF! (15-27) */ |
| 64 | |
| 65 | immr->im_clkrstk.cark_sccrk = KAPWR_KEY; |
| 66 | reg = immr->im_clkrst.car_sccr; |
| 67 | reg &= SCCR_MASK; |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 68 | reg |= CONFIG_SYS_SCCR; |
wdenk | 1cb8e98 | 2003-03-06 21:55:29 +0000 | [diff] [blame] | 69 | immr->im_clkrst.car_sccr = reg; |
| 70 | |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 71 | /* PLL (CPU clock) settings (15-30) */ |
| 72 | |
| 73 | immr->im_clkrstk.cark_plprcrk = KAPWR_KEY; |
| 74 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 75 | /* If CONFIG_SYS_PLPRCR (set in the various *_config.h files) tries to |
| 76 | * set the MF field, then just copy CONFIG_SYS_PLPRCR over car_plprcr, |
| 77 | * otherwise OR in CONFIG_SYS_PLPRCR so we do not change the current MF |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 78 | * field value. |
wdenk | 180d3f7 | 2004-01-04 16:28:35 +0000 | [diff] [blame] | 79 | * |
| 80 | * For newer (starting MPC866) chips PLPRCR layout is different. |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 81 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 82 | #ifdef CONFIG_SYS_PLPRCR |
wdenk | 180d3f7 | 2004-01-04 16:28:35 +0000 | [diff] [blame] | 83 | if (get_immr(0xFFFF) >= MPC8xx_NEW_CLK) |
| 84 | mfmask = PLPRCR_MFACT_MSK; |
| 85 | else |
| 86 | mfmask = PLPRCR_MF_MSK; |
| 87 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 88 | if ((CONFIG_SYS_PLPRCR & mfmask) != 0) |
| 89 | reg = CONFIG_SYS_PLPRCR; /* reset control bits */ |
wdenk | 180d3f7 | 2004-01-04 16:28:35 +0000 | [diff] [blame] | 90 | else { |
| 91 | reg = immr->im_clkrst.car_plprcr; |
| 92 | reg &= mfmask; /* isolate MF-related fields */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 93 | reg |= CONFIG_SYS_PLPRCR; /* reset control bits */ |
wdenk | 180d3f7 | 2004-01-04 16:28:35 +0000 | [diff] [blame] | 94 | } |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 95 | immr->im_clkrst.car_plprcr = reg; |
wdenk | c178d3d | 2004-01-24 20:25:54 +0000 | [diff] [blame] | 96 | #endif |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 97 | |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 98 | /* |
| 99 | * Memory Controller: |
| 100 | */ |
| 101 | |
| 102 | /* perform BR0 reset that MPC850 Rev. A can't guarantee */ |
| 103 | reg = memctl->memc_br0; |
| 104 | reg &= BR_PS_MSK; /* Clear everything except Port Size bits */ |
| 105 | reg |= BR_V; /* then add just the "Bank Valid" bit */ |
| 106 | memctl->memc_br0 = reg; |
| 107 | |
| 108 | /* Map banks 0 (and maybe 1) to the FLASH banks 0 (and 1) at |
| 109 | * preliminary addresses - these have to be modified later |
| 110 | * when FLASH size has been determined |
| 111 | * |
| 112 | * Depending on the size of the memory region defined by |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 113 | * CONFIG_SYS_OR0_REMAP some boards (wide address mask) allow to map the |
| 114 | * CONFIG_SYS_MONITOR_BASE, while others (narrower address mask) can't |
| 115 | * map CONFIG_SYS_MONITOR_BASE. |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 116 | * |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 117 | * For example, for CONFIG_IVMS8, the CONFIG_SYS_MONITOR_BASE is |
| 118 | * 0xff000000, but CONFIG_SYS_OR0_REMAP's address mask is 0xfff80000. |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 119 | * |
| 120 | * If BR0 wasn't loaded with address base 0xff000000, then BR0's |
| 121 | * base address remains as 0x00000000. However, the address mask |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 122 | * have been narrowed to 512Kb, so CONFIG_SYS_MONITOR_BASE wasn't mapped |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 123 | * into the Bank0. |
| 124 | * |
| 125 | * This is why CONFIG_IVMS8 and similar boards must load BR0 with |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 126 | * CONFIG_SYS_BR0_PRELIM in advance. |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 127 | * |
| 128 | * [Thanks to Michael Liao for this explanation. |
| 129 | * I owe him a free beer. - wd] |
| 130 | */ |
| 131 | |
Wolfgang Denk | 0fe247b | 2010-07-05 22:46:33 +0200 | [diff] [blame] | 132 | #if defined(CONFIG_HERMES) || \ |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 133 | defined(CONFIG_ICU862) || \ |
| 134 | defined(CONFIG_IP860) || \ |
| 135 | defined(CONFIG_IVML24) || \ |
| 136 | defined(CONFIG_IVMS8) || \ |
| 137 | defined(CONFIG_LWMON) || \ |
| 138 | defined(CONFIG_MHPC) || \ |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 139 | defined(CONFIG_R360MPI) || \ |
wdenk | 7e78036 | 2004-04-08 22:31:29 +0000 | [diff] [blame] | 140 | defined(CONFIG_RMU) || \ |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 141 | defined(CONFIG_RPXCLASSIC) || \ |
| 142 | defined(CONFIG_RPXLITE) || \ |
Markus Klotzbuecher | b02d017 | 2006-07-12 08:48:24 +0200 | [diff] [blame] | 143 | defined(CONFIG_SPC1920) || \ |
wdenk | b028f71 | 2003-12-07 21:39:28 +0000 | [diff] [blame] | 144 | defined(CONFIG_SPD823TS) |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 145 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 146 | memctl->memc_br0 = CONFIG_SYS_BR0_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 147 | #endif |
| 148 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 149 | #if defined(CONFIG_SYS_OR0_REMAP) |
| 150 | memctl->memc_or0 = CONFIG_SYS_OR0_REMAP; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 151 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 152 | #if defined(CONFIG_SYS_OR1_REMAP) |
| 153 | memctl->memc_or1 = CONFIG_SYS_OR1_REMAP; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 154 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 155 | #if defined(CONFIG_SYS_OR5_REMAP) |
| 156 | memctl->memc_or5 = CONFIG_SYS_OR5_REMAP; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 157 | #endif |
| 158 | |
| 159 | /* now restrict to preliminary range */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 160 | memctl->memc_br0 = CONFIG_SYS_BR0_PRELIM; |
| 161 | memctl->memc_or0 = CONFIG_SYS_OR0_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 162 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 163 | #if (defined(CONFIG_SYS_OR1_PRELIM) && defined(CONFIG_SYS_BR1_PRELIM)) |
| 164 | memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM; |
| 165 | memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 166 | #endif |
| 167 | |
| 168 | #if defined(CONFIG_IP860) /* disable CS0 now that Flash is mapped on CS1 */ |
| 169 | memctl->memc_br0 = 0; |
| 170 | #endif |
| 171 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 172 | #if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM) |
| 173 | memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM; |
| 174 | memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 175 | #endif |
| 176 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 177 | #if defined(CONFIG_SYS_OR3_PRELIM) && defined(CONFIG_SYS_BR3_PRELIM) |
| 178 | memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM; |
| 179 | memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 180 | #endif |
| 181 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 182 | #if defined(CONFIG_SYS_OR4_PRELIM) && defined(CONFIG_SYS_BR4_PRELIM) |
| 183 | memctl->memc_or4 = CONFIG_SYS_OR4_PRELIM; |
| 184 | memctl->memc_br4 = CONFIG_SYS_BR4_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 185 | #endif |
| 186 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 187 | #if defined(CONFIG_SYS_OR5_PRELIM) && defined(CONFIG_SYS_BR5_PRELIM) |
| 188 | memctl->memc_or5 = CONFIG_SYS_OR5_PRELIM; |
| 189 | memctl->memc_br5 = CONFIG_SYS_BR5_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 190 | #endif |
| 191 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 192 | #if defined(CONFIG_SYS_OR6_PRELIM) && defined(CONFIG_SYS_BR6_PRELIM) |
| 193 | memctl->memc_or6 = CONFIG_SYS_OR6_PRELIM; |
| 194 | memctl->memc_br6 = CONFIG_SYS_BR6_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 195 | #endif |
| 196 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 197 | #if defined(CONFIG_SYS_OR7_PRELIM) && defined(CONFIG_SYS_BR7_PRELIM) |
| 198 | memctl->memc_or7 = CONFIG_SYS_OR7_PRELIM; |
| 199 | memctl->memc_br7 = CONFIG_SYS_BR7_PRELIM; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 200 | #endif |
| 201 | |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 202 | /* |
| 203 | * Reset CPM |
| 204 | */ |
| 205 | immr->im_cpm.cp_cpcr = CPM_CR_RST | CPM_CR_FLG; |
| 206 | do { /* Spin until command processed */ |
| 207 | __asm__ ("eieio"); |
| 208 | } while (immr->im_cpm.cp_cpcr & CPM_CR_FLG); |
| 209 | |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 210 | #ifdef CONFIG_RPXCLASSIC |
| 211 | rpxclassic_init (); |
| 212 | #endif |
| 213 | |
Jean-Christophe PLAGNIOL-VILLARD | 9314cee | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 214 | #if defined(CONFIG_RPXLITE) && defined(CONFIG_ENV_IS_IN_NVRAM) |
wdenk | e63c8ee | 2004-06-09 21:04:48 +0000 | [diff] [blame] | 215 | rpxlite_init (); |
| 216 | #endif |
| 217 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 218 | #ifdef CONFIG_SYS_RCCR /* must be done before cpm_load_patch() */ |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 219 | /* write config value */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 220 | immr->im_cpm.cp_rccr = CONFIG_SYS_RCCR; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 221 | #endif |
| 222 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 223 | #if defined(CONFIG_SYS_I2C_UCODE_PATCH) || defined(CONFIG_SYS_SPI_UCODE_PATCH) || \ |
| 224 | defined(CONFIG_SYS_SMC_UCODE_PATCH) |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 225 | cpm_load_patch (immr); /* load mpc8xx microcode patch */ |
| 226 | #endif |
| 227 | } |
| 228 | |
| 229 | /* |
| 230 | * initialize higher level parts of CPU like timers |
| 231 | */ |
| 232 | int cpu_init_r (void) |
| 233 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 234 | #if defined(CONFIG_SYS_RTCSC) || defined(CONFIG_SYS_RMDS) |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 235 | bd_t *bd = gd->bd; |
| 236 | volatile immap_t *immr = (volatile immap_t *) (bd->bi_immr_base); |
| 237 | #endif |
| 238 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 239 | #ifdef CONFIG_SYS_RTCSC |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 240 | /* Unlock RTSC register */ |
| 241 | immr->im_sitk.sitk_rtcsck = KAPWR_KEY; |
| 242 | /* write config value */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 243 | immr->im_sit.sit_rtcsc = CONFIG_SYS_RTCSC; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 244 | #endif |
| 245 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 246 | #ifdef CONFIG_SYS_RMDS |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 247 | /* write config value */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 248 | immr->im_cpm.cp_rmds = CONFIG_SYS_RMDS; |
wdenk | 4a9cbbe | 2002-08-27 09:48:53 +0000 | [diff] [blame] | 249 | #endif |
| 250 | return (0); |
| 251 | } |