Ejemplo n.º 1
0
static void __init
ocotea_setup_arch(void)
{
	unsigned char *addr;
	unsigned long long mac64;
	bd_t *bip = (bd_t *) __res;

	/* Retrieve MAC addresses from flash */
	addr = ioremap64(OCOTEA_MAC_BASE, OCOTEA_MAC_SIZE);
	mac64 = simple_strtoull(addr, 0, 16);
	memcpy(bip->bi_enetaddr[0], (char *)&mac64+2, 6);
	mac64 = simple_strtoull(addr+OCOTEA_MAC1_OFFSET, 0, 16);
	memcpy(bip->bi_enetaddr[1], (char *)&mac64+2, 6);
	iounmap(addr);

	/* Set EMAC PHY map to not probe address 0x00 */
	emac_phy_map[0] = 0x00000001;
	emac_phy_map[1] = 0x00000001;

#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

	/* Setup TODC access */
	TODC_INIT(TODC_TYPE_DS1743,
			0,
			0,
			ioremap64(OCOTEA_RTC_ADDR, OCOTEA_RTC_SIZE),
			8);

	/* init to some ~sane value until calibrate_delay() runs */
        loops_per_jiffy = 50000000/HZ;

	/* Setup PCI host bridge */
	ocotea_setup_hose();
	
#ifdef CONFIG_BLK_DEV_INITRD
	if (initrd_start)
		ROOT_DEV = to_kdev_t(0x0100); /* /dev/ram */
	else
#endif
#ifdef CONFIG_ROOT_NFS
		ROOT_DEV = to_kdev_t(0x00ff); /* /dev/nfs */
#else
		ROOT_DEV = to_kdev_t(0x0301); /* /dev/hda1 */
#endif

#ifdef CONFIG_VT
	conswitchp = &dummy_con;
#endif

	ocotea_early_serial_map();

	/* Identify the system */
	printk("IBM Ocotea port (MontaVista Software, Inc. <*****@*****.**>)\n");
}
Ejemplo n.º 2
0
static void __init
ocotea_setup_arch(void)
{
    ocotea_set_emacdata();

    ibm440gx_tah_enable();

    /*
     * Determine various clocks.
     * To be completely correct we should get SysClk
     * from FPGA, because it can be changed by on-board switches
     * --ebs
     */
    ibm440gx_get_clocks(&clocks, 33333333, 6 * 1843200);
    ocp_sys_info.opb_bus_freq = clocks.opb;

    /* Setup TODC access */
    TODC_INIT(TODC_TYPE_DS1743,
              0,
              0,
              ioremap64(OCOTEA_RTC_ADDR, OCOTEA_RTC_SIZE),
              8);

    /* init to some ~sane value until calibrate_delay() runs */
    loops_per_jiffy = 50000000/HZ;

    /* Setup PCI host bridge */
    ocotea_setup_hose();

#ifdef CONFIG_BLK_DEV_INITRD
    if (initrd_start)
        ROOT_DEV = Root_RAM0;
    else
#endif
#ifdef CONFIG_ROOT_NFS
        ROOT_DEV = Root_NFS;
#else
        ROOT_DEV = Root_HDA1;
#endif

    ocotea_early_serial_map();

    /* Identify the system */
    printk("IBM Ocotea port (MontaVista Software, Inc. <*****@*****.**>)\n");
}
Ejemplo n.º 3
0
static void __init
ocotea_setup_arch(void)
{
	ocotea_set_emacdata();

	ibm440gx_tah_enable();

	/* Setup TODC access */
	TODC_INIT(TODC_TYPE_DS1743,
			0,
			0,
			ioremap64(OCOTEA_RTC_ADDR, OCOTEA_RTC_SIZE),
			8);

	/* init to some ~sane value until calibrate_delay() runs */
        loops_per_jiffy = 50000000/HZ;

	/* Setup PCI host bridge */
	ocotea_setup_hose();

#ifdef CONFIG_BLK_DEV_INITRD
	if (initrd_start)
		ROOT_DEV = Root_RAM0;
	else
#endif
#ifdef CONFIG_ROOT_NFS
		ROOT_DEV = Root_NFS;
#else
		ROOT_DEV = Root_HDA1;
#endif

	ocotea_early_serial_map();

	/* Identify the system */
	printk("IBM Ocotea port (MontaVista Software, Inc. <*****@*****.**>)\n");
}