1 /*
2  * linux/arch/arm/mach-sa1100/empeg.c
3  */
4 
5 #include <linux/init.h>
6 #include <linux/kernel.h>
7 #include <linux/tty.h>
8 
9 #include <asm/hardware.h>
10 #include <asm/setup.h>
11 
12 #include <asm/mach/arch.h>
13 #include <asm/mach/map.h>
14 #include <asm/mach/serial_sa1100.h>
15 
16 #include "generic.h"
17 
18 
19 static void __init
fixup_empeg(struct machine_desc * desc,struct param_struct * params,char ** cmdline,struct meminfo * mi)20 fixup_empeg(struct machine_desc *desc, struct param_struct *params,
21 	    char **cmdline, struct meminfo *mi)
22 {
23 	SET_BANK( 0, 0xc0000000, 4*1024*1024 );
24 	SET_BANK( 1, 0xc8000000, 4*1024*1024 );
25 	mi->nr_banks = 2;
26 
27 	ROOT_DEV = MKDEV( 3, 1 );  /* /dev/hda1 */
28 	setup_ramdisk( 1, 0, 0, 4096 );
29 	setup_initrd( 0xd0000000+((1024-320)*1024), (320*1024) );
30 }
31 
32 static struct map_desc empeg_io_desc[] __initdata = {
33  /* virtual     physical    length      domain     r  w  c  b */
34   { EMPEG_FLASHBASE, 0x00000000, 0x00200000, DOMAIN_IO, 0, 1, 0, 0 }, /* Flash */
35   LAST_DESC
36 };
37 
empeg_map_io(void)38 static void __init empeg_map_io(void)
39 {
40 	sa1100_map_io();
41 	iotable_init(empeg_io_desc);
42 
43 	sa1100_register_uart(0, 1);
44 	sa1100_register_uart(1, 3);
45 	sa1100_register_uart(2, 2);
46 	Ser1SDCR0 |= SDCR0_UART;
47 }
48 
49 MACHINE_START(EMPEG, "empeg MP3 Car Audio Player")
50 	BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000)
51 	FIXUP(fixup_empeg)
52 	MAPIO(empeg_map_io)
53 	INITIRQ(sa1100_init_irq)
54 MACHINE_END
55