/*
- * arch/ppc/platforms/4xx/ebony.c
+ * arch/ppc/platforms/ebony.c
*
* Ebony board specific routines
*
- * Matt Porter <mporter@kernel.crashing.org>
- * Copyright 2002-2004 MontaVista Software Inc.
+ * Matt Porter <mporter@mvista.com>
+ * Copyright 2002 MontaVista Software Inc.
*
* Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net>
* Copyright (c) 2003, 2004 Zultys Technologies
#include <asm/bootinfo.h>
#include <asm/ppc4xx_pic.h>
-#include <syslib/gen550.h>
-
-static struct ibm44x_clocks clocks __initdata;
-
/*
* Ebony IRQ triggering/polarity settings
*/
(IRQ_SENSE_LEVEL | IRQ_POLARITY_POSITIVE), /* 63: EMAC 1 WOL */
};
+static struct ibm44x_clocks clocks __initdata;
+
static void __init
ebony_calibrate_decr(void)
{
printk("Early serial init of port 0 failed\n");
}
-#if defined(CONFIG_SERIAL_TEXT_DEBUG) || defined(CONFIG_KGDB)
- /* Configure debug serial access */
- gen550_init(0, &port);
-#endif
-
port.membase = ioremap64(PPC440GP_UART1_ADDR, 8);
port.irq = 1;
- port.uartclk = clocks.uart1;
port.line = 1;
if (early_serial_setup(&port) != 0) {
printk("Early serial init of port 1 failed\n");
}
-
-#if defined(CONFIG_SERIAL_TEXT_DEBUG) || defined(CONFIG_KGDB)
- /* Configure debug serial access */
- gen550_init(1, &port);
-#endif
}
static void __init
struct ocp_def *def;
struct ocp_func_emac_data *emacdata;
+#if !defined(CONFIG_BDI_SWITCH)
+ /*
+ * The Abatron BDI JTAG debugger does not tolerate others
+ * mucking with the debug registers.
+ */
+ mtspr(SPRN_DBCR0, (DBCR0_TDE | DBCR0_IDM));
+#endif
+
/* Set mac_addr for each EMAC */
vpd_base = ioremap64(EBONY_VPD_BASE, EBONY_VPD_SIZE);
def = ocp_get_one_device(OCP_VENDOR_IBM, OCP_FUNC_EMAC, 0);
ppc_md.nvram_read_val = todc_direct_read_val;
ppc_md.nvram_write_val = todc_direct_write_val;
+
#ifdef CONFIG_KGDB
ppc_md.early_serial_map = ebony_early_serial_map;
#endif