1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * arch/powerpc/platforms/83xx/mpc837x_rdb.c
5 * Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.
7 * MPC837x RDB board specific routines
10 #include <linux/pci.h>
11 #include <linux/of_platform.h>
16 #include <sysdev/fsl_soc.h>
17 #include <sysdev/fsl_pci.h>
21 static void mpc837x_rdb_sd_cfg(void)
25 im = ioremap(get_immrbase(), 0x1000);
32 * On RDB boards (in contrast to MDS) USBB pins are used for SD only,
33 * so we can safely mux them away from the USB block.
35 clrsetbits_be32(im + MPC83XX_SICRL_OFFS, MPC837X_SICRL_USBB_MASK,
37 clrsetbits_be32(im + MPC83XX_SICRH_OFFS, MPC837X_SICRH_SPI_MASK,
42 /* ************************************************************************
44 * Setup the architecture
47 static void __init mpc837x_rdb_setup_arch(void)
54 machine_device_initcall(mpc837x_rdb, mpc83xx_declare_of_platform_devices);
56 static const char * const board[] __initconst = {
65 * Called very early, MMU is off, device-tree isn't unflattened
67 static int __init mpc837x_rdb_probe(void)
69 return of_device_compatible_match(of_root, board);
72 define_machine(mpc837x_rdb) {
73 .name = "MPC837x RDB/WLAN",
74 .probe = mpc837x_rdb_probe,
75 .setup_arch = mpc837x_rdb_setup_arch,
76 .init_IRQ = mpc83xx_ipic_init_IRQ,
77 .get_irq = ipic_get_irq,
78 .restart = mpc83xx_restart,
79 .time_init = mpc83xx_time_init,
80 .calibrate_decr = generic_calibrate_decr,
81 .progress = udbg_progress,