| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Common CPM code |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 11 | 12 | * Copyright (c) 2000 MontaVista Software, Inc (source@mvista.com) |
|---|
| 12 | 13 | * 2006 (c) MontaVista Software, Inc. |
|---|
| 13 | 14 | * Vitaly Bordug <vbordug@ru.mvista.com> |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 16 | | - * it under the terms of version 2 of the GNU General Public License as |
|---|
| 17 | | - * published by the Free Software Foundation. |
|---|
| 18 | 15 | */ |
|---|
| 19 | 16 | |
|---|
| 20 | 17 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 71 | 68 | void __init udbg_init_cpm(void) |
|---|
| 72 | 69 | { |
|---|
| 73 | 70 | #ifdef CONFIG_PPC_8xx |
|---|
| 71 | + mmu_mapin_immr(); |
|---|
| 72 | + |
|---|
| 74 | 73 | cpm_udbg_txdesc = (u32 __iomem __force *) |
|---|
| 75 | 74 | (CONFIG_PPC_EARLY_DEBUG_CPM_ADDR - PHYS_IMMR_BASE + |
|---|
| 76 | 75 | VIRT_IMMR_BASE); |
|---|