Path: blob/master/arch/powerpc/platforms/40x/hcu4.c
10820 views
/*1* Architecture- / platform-specific boot-time initialization code for2* IBM PowerPC 4xx based boards. Adapted from original3* code by Gary Thomas, Cort Dougan <[email protected]>, and Dan Malek4* <[email protected]>.5*6* Copyright(c) 1999-2000 Grant Erickson <[email protected]>7*8* Rewritten and ported to the merged powerpc tree:9* Copyright 2007 IBM Corporation10* Josh Boyer <[email protected]>11*12* 2002 (c) MontaVista, Software, Inc. This file is licensed under13* the terms of the GNU General Public License version 2. This program14* is licensed "as is" without any warranty of any kind, whether express15* or implied.16*/1718#include <linux/init.h>19#include <linux/of_platform.h>2021#include <asm/machdep.h>22#include <asm/prom.h>23#include <asm/udbg.h>24#include <asm/time.h>25#include <asm/uic.h>26#include <asm/ppc4xx.h>2728static __initdata struct of_device_id hcu4_of_bus[] = {29{ .compatible = "ibm,plb3", },30{ .compatible = "ibm,opb", },31{ .compatible = "ibm,ebc", },32{},33};3435static int __init hcu4_device_probe(void)36{37of_platform_bus_probe(NULL, hcu4_of_bus, NULL);38return 0;39}40machine_device_initcall(hcu4, hcu4_device_probe);4142static int __init hcu4_probe(void)43{44unsigned long root = of_get_flat_dt_root();4546if (!of_flat_dt_is_compatible(root, "netstal,hcu4"))47return 0;4849return 1;50}5152define_machine(hcu4) {53.name = "HCU4",54.probe = hcu4_probe,55.progress = udbg_progress,56.init_IRQ = uic_init_tree,57.get_irq = uic_get_irq,58.restart = ppc4xx_reset_system,59.calibrate_decr = generic_calibrate_decr,60};616263