| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SH7091/SH7750/SH7750S/SH7750R/SH7751/SH7751R Setup |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2006 Paul Mundt |
|---|
| 5 | 6 | * Copyright (C) 2006 Jamie Lenehan |
|---|
| 6 | | - * |
|---|
| 7 | | - * This file is subject to the terms and conditions of the GNU General Public |
|---|
| 8 | | - * License. See the file "COPYING" in the main directory of this archive |
|---|
| 9 | | - * for more details. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | #include <linux/platform_device.h> |
|---|
| 12 | 9 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 16 | 13 | #include <linux/sh_intc.h> |
|---|
| 17 | 14 | #include <linux/serial_sci.h> |
|---|
| 18 | 15 | #include <generated/machtypes.h> |
|---|
| 16 | +#include <asm/platform_early.h> |
|---|
| 19 | 17 | |
|---|
| 20 | 18 | static struct resource rtc_resources[] = { |
|---|
| 21 | 19 | [0] = { |
|---|
| .. | .. |
|---|
| 164 | 162 | if (mach_is_rts7751r2d()) { |
|---|
| 165 | 163 | scif_platform_data.scscr |= SCSCR_CKE1; |
|---|
| 166 | 164 | dev[0] = &scif_device; |
|---|
| 167 | | - early_platform_add_devices(dev, 1); |
|---|
| 165 | + sh_early_platform_add_devices(dev, 1); |
|---|
| 168 | 166 | } else { |
|---|
| 169 | 167 | dev[0] = &sci_device; |
|---|
| 170 | | - early_platform_add_devices(dev, 1); |
|---|
| 168 | + sh_early_platform_add_devices(dev, 1); |
|---|
| 171 | 169 | dev[0] = &scif_device; |
|---|
| 172 | | - early_platform_add_devices(dev, 1); |
|---|
| 170 | + sh_early_platform_add_devices(dev, 1); |
|---|
| 173 | 171 | } |
|---|
| 174 | 172 | |
|---|
| 175 | | - early_platform_add_devices(sh7750_early_devices, |
|---|
| 173 | + sh_early_platform_add_devices(sh7750_early_devices, |
|---|
| 176 | 174 | ARRAY_SIZE(sh7750_early_devices)); |
|---|
| 177 | 175 | } |
|---|
| 178 | 176 | |
|---|