Beispiel #1
0
static void __init ts72xx_init_machine(void)
{
	ep93xx_init_devices();
	if (board_is_ts7200())
		physmap_configure(TS72XX_NOR_PHYS_BASE, 0x01000000, 1, NULL);
	platform_device_register(&ts72xx_rtc_device);
}
Beispiel #2
0
static void __init nec_cmbvr4133_setup(void)
{
#ifdef CONFIG_ROCKHOPPER
	extern void disable_pcnet(void);

	disable_pcnet();
#endif
	set_io_port_base(KSEG1ADDR(0x16000000));

	mips_machgroup = MACH_GROUP_NEC_VR41XX;
	mips_machtype = MACH_NEC_CMBVR4133;

#ifdef CONFIG_PCI
#ifdef CONFIG_ROCKHOPPER
	ali_m5229_preinit();
#endif
#endif

#ifdef CONFIG_ROCKHOPPER
	rockhopper_init_irq();
#endif

#ifdef CONFIG_MTD
	/* we use generic physmap mapping driver and we use partitions */
	physmap_configure(0x1C000000, 0x02000000, 4, NULL);
	physmap_set_partitions(cmbvr4133_mtd_parts, number_partitions);
#endif

	/* 128 MB memory support */
	add_memory_region(0, 0x08000000, BOOT_MEM_RAM);

#ifdef CONFIG_ROCKHOPPER
	i8259_init();
#endif
}
void
mpc85xx_ads_mtd_setup()
{
	/*
	 * Support for MTD on MPC85xx ADS. Use the generic physmap driver
	 */
	physmap_configure(0xff000000, 0x1000000, 4, NULL);
	physmap_set_partitions(mpc85xx_ads_partitions, number_partitions);
}
Beispiel #4
0
static void __init roadrunner_init(void)
{
	physmap_configure(0x90000000, 0x04000000, 2, NULL);

	/*
	 * Mark flash as writeable
	 */
	IXP23XX_EXP_CS0[0] |= IXP23XX_FLASH_WRITABLE;
	IXP23XX_EXP_CS0[1] |= IXP23XX_FLASH_WRITABLE;
	IXP23XX_EXP_CS0[2] |= IXP23XX_FLASH_WRITABLE;
	IXP23XX_EXP_CS0[3] |= IXP23XX_FLASH_WRITABLE;

	ixp23xx_sys_init();
}
Beispiel #5
0
/*
 *	Do special config for SAVANT BSP
 */
static void __init config_savantBSP(char *commandP, int size)
{
	/* setup BOOTPARAM_STRING */
	strncpy(commandP, "root=/dev/mtdblock1 ro rootfstype=romfs", size);
	/* Look at Chatter DIP Switch, if CS3 is enabled */
	{
		uint32_t *csmr3 = (uint32_t *) (MCF_IPSBAR + MCF523x_CSMR3);
		uint32_t *csar3 = (uint32_t *) (MCF_IPSBAR + MCF523x_CSAR3);
		uint16_t *dipsP = (uint16_t *) *csar3;
		uint16_t dipSetOff = *dipsP & 0x0100; // switch #1
		uint16_t *btnPressP = (uint16_t *)(*csar3 + 0x10);
		uint16_t shortButtonPress = *btnPressP & 0x8000;
		if (*csmr3 & 1) {
			/* CS3 enabled */
			if (!dipSetOff && shortButtonPress) {
				/* switch on, so be quiet */
				strncat(commandP, " console=", size-strlen(commandP)-1);
			}
		}
	}
	commandP[size-1] = 0;

	/* Set on-chip peripheral space to user mode */
	{
		uint8_t *gpacr = (uint8_t *) (MCF_IPSBAR + MCF523x_GPACR);
		uint8_t *pacr1 = (uint8_t *) (MCF_IPSBAR + MCF523x_PACR1);
		uint8_t *pacr4 = (uint8_t *) (MCF_IPSBAR + MCF523x_PACR4);
		uint8_t *pacr7 = (uint8_t *) (MCF_IPSBAR + MCF523x_PACR7);
		uint8_t *pacr8 = (uint8_t *) (MCF_IPSBAR + MCF523x_PACR8);
		*gpacr = 0x04;
		*pacr1 = 0x40; /* EIM required for Chip Select access */
		*pacr4 = 0x40; /* I2C */
		*pacr7 = 0x44; /* INTC0 & 1 handy for debug */
		*pacr8 = 0x40; /* FEC MAC */
	}

#ifdef CONFIG_MTD
	/* all board spins cannot access flash from linux unless we change the map here */
	{
		uint32_t *csar0 = (uint32_t *) (MCF_IPSBAR + MCF523x_CSAR0);
		uint32_t start = *csar0;
		uint32_t size = 0xffffFFFF - start + 1;
		physmap_configure(start, size, CONFIG_MTD_PHYSMAP_BANKWIDTH, NULL);
	}
#endif
}