Version:  2.0.40 2.2.26 2.4.37 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18

Linux/arch/powerpc/platforms/83xx/asp834x.c

  1 /*
  2  * arch/powerpc/platforms/83xx/asp834x.c
  3  *
  4  * Analogue & Micro ASP8347 board specific routines
  5  * clone of mpc834x_itx
  6  *
  7  * Copyright 2008 Codehermit
  8  *
  9  * Maintainer: Bryan O'Donoghue <bodonoghue@codhermit.ie>
 10  *
 11  * This program is free software; you can redistribute  it and/or modify it
 12  * under  the terms of  the GNU General  Public License as published by the
 13  * Free Software Foundation;  either version 2 of the  License, or (at your
 14  * option) any later version.
 15  */
 16 
 17 #include <linux/pci.h>
 18 #include <linux/of_platform.h>
 19 
 20 #include <asm/time.h>
 21 #include <asm/ipic.h>
 22 #include <asm/udbg.h>
 23 
 24 #include "mpc83xx.h"
 25 
 26 /* ************************************************************************
 27  *
 28  * Setup the architecture
 29  *
 30  */
 31 static void __init asp834x_setup_arch(void)
 32 {
 33         if (ppc_md.progress)
 34                 ppc_md.progress("asp834x_setup_arch()", 0);
 35 
 36         mpc834x_usb_cfg();
 37 }
 38 
 39 machine_device_initcall(asp834x, mpc83xx_declare_of_platform_devices);
 40 
 41 /*
 42  * Called very early, MMU is off, device-tree isn't unflattened
 43  */
 44 static int __init asp834x_probe(void)
 45 {
 46         unsigned long root = of_get_flat_dt_root();
 47         return of_flat_dt_is_compatible(root, "analogue-and-micro,asp8347e");
 48 }
 49 
 50 define_machine(asp834x) {
 51         .name                   = "ASP8347E",
 52         .probe                  = asp834x_probe,
 53         .setup_arch             = asp834x_setup_arch,
 54         .init_IRQ               = mpc83xx_ipic_init_IRQ,
 55         .get_irq                = ipic_get_irq,
 56         .restart                = mpc83xx_restart,
 57         .time_init              = mpc83xx_time_init,
 58         .calibrate_decr         = generic_calibrate_decr,
 59         .progress               = udbg_progress,
 60 };
 61 

This page was automatically generated by LXR 0.3.1 (source).  •  Linux is a registered trademark of Linus Torvalds  •  Contact us