soc.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. /*
  2. * (C) Copyright 2007
  3. * Sascha Hauer, Pengutronix
  4. *
  5. * (C) Copyright 2009 Freescale Semiconductor, Inc.
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #include <common.h>
  10. #include <asm/armv7.h>
  11. #include <asm/bootm.h>
  12. #include <asm/pl310.h>
  13. #include <asm/errno.h>
  14. #include <asm/io.h>
  15. #include <asm/arch/imx-regs.h>
  16. #include <asm/arch/clock.h>
  17. #include <asm/arch/sys_proto.h>
  18. #include <asm/imx-common/boot_mode.h>
  19. #include <asm/imx-common/dma.h>
  20. #include <stdbool.h>
  21. #include <asm/arch/mxc_hdmi.h>
  22. #include <asm/arch/crm_regs.h>
  23. #include <asm/bootm.h>
  24. #include <dm.h>
  25. #include <imx_thermal.h>
  26. enum ldo_reg {
  27. LDO_ARM,
  28. LDO_SOC,
  29. LDO_PU,
  30. };
  31. struct scu_regs {
  32. u32 ctrl;
  33. u32 config;
  34. u32 status;
  35. u32 invalidate;
  36. u32 fpga_rev;
  37. };
  38. #if defined(CONFIG_IMX6_THERMAL)
  39. static const struct imx_thermal_plat imx6_thermal_plat = {
  40. .regs = (void *)ANATOP_BASE_ADDR,
  41. .fuse_bank = 1,
  42. .fuse_word = 6,
  43. };
  44. U_BOOT_DEVICE(imx6_thermal) = {
  45. .name = "imx_thermal",
  46. .platdata = &imx6_thermal_plat,
  47. };
  48. #endif
  49. u32 get_nr_cpus(void)
  50. {
  51. struct scu_regs *scu = (struct scu_regs *)SCU_BASE_ADDR;
  52. return readl(&scu->config) & 3;
  53. }
  54. u32 get_cpu_rev(void)
  55. {
  56. struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR;
  57. u32 reg = readl(&anatop->digprog_sololite);
  58. u32 type = ((reg >> 16) & 0xff);
  59. if (type != MXC_CPU_MX6SL) {
  60. reg = readl(&anatop->digprog);
  61. struct scu_regs *scu = (struct scu_regs *)SCU_BASE_ADDR;
  62. u32 cfg = readl(&scu->config) & 3;
  63. type = ((reg >> 16) & 0xff);
  64. if (type == MXC_CPU_MX6DL) {
  65. if (!cfg)
  66. type = MXC_CPU_MX6SOLO;
  67. }
  68. if (type == MXC_CPU_MX6Q) {
  69. if (cfg == 1)
  70. type = MXC_CPU_MX6D;
  71. }
  72. }
  73. reg &= 0xff; /* mx6 silicon revision */
  74. return (type << 12) | (reg + 0x10);
  75. }
  76. #ifdef CONFIG_REVISION_TAG
  77. u32 __weak get_board_rev(void)
  78. {
  79. u32 cpurev = get_cpu_rev();
  80. u32 type = ((cpurev >> 12) & 0xff);
  81. if (type == MXC_CPU_MX6SOLO)
  82. cpurev = (MXC_CPU_MX6DL) << 12 | (cpurev & 0xFFF);
  83. if (type == MXC_CPU_MX6D)
  84. cpurev = (MXC_CPU_MX6Q) << 12 | (cpurev & 0xFFF);
  85. return cpurev;
  86. }
  87. #endif
  88. void init_aips(void)
  89. {
  90. struct aipstz_regs *aips1, *aips2;
  91. #ifdef CONFIG_MX6SX
  92. struct aipstz_regs *aips3;
  93. #endif
  94. aips1 = (struct aipstz_regs *)AIPS1_BASE_ADDR;
  95. aips2 = (struct aipstz_regs *)AIPS2_BASE_ADDR;
  96. #ifdef CONFIG_MX6SX
  97. aips3 = (struct aipstz_regs *)AIPS3_CONFIG_BASE_ADDR;
  98. #endif
  99. /*
  100. * Set all MPROTx to be non-bufferable, trusted for R/W,
  101. * not forced to user-mode.
  102. */
  103. writel(0x77777777, &aips1->mprot0);
  104. writel(0x77777777, &aips1->mprot1);
  105. writel(0x77777777, &aips2->mprot0);
  106. writel(0x77777777, &aips2->mprot1);
  107. /*
  108. * Set all OPACRx to be non-bufferable, not require
  109. * supervisor privilege level for access,allow for
  110. * write access and untrusted master access.
  111. */
  112. writel(0x00000000, &aips1->opacr0);
  113. writel(0x00000000, &aips1->opacr1);
  114. writel(0x00000000, &aips1->opacr2);
  115. writel(0x00000000, &aips1->opacr3);
  116. writel(0x00000000, &aips1->opacr4);
  117. writel(0x00000000, &aips2->opacr0);
  118. writel(0x00000000, &aips2->opacr1);
  119. writel(0x00000000, &aips2->opacr2);
  120. writel(0x00000000, &aips2->opacr3);
  121. writel(0x00000000, &aips2->opacr4);
  122. #ifdef CONFIG_MX6SX
  123. /*
  124. * Set all MPROTx to be non-bufferable, trusted for R/W,
  125. * not forced to user-mode.
  126. */
  127. writel(0x77777777, &aips3->mprot0);
  128. writel(0x77777777, &aips3->mprot1);
  129. /*
  130. * Set all OPACRx to be non-bufferable, not require
  131. * supervisor privilege level for access,allow for
  132. * write access and untrusted master access.
  133. */
  134. writel(0x00000000, &aips3->opacr0);
  135. writel(0x00000000, &aips3->opacr1);
  136. writel(0x00000000, &aips3->opacr2);
  137. writel(0x00000000, &aips3->opacr3);
  138. writel(0x00000000, &aips3->opacr4);
  139. #endif
  140. }
  141. static void clear_ldo_ramp(void)
  142. {
  143. struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR;
  144. int reg;
  145. /* ROM may modify LDO ramp up time according to fuse setting, so in
  146. * order to be in the safe side we neeed to reset these settings to
  147. * match the reset value: 0'b00
  148. */
  149. reg = readl(&anatop->ana_misc2);
  150. reg &= ~(0x3f << 24);
  151. writel(reg, &anatop->ana_misc2);
  152. }
  153. /*
  154. * Set the PMU_REG_CORE register
  155. *
  156. * Set LDO_SOC/PU/ARM regulators to the specified millivolt level.
  157. * Possible values are from 0.725V to 1.450V in steps of
  158. * 0.025V (25mV).
  159. */
  160. static int set_ldo_voltage(enum ldo_reg ldo, u32 mv)
  161. {
  162. struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR;
  163. u32 val, step, old, reg = readl(&anatop->reg_core);
  164. u8 shift;
  165. if (mv < 725)
  166. val = 0x00; /* Power gated off */
  167. else if (mv > 1450)
  168. val = 0x1F; /* Power FET switched full on. No regulation */
  169. else
  170. val = (mv - 700) / 25;
  171. clear_ldo_ramp();
  172. switch (ldo) {
  173. case LDO_SOC:
  174. shift = 18;
  175. break;
  176. case LDO_PU:
  177. shift = 9;
  178. break;
  179. case LDO_ARM:
  180. shift = 0;
  181. break;
  182. default:
  183. return -EINVAL;
  184. }
  185. old = (reg & (0x1F << shift)) >> shift;
  186. step = abs(val - old);
  187. if (step == 0)
  188. return 0;
  189. reg = (reg & ~(0x1F << shift)) | (val << shift);
  190. writel(reg, &anatop->reg_core);
  191. /*
  192. * The LDO ramp-up is based on 64 clock cycles of 24 MHz = 2.6 us per
  193. * step
  194. */
  195. udelay(3 * step);
  196. return 0;
  197. }
  198. static void imx_set_wdog_powerdown(bool enable)
  199. {
  200. struct wdog_regs *wdog1 = (struct wdog_regs *)WDOG1_BASE_ADDR;
  201. struct wdog_regs *wdog2 = (struct wdog_regs *)WDOG2_BASE_ADDR;
  202. #ifdef CONFIG_MX6SX
  203. struct wdog_regs *wdog3 = (struct wdog_regs *)WDOG3_BASE_ADDR;
  204. writew(enable, &wdog3->wmcr);
  205. #endif
  206. /* Write to the PDE (Power Down Enable) bit */
  207. writew(enable, &wdog1->wmcr);
  208. writew(enable, &wdog2->wmcr);
  209. }
  210. static void set_ahb_rate(u32 val)
  211. {
  212. struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
  213. u32 reg, div;
  214. div = get_periph_clk() / val - 1;
  215. reg = readl(&mxc_ccm->cbcdr);
  216. writel((reg & (~MXC_CCM_CBCDR_AHB_PODF_MASK)) |
  217. (div << MXC_CCM_CBCDR_AHB_PODF_OFFSET), &mxc_ccm->cbcdr);
  218. }
  219. static void clear_mmdc_ch_mask(void)
  220. {
  221. struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
  222. /* Clear MMDC channel mask */
  223. writel(0, &mxc_ccm->ccdr);
  224. }
  225. static void init_bandgap(void)
  226. {
  227. struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR;
  228. /*
  229. * Ensure the bandgap has stabilized.
  230. */
  231. while (!(readl(&anatop->ana_misc0) & 0x80))
  232. ;
  233. /*
  234. * For best noise performance of the analog blocks using the
  235. * outputs of the bandgap, the reftop_selfbiasoff bit should
  236. * be set.
  237. */
  238. writel(BM_ANADIG_ANA_MISC0_REFTOP_SELBIASOFF, &anatop->ana_misc0_set);
  239. }
  240. #ifdef CONFIG_MX6SL
  241. static void set_preclk_from_osc(void)
  242. {
  243. struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
  244. u32 reg;
  245. reg = readl(&mxc_ccm->cscmr1);
  246. reg |= MXC_CCM_CSCMR1_PER_CLK_SEL_MASK;
  247. writel(reg, &mxc_ccm->cscmr1);
  248. }
  249. #endif
  250. int arch_cpu_init(void)
  251. {
  252. init_aips();
  253. /* Need to clear MMDC_CHx_MASK to make warm reset work. */
  254. clear_mmdc_ch_mask();
  255. /*
  256. * Disable self-bias circuit in the analog bandap.
  257. * The self-bias circuit is used by the bandgap during startup.
  258. * This bit should be set after the bandgap has initialized.
  259. */
  260. init_bandgap();
  261. /*
  262. * When low freq boot is enabled, ROM will not set AHB
  263. * freq, so we need to ensure AHB freq is 132MHz in such
  264. * scenario.
  265. */
  266. if (mxc_get_clock(MXC_ARM_CLK) == 396000000)
  267. set_ahb_rate(132000000);
  268. /* Set perclk to source from OSC 24MHz */
  269. #if defined(CONFIG_MX6SL)
  270. set_preclk_from_osc();
  271. #endif
  272. imx_set_wdog_powerdown(false); /* Disable PDE bit of WMCR register */
  273. #ifdef CONFIG_APBH_DMA
  274. /* Start APBH DMA */
  275. mxs_dma_init();
  276. #endif
  277. return 0;
  278. }
  279. int board_postclk_init(void)
  280. {
  281. set_ldo_voltage(LDO_SOC, 1175); /* Set VDDSOC to 1.175V */
  282. return 0;
  283. }
  284. #ifndef CONFIG_SYS_DCACHE_OFF
  285. void enable_caches(void)
  286. {
  287. #if defined(CONFIG_SYS_ARM_CACHE_WRITETHROUGH)
  288. enum dcache_option option = DCACHE_WRITETHROUGH;
  289. #else
  290. enum dcache_option option = DCACHE_WRITEBACK;
  291. #endif
  292. /* Avoid random hang when download by usb */
  293. invalidate_dcache_all();
  294. /* Enable D-cache. I-cache is already enabled in start.S */
  295. dcache_enable();
  296. /* Enable caching on OCRAM and ROM */
  297. mmu_set_region_dcache_behaviour(ROMCP_ARB_BASE_ADDR,
  298. ROMCP_ARB_END_ADDR,
  299. option);
  300. mmu_set_region_dcache_behaviour(IRAM_BASE_ADDR,
  301. IRAM_SIZE,
  302. option);
  303. }
  304. #endif
  305. #if defined(CONFIG_FEC_MXC)
  306. void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
  307. {
  308. struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
  309. struct fuse_bank *bank = &ocotp->bank[4];
  310. struct fuse_bank4_regs *fuse =
  311. (struct fuse_bank4_regs *)bank->fuse_regs;
  312. u32 value = readl(&fuse->mac_addr_high);
  313. mac[0] = (value >> 8);
  314. mac[1] = value ;
  315. value = readl(&fuse->mac_addr_low);
  316. mac[2] = value >> 24 ;
  317. mac[3] = value >> 16 ;
  318. mac[4] = value >> 8 ;
  319. mac[5] = value ;
  320. }
  321. #endif
  322. void boot_mode_apply(unsigned cfg_val)
  323. {
  324. unsigned reg;
  325. struct src *psrc = (struct src *)SRC_BASE_ADDR;
  326. writel(cfg_val, &psrc->gpr9);
  327. reg = readl(&psrc->gpr10);
  328. if (cfg_val)
  329. reg |= 1 << 28;
  330. else
  331. reg &= ~(1 << 28);
  332. writel(reg, &psrc->gpr10);
  333. }
  334. /*
  335. * cfg_val will be used for
  336. * Boot_cfg4[7:0]:Boot_cfg3[7:0]:Boot_cfg2[7:0]:Boot_cfg1[7:0]
  337. * After reset, if GPR10[28] is 1, ROM will use GPR9[25:0]
  338. * instead of SBMR1 to determine the boot device.
  339. */
  340. const struct boot_mode soc_boot_modes[] = {
  341. {"normal", MAKE_CFGVAL(0x00, 0x00, 0x00, 0x00)},
  342. /* reserved value should start rom usb */
  343. {"usb", MAKE_CFGVAL(0x01, 0x00, 0x00, 0x00)},
  344. {"sata", MAKE_CFGVAL(0x20, 0x00, 0x00, 0x00)},
  345. {"ecspi1:0", MAKE_CFGVAL(0x30, 0x00, 0x00, 0x08)},
  346. {"ecspi1:1", MAKE_CFGVAL(0x30, 0x00, 0x00, 0x18)},
  347. {"ecspi1:2", MAKE_CFGVAL(0x30, 0x00, 0x00, 0x28)},
  348. {"ecspi1:3", MAKE_CFGVAL(0x30, 0x00, 0x00, 0x38)},
  349. /* 4 bit bus width */
  350. {"esdhc1", MAKE_CFGVAL(0x40, 0x20, 0x00, 0x00)},
  351. {"esdhc2", MAKE_CFGVAL(0x40, 0x28, 0x00, 0x00)},
  352. {"esdhc3", MAKE_CFGVAL(0x40, 0x30, 0x00, 0x00)},
  353. {"esdhc4", MAKE_CFGVAL(0x40, 0x38, 0x00, 0x00)},
  354. {NULL, 0},
  355. };
  356. void s_init(void)
  357. {
  358. struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR;
  359. struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
  360. u32 mask480;
  361. u32 mask528;
  362. u32 reg, periph1, periph2;
  363. if (is_cpu_type(MXC_CPU_MX6SX))
  364. return;
  365. /* Due to hardware limitation, on MX6Q we need to gate/ungate all PFDs
  366. * to make sure PFD is working right, otherwise, PFDs may
  367. * not output clock after reset, MX6DL and MX6SL have added 396M pfd
  368. * workaround in ROM code, as bus clock need it
  369. */
  370. mask480 = ANATOP_PFD_CLKGATE_MASK(0) |
  371. ANATOP_PFD_CLKGATE_MASK(1) |
  372. ANATOP_PFD_CLKGATE_MASK(2) |
  373. ANATOP_PFD_CLKGATE_MASK(3);
  374. mask528 = ANATOP_PFD_CLKGATE_MASK(1) |
  375. ANATOP_PFD_CLKGATE_MASK(3);
  376. reg = readl(&ccm->cbcmr);
  377. periph2 = ((reg & MXC_CCM_CBCMR_PRE_PERIPH2_CLK_SEL_MASK)
  378. >> MXC_CCM_CBCMR_PRE_PERIPH2_CLK_SEL_OFFSET);
  379. periph1 = ((reg & MXC_CCM_CBCMR_PRE_PERIPH_CLK_SEL_MASK)
  380. >> MXC_CCM_CBCMR_PRE_PERIPH_CLK_SEL_OFFSET);
  381. /* Checking if PLL2 PFD0 or PLL2 PFD2 is using for periph clock */
  382. if ((periph2 != 0x2) && (periph1 != 0x2))
  383. mask528 |= ANATOP_PFD_CLKGATE_MASK(0);
  384. if ((periph2 != 0x1) && (periph1 != 0x1) &&
  385. (periph2 != 0x3) && (periph1 != 0x3))
  386. mask528 |= ANATOP_PFD_CLKGATE_MASK(2);
  387. writel(mask480, &anatop->pfd_480_set);
  388. writel(mask528, &anatop->pfd_528_set);
  389. writel(mask480, &anatop->pfd_480_clr);
  390. writel(mask528, &anatop->pfd_528_clr);
  391. }
  392. #ifdef CONFIG_IMX_HDMI
  393. void imx_enable_hdmi_phy(void)
  394. {
  395. struct hdmi_regs *hdmi = (struct hdmi_regs *)HDMI_ARB_BASE_ADDR;
  396. u8 reg;
  397. reg = readb(&hdmi->phy_conf0);
  398. reg |= HDMI_PHY_CONF0_PDZ_MASK;
  399. writeb(reg, &hdmi->phy_conf0);
  400. udelay(3000);
  401. reg |= HDMI_PHY_CONF0_ENTMDS_MASK;
  402. writeb(reg, &hdmi->phy_conf0);
  403. udelay(3000);
  404. reg |= HDMI_PHY_CONF0_GEN2_TXPWRON_MASK;
  405. writeb(reg, &hdmi->phy_conf0);
  406. writeb(HDMI_MC_PHYRSTZ_ASSERT, &hdmi->mc_phyrstz);
  407. }
  408. void imx_setup_hdmi(void)
  409. {
  410. struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
  411. struct hdmi_regs *hdmi = (struct hdmi_regs *)HDMI_ARB_BASE_ADDR;
  412. int reg;
  413. /* Turn on HDMI PHY clock */
  414. reg = readl(&mxc_ccm->CCGR2);
  415. reg |= MXC_CCM_CCGR2_HDMI_TX_IAHBCLK_MASK|
  416. MXC_CCM_CCGR2_HDMI_TX_ISFRCLK_MASK;
  417. writel(reg, &mxc_ccm->CCGR2);
  418. writeb(HDMI_MC_PHYRSTZ_DEASSERT, &hdmi->mc_phyrstz);
  419. reg = readl(&mxc_ccm->chsccdr);
  420. reg &= ~(MXC_CCM_CHSCCDR_IPU1_DI0_PRE_CLK_SEL_MASK|
  421. MXC_CCM_CHSCCDR_IPU1_DI0_PODF_MASK|
  422. MXC_CCM_CHSCCDR_IPU1_DI0_CLK_SEL_MASK);
  423. reg |= (CHSCCDR_PODF_DIVIDE_BY_3
  424. << MXC_CCM_CHSCCDR_IPU1_DI0_PODF_OFFSET)
  425. |(CHSCCDR_IPU_PRE_CLK_540M_PFD
  426. << MXC_CCM_CHSCCDR_IPU1_DI0_PRE_CLK_SEL_OFFSET);
  427. writel(reg, &mxc_ccm->chsccdr);
  428. }
  429. #endif
  430. #ifndef CONFIG_SYS_L2CACHE_OFF
  431. #define IOMUXC_GPR11_L2CACHE_AS_OCRAM 0x00000002
  432. void v7_outer_cache_enable(void)
  433. {
  434. struct pl310_regs *const pl310 = (struct pl310_regs *)L2_PL310_BASE;
  435. unsigned int val;
  436. #if defined CONFIG_MX6SL
  437. struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR;
  438. val = readl(&iomux->gpr[11]);
  439. if (val & IOMUXC_GPR11_L2CACHE_AS_OCRAM) {
  440. /* L2 cache configured as OCRAM, reset it */
  441. val &= ~IOMUXC_GPR11_L2CACHE_AS_OCRAM;
  442. writel(val, &iomux->gpr[11]);
  443. }
  444. #endif
  445. /* Must disable the L2 before changing the latency parameters */
  446. clrbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
  447. writel(0x132, &pl310->pl310_tag_latency_ctrl);
  448. writel(0x132, &pl310->pl310_data_latency_ctrl);
  449. val = readl(&pl310->pl310_prefetch_ctrl);
  450. /* Turn on the L2 I/D prefetch */
  451. val |= 0x30000000;
  452. /*
  453. * The L2 cache controller(PL310) version on the i.MX6D/Q is r3p1-50rel0
  454. * The L2 cache controller(PL310) version on the i.MX6DL/SOLO/SL is r3p2
  455. * But according to ARM PL310 errata: 752271
  456. * ID: 752271: Double linefill feature can cause data corruption
  457. * Fault Status: Present in: r3p0, r3p1, r3p1-50rel0. Fixed in r3p2
  458. * Workaround: The only workaround to this erratum is to disable the
  459. * double linefill feature. This is the default behavior.
  460. */
  461. #ifndef CONFIG_MX6Q
  462. val |= 0x40800000;
  463. #endif
  464. writel(val, &pl310->pl310_prefetch_ctrl);
  465. val = readl(&pl310->pl310_power_ctrl);
  466. val |= L2X0_DYNAMIC_CLK_GATING_EN;
  467. val |= L2X0_STNDBY_MODE_EN;
  468. writel(val, &pl310->pl310_power_ctrl);
  469. setbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
  470. }
  471. void v7_outer_cache_disable(void)
  472. {
  473. struct pl310_regs *const pl310 = (struct pl310_regs *)L2_PL310_BASE;
  474. clrbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
  475. }
  476. #endif /* !CONFIG_SYS_L2CACHE_OFF */