mmcif-sh7724.c (9f843706bb87837b823228467f4f83973fd110e9) mmcif-sh7724.c (54b384634f7083bcacf9a9ed2e6f4c3d0a246e49)
1/*
2 * sh7724 MMCIF loader
3 *
4 * Copyright (C) 2010 Magnus Damm
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 46 unchanged lines hidden (view full) ---

55 mmcif_update_progress(MMCIF_PROGRESS_INIT);
56
57 /* setup MMCIF hardware */
58 sh_mmcif_boot_init(MMCIF_BASE);
59
60 mmcif_update_progress(MMCIF_PROGRESS_LOAD);
61
62 /* load kernel via MMCIF interface */
1/*
2 * sh7724 MMCIF loader
3 *
4 * Copyright (C) 2010 Magnus Damm
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 46 unchanged lines hidden (view full) ---

55 mmcif_update_progress(MMCIF_PROGRESS_INIT);
56
57 /* setup MMCIF hardware */
58 sh_mmcif_boot_init(MMCIF_BASE);
59
60 mmcif_update_progress(MMCIF_PROGRESS_LOAD);
61
62 /* load kernel via MMCIF interface */
63 sh_mmcif_boot_slurp(MMCIF_BASE, buf, no_bytes);
63 sh_mmcif_boot_do_read(MMCIF_BASE, 512,
64 (no_bytes + SH_MMCIF_BBS - 1) / SH_MMCIF_BBS,
65 buf);
64
65 /* disable clock to the MMCIF hardware block */
66 __raw_writel(__raw_readl(MSTPCR2) | 0x20000000, MSTPCR2);
67
68 mmcif_update_progress(MMCIF_PROGRESS_DONE);
69}
66
67 /* disable clock to the MMCIF hardware block */
68 __raw_writel(__raw_readl(MSTPCR2) | 0x20000000, MSTPCR2);
69
70 mmcif_update_progress(MMCIF_PROGRESS_DONE);
71}