asp834x.c (1219B)
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * arch/powerpc/platforms/83xx/asp834x.c 4 * 5 * Analogue & Micro ASP8347 board specific routines 6 * clone of mpc834x_itx 7 * 8 * Copyright 2008 Codehermit 9 * 10 * Maintainer: Bryan O'Donoghue <bodonoghue@codhermit.ie> 11 */ 12 13#include <linux/pci.h> 14#include <linux/of_platform.h> 15 16#include <asm/time.h> 17#include <asm/ipic.h> 18#include <asm/udbg.h> 19 20#include "mpc83xx.h" 21 22/* ************************************************************************ 23 * 24 * Setup the architecture 25 * 26 */ 27static void __init asp834x_setup_arch(void) 28{ 29 mpc83xx_setup_arch(); 30 mpc834x_usb_cfg(); 31} 32 33machine_device_initcall(asp834x, mpc83xx_declare_of_platform_devices); 34 35/* 36 * Called very early, MMU is off, device-tree isn't unflattened 37 */ 38static int __init asp834x_probe(void) 39{ 40 return of_machine_is_compatible("analogue-and-micro,asp8347e"); 41} 42 43define_machine(asp834x) { 44 .name = "ASP8347E", 45 .probe = asp834x_probe, 46 .setup_arch = asp834x_setup_arch, 47 .discover_phbs = mpc83xx_setup_pci, 48 .init_IRQ = mpc83xx_ipic_init_IRQ, 49 .get_irq = ipic_get_irq, 50 .restart = mpc83xx_restart, 51 .time_init = mpc83xx_time_init, 52 .calibrate_decr = generic_calibrate_decr, 53 .progress = udbg_progress, 54};