rtnetlink: check DO_SETLINK_NOTIFY correctly in do_setlink
[linux/fpc-iii.git] / arch / powerpc / platforms / 83xx / mpc837x_rdb.c
blob0c55fa6af2d5481ed7844bb79ca68998014dc192
1 /*
2 * arch/powerpc/platforms/83xx/mpc837x_rdb.c
4 * Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.
6 * MPC837x RDB board specific routines
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
14 #include <linux/pci.h>
15 #include <linux/of_platform.h>
17 #include <asm/time.h>
18 #include <asm/ipic.h>
19 #include <asm/udbg.h>
20 #include <sysdev/fsl_soc.h>
21 #include <sysdev/fsl_pci.h>
23 #include "mpc83xx.h"
25 static void mpc837x_rdb_sd_cfg(void)
27 void __iomem *im;
29 im = ioremap(get_immrbase(), 0x1000);
30 if (!im) {
31 WARN_ON(1);
32 return;
36 * On RDB boards (in contrast to MDS) USBB pins are used for SD only,
37 * so we can safely mux them away from the USB block.
39 clrsetbits_be32(im + MPC83XX_SICRL_OFFS, MPC837X_SICRL_USBB_MASK,
40 MPC837X_SICRL_SD);
41 clrsetbits_be32(im + MPC83XX_SICRH_OFFS, MPC837X_SICRH_SPI_MASK,
42 MPC837X_SICRH_SD);
43 iounmap(im);
46 /* ************************************************************************
48 * Setup the architecture
51 static void __init mpc837x_rdb_setup_arch(void)
53 mpc83xx_setup_arch();
54 mpc837x_usb_cfg();
55 mpc837x_rdb_sd_cfg();
58 machine_device_initcall(mpc837x_rdb, mpc83xx_declare_of_platform_devices);
60 static const char * const board[] __initconst = {
61 "fsl,mpc8377rdb",
62 "fsl,mpc8378rdb",
63 "fsl,mpc8379rdb",
64 "fsl,mpc8377wlan",
65 NULL
69 * Called very early, MMU is off, device-tree isn't unflattened
71 static int __init mpc837x_rdb_probe(void)
73 return of_device_compatible_match(of_root, board);
76 define_machine(mpc837x_rdb) {
77 .name = "MPC837x RDB/WLAN",
78 .probe = mpc837x_rdb_probe,
79 .setup_arch = mpc837x_rdb_setup_arch,
80 .init_IRQ = mpc83xx_ipic_init_IRQ,
81 .get_irq = ipic_get_irq,
82 .restart = mpc83xx_restart,
83 .time_init = mpc83xx_time_init,
84 .calibrate_decr = generic_calibrate_decr,
85 .progress = udbg_progress,