cc35b67668
This patch add the Chroma platform to WSP/PowerEN, which is a PCIe card (a defconfig is included). The card includes an H8 service processor that is used to manage the card. The H8 is connected over the second serial UART on the PowerEN chip so this patch includes a simple 16550 driver to enable communication, mostly for "power off" and "rebooting". This patch also includes a, WSP specific, "halt" method that will shut of all A2 cores but still leave power on at the chip level. This is desirable, especially if you wish to interrogate the chip with a hardware probe after the halt. Signed-off-by: Jimi Xenidis <jimix@pobox.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
31 lines
778 B
C
31 lines
778 B
C
#ifndef __WSP_H
|
|
#define __WSP_H
|
|
|
|
#include <asm/wsp.h>
|
|
|
|
/* Devtree compatible strings for major devices */
|
|
#define PCIE_COMPATIBLE "ibm,wsp-pciex"
|
|
|
|
extern void wsp_setup_arch(void);
|
|
extern void wsp_setup_irq(void);
|
|
extern int wsp_probe_devices(void);
|
|
extern void wsp_halt(void);
|
|
|
|
extern void wsp_setup_pci(void);
|
|
extern void scom_init_wsp(void);
|
|
|
|
extern void a2_setup_smp(void);
|
|
extern int a2_scom_startup_cpu(unsigned int lcpu, int thr_idx,
|
|
struct device_node *np);
|
|
extern int smp_a2_cpu_bootable(unsigned int nr);
|
|
extern int __devinit smp_a2_kick_cpu(int nr);
|
|
|
|
extern void opb_pic_init(void);
|
|
|
|
/* chroma specific managment */
|
|
extern void wsp_h8_restart(char *cmd);
|
|
extern void wsp_h8_power_off(void);
|
|
extern void __init wsp_setup_h8(void);
|
|
|
|
#endif /* __WSP_H */
|