~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/platforms/83xx/mpc837x_rdb.c

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-or-later
  2 /*
  3  * arch/powerpc/platforms/83xx/mpc837x_rdb.c
  4  *
  5  * Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.
  6  *
  7  * MPC837x RDB board specific routines
  8  */
  9 
 10 #include <linux/pci.h>
 11 #include <linux/of_platform.h>
 12 
 13 #include <asm/time.h>
 14 #include <asm/ipic.h>
 15 #include <asm/udbg.h>
 16 #include <sysdev/fsl_soc.h>
 17 #include <sysdev/fsl_pci.h>
 18 
 19 #include "mpc83xx.h"
 20 
 21 static void __init mpc837x_rdb_sd_cfg(void)
 22 {
 23         void __iomem *im;
 24 
 25         im = ioremap(get_immrbase(), 0x1000);
 26         if (!im) {
 27                 WARN_ON(1);
 28                 return;
 29         }
 30 
 31         /*
 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.
 34          */
 35         clrsetbits_be32(im + MPC83XX_SICRL_OFFS, MPC837X_SICRL_USBB_MASK,
 36                                                  MPC837X_SICRL_SD);
 37         clrsetbits_be32(im + MPC83XX_SICRH_OFFS, MPC837X_SICRH_SPI_MASK,
 38                                                  MPC837X_SICRH_SD);
 39         iounmap(im);
 40 }
 41 
 42 /* ************************************************************************
 43  *
 44  * Setup the architecture
 45  *
 46  */
 47 static void __init mpc837x_rdb_setup_arch(void)
 48 {
 49         mpc83xx_setup_arch();
 50         mpc837x_usb_cfg();
 51         mpc837x_rdb_sd_cfg();
 52 }
 53 
 54 machine_device_initcall(mpc837x_rdb, mpc83xx_declare_of_platform_devices);
 55 
 56 static const char * const board[] __initconst = {
 57         "fsl,mpc8377rdb",
 58         "fsl,mpc8378rdb",
 59         "fsl,mpc8379rdb",
 60         "fsl,mpc8377wlan",
 61         NULL
 62 };
 63 
 64 define_machine(mpc837x_rdb) {
 65         .name                   = "MPC837x RDB/WLAN",
 66         .compatibles            = board,
 67         .setup_arch             = mpc837x_rdb_setup_arch,
 68         .discover_phbs          = mpc83xx_setup_pci,
 69         .init_IRQ               = mpc83xx_ipic_init_IRQ,
 70         .get_irq                = ipic_get_irq,
 71         .restart                = mpc83xx_restart,
 72         .time_init              = mpc83xx_time_init,
 73         .progress               = udbg_progress,
 74 };
 75 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php