diff options
| author | Jesper Nilsson <jespern@axis.com> | 2012-06-20 11:17:10 -0400 |
|---|---|---|
| committer | Jesper Nilsson <jespern@axis.com> | 2012-10-03 03:57:01 -0400 |
| commit | d75d806cbbfb9c775e87779cd281c9c408c7aba3 (patch) | |
| tree | 64abfceb6e6a084c90cf7b2be60c72fc5935de84 | |
| parent | 227c6fc296cb84577a4ec54b3c682d48a9ca09b3 (diff) | |
CRIS: Remove VCS simulator specific code
The VCS simulator was a tool used in the development of the chip
and is no longer used or necessary.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| -rw-r--r-- | arch/cris/Kconfig | 5 | ||||
| -rw-r--r-- | arch/cris/arch-v32/drivers/axisflashmap.c | 29 | ||||
| -rw-r--r-- | arch/cris/arch-v32/kernel/head.S | 58 | ||||
| -rw-r--r-- | arch/cris/arch-v32/kernel/kgdb.c | 14 | ||||
| -rw-r--r-- | arch/cris/arch-v32/mach-a3/Makefile | 2 | ||||
| -rw-r--r-- | arch/cris/arch-v32/mach-a3/vcs_hook.c | 103 | ||||
| -rw-r--r-- | arch/cris/arch-v32/mach-a3/vcs_hook.h | 58 | ||||
| -rw-r--r-- | arch/cris/arch-v32/mach-fs/Makefile | 2 | ||||
| -rw-r--r-- | arch/cris/arch-v32/mach-fs/vcs_hook.c | 100 | ||||
| -rw-r--r-- | arch/cris/arch-v32/mach-fs/vcs_hook.h | 42 | ||||
| -rw-r--r-- | arch/cris/arch-v32/mm/init.c | 8 | ||||
| -rw-r--r-- | arch/cris/include/arch-v32/arch/page.h | 5 | ||||
| -rw-r--r-- | arch/cris/include/arch-v32/arch/processor.h | 6 | ||||
| -rw-r--r-- | arch/cris/include/arch-v32/mach-fs/mach/startup.inc | 6 |
14 files changed, 3 insertions, 435 deletions
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index bb344650a14f..ca038afb8b5b 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig | |||
| @@ -137,11 +137,6 @@ config CRIS_MACH_ARTPEC3 | |||
| 137 | 137 | ||
| 138 | endchoice | 138 | endchoice |
| 139 | 139 | ||
| 140 | config ETRAX_VCS_SIM | ||
| 141 | bool "VCS Simulator" | ||
| 142 | help | ||
| 143 | Setup hardware to be run in the VCS simulator. | ||
| 144 | |||
| 145 | config ETRAX_ARCH_V10 | 140 | config ETRAX_ARCH_V10 |
| 146 | bool | 141 | bool |
| 147 | default y if ETRAX100LX || ETRAX100LX_V2 | 142 | default y if ETRAX100LX || ETRAX100LX_V2 |
diff --git a/arch/cris/arch-v32/drivers/axisflashmap.c b/arch/cris/arch-v32/drivers/axisflashmap.c index b34438e026be..1b6ad6247204 100644 --- a/arch/cris/arch-v32/drivers/axisflashmap.c +++ b/arch/cris/arch-v32/drivers/axisflashmap.c | |||
| @@ -329,7 +329,6 @@ static int __init init_axis_flash(void) | |||
| 329 | } | 329 | } |
| 330 | #endif | 330 | #endif |
| 331 | 331 | ||
| 332 | #ifndef CONFIG_ETRAX_VCS_SIM | ||
| 333 | main_mtd = flash_probe(); | 332 | main_mtd = flash_probe(); |
| 334 | if (main_mtd) | 333 | if (main_mtd) |
| 335 | printk(KERN_INFO "%s: 0x%08x bytes of NOR flash memory.\n", | 334 | printk(KERN_INFO "%s: 0x%08x bytes of NOR flash memory.\n", |
| @@ -603,34 +602,7 @@ static int __init init_axis_flash(void) | |||
| 603 | "partition %d\n", part); | 602 | "partition %d\n", part); |
| 604 | } | 603 | } |
| 605 | } | 604 | } |
| 606 | #endif /* CONFIG_EXTRAX_VCS_SIM */ | ||
| 607 | 605 | ||
| 608 | #ifdef CONFIG_ETRAX_VCS_SIM | ||
| 609 | /* For simulator, always use a RAM partition. | ||
| 610 | * The rootfs will be found after the kernel in RAM, | ||
| 611 | * with romfs_start and romfs_end indicating location and size. | ||
| 612 | */ | ||
| 613 | struct mtd_info *mtd_ram; | ||
| 614 | |||
| 615 | mtd_ram = kmalloc(sizeof(struct mtd_info), GFP_KERNEL); | ||
| 616 | if (!mtd_ram) { | ||
| 617 | panic("axisflashmap: Couldn't allocate memory for " | ||
| 618 | "mtd_info!\n"); | ||
| 619 | } | ||
| 620 | |||
| 621 | printk(KERN_INFO "axisflashmap: Adding RAM partition for romfs, " | ||
| 622 | "at %u, size %u\n", | ||
| 623 | (unsigned) romfs_start, (unsigned) romfs_length); | ||
| 624 | |||
| 625 | err = mtdram_init_device(mtd_ram, (void *)romfs_start, | ||
| 626 | romfs_length, "romfs"); | ||
| 627 | if (err) { | ||
| 628 | panic("axisflashmap: Could not initialize MTD RAM " | ||
| 629 | "device!\n"); | ||
| 630 | } | ||
| 631 | #endif /* CONFIG_EXTRAX_VCS_SIM */ | ||
| 632 | |||
| 633 | #ifndef CONFIG_ETRAX_VCS_SIM | ||
| 634 | if (aux_mtd) { | 606 | if (aux_mtd) { |
| 635 | aux_partition.size = aux_mtd->size; | 607 | aux_partition.size = aux_mtd->size; |
| 636 | err = mtd_device_register(aux_mtd, &aux_partition, 1); | 608 | err = mtd_device_register(aux_mtd, &aux_partition, 1); |
| @@ -639,7 +611,6 @@ static int __init init_axis_flash(void) | |||
| 639 | "aux mtd device!\n"); | 611 | "aux mtd device!\n"); |
| 640 | 612 | ||
| 641 | } | 613 | } |
| 642 | #endif /* CONFIG_EXTRAX_VCS_SIM */ | ||
| 643 | 614 | ||
| 644 | return err; | 615 | return err; |
| 645 | } | 616 | } |
diff --git a/arch/cris/arch-v32/kernel/head.S b/arch/cris/arch-v32/kernel/head.S index 5d502b9ab56d..51e34165ece7 100644 --- a/arch/cris/arch-v32/kernel/head.S +++ b/arch/cris/arch-v32/kernel/head.S | |||
| @@ -36,13 +36,6 @@ | |||
| 36 | .global nand_boot | 36 | .global nand_boot |
| 37 | .global swapper_pg_dir | 37 | .global swapper_pg_dir |
| 38 | 38 | ||
| 39 | ;; Dummy section to make it bootable with current VCS simulator | ||
| 40 | #ifdef CONFIG_ETRAX_VCS_SIM | ||
| 41 | .section ".boot", "ax" | ||
| 42 | ba tstart | ||
| 43 | nop | ||
| 44 | #endif | ||
| 45 | |||
| 46 | .text | 39 | .text |
| 47 | tstart: | 40 | tstart: |
| 48 | ;; This is the entry point of the kernel. The CPU is currently in | 41 | ;; This is the entry point of the kernel. The CPU is currently in |
| @@ -75,17 +68,10 @@ secondary_cpu_entry: /* Entry point for secondary CPUs */ | |||
| 75 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_c, 4) \ | 68 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_c, 4) \ |
| 76 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_d, 5) \ | 69 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_d, 5) \ |
| 77 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_b, 0xb), $r0 | 70 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_b, 0xb), $r0 |
| 78 | #elif !defined(CONFIG_ETRAX_VCS_SIM) | ||
| 79 | move.d REG_FIELD(mmu, rw_mm_kbase_hi, base_e, 8) \ | ||
| 80 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_c, 4) \ | ||
| 81 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_b, 0xb), $r0 | ||
| 82 | #else | 71 | #else |
| 83 | ;; Map the virtual DRAM to the RW eprom area at address 0. | ||
| 84 | ;; Also map 0xa for the hook calls, | ||
| 85 | move.d REG_FIELD(mmu, rw_mm_kbase_hi, base_e, 8) \ | 72 | move.d REG_FIELD(mmu, rw_mm_kbase_hi, base_e, 8) \ |
| 86 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_c, 4) \ | 73 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_c, 4) \ |
| 87 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_b, 0xb) \ | 74 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_b, 0xb), $r0 |
| 88 | | REG_FIELD(mmu, rw_mm_kbase_hi, base_a, 0xa), $r0 | ||
| 89 | #endif | 75 | #endif |
| 90 | 76 | ||
| 91 | ;; Temporary map of 0x40 -> 0x40 and 0x00 -> 0x00. | 77 | ;; Temporary map of 0x40 -> 0x40 and 0x00 -> 0x00. |
| @@ -126,27 +112,6 @@ secondary_cpu_entry: /* Entry point for secondary CPUs */ | |||
| 126 | | REG_STATE(mmu, rw_mm_cfg, seg_2, page) \ | 112 | | REG_STATE(mmu, rw_mm_cfg, seg_2, page) \ |
| 127 | | REG_STATE(mmu, rw_mm_cfg, seg_1, page) \ | 113 | | REG_STATE(mmu, rw_mm_cfg, seg_1, page) \ |
| 128 | | REG_STATE(mmu, rw_mm_cfg, seg_0, linear), $r2 | 114 | | REG_STATE(mmu, rw_mm_cfg, seg_0, linear), $r2 |
| 129 | #elif !defined(CONFIG_ETRAX_VCS_SIM) | ||
| 130 | move.d REG_STATE(mmu, rw_mm_cfg, we, on) \ | ||
| 131 | | REG_STATE(mmu, rw_mm_cfg, acc, on) \ | ||
| 132 | | REG_STATE(mmu, rw_mm_cfg, ex, on) \ | ||
| 133 | | REG_STATE(mmu, rw_mm_cfg, inv, on) \ | ||
| 134 | | REG_STATE(mmu, rw_mm_cfg, seg_f, linear) \ | ||
| 135 | | REG_STATE(mmu, rw_mm_cfg, seg_e, linear) \ | ||
| 136 | | REG_STATE(mmu, rw_mm_cfg, seg_d, page) \ | ||
| 137 | | REG_STATE(mmu, rw_mm_cfg, seg_c, linear) \ | ||
| 138 | | REG_STATE(mmu, rw_mm_cfg, seg_b, linear) \ | ||
| 139 | | REG_STATE(mmu, rw_mm_cfg, seg_a, page) \ | ||
| 140 | | REG_STATE(mmu, rw_mm_cfg, seg_9, page) \ | ||
| 141 | | REG_STATE(mmu, rw_mm_cfg, seg_8, page) \ | ||
| 142 | | REG_STATE(mmu, rw_mm_cfg, seg_7, page) \ | ||
| 143 | | REG_STATE(mmu, rw_mm_cfg, seg_6, page) \ | ||
| 144 | | REG_STATE(mmu, rw_mm_cfg, seg_5, page) \ | ||
| 145 | | REG_STATE(mmu, rw_mm_cfg, seg_4, linear) \ | ||
| 146 | | REG_STATE(mmu, rw_mm_cfg, seg_3, page) \ | ||
| 147 | | REG_STATE(mmu, rw_mm_cfg, seg_2, page) \ | ||
| 148 | | REG_STATE(mmu, rw_mm_cfg, seg_1, page) \ | ||
| 149 | | REG_STATE(mmu, rw_mm_cfg, seg_0, linear), $r2 | ||
| 150 | #else | 115 | #else |
| 151 | move.d REG_STATE(mmu, rw_mm_cfg, we, on) \ | 116 | move.d REG_STATE(mmu, rw_mm_cfg, we, on) \ |
| 152 | | REG_STATE(mmu, rw_mm_cfg, acc, on) \ | 117 | | REG_STATE(mmu, rw_mm_cfg, acc, on) \ |
| @@ -157,7 +122,7 @@ secondary_cpu_entry: /* Entry point for secondary CPUs */ | |||
| 157 | | REG_STATE(mmu, rw_mm_cfg, seg_d, page) \ | 122 | | REG_STATE(mmu, rw_mm_cfg, seg_d, page) \ |
| 158 | | REG_STATE(mmu, rw_mm_cfg, seg_c, linear) \ | 123 | | REG_STATE(mmu, rw_mm_cfg, seg_c, linear) \ |
| 159 | | REG_STATE(mmu, rw_mm_cfg, seg_b, linear) \ | 124 | | REG_STATE(mmu, rw_mm_cfg, seg_b, linear) \ |
| 160 | | REG_STATE(mmu, rw_mm_cfg, seg_a, linear) \ | 125 | | REG_STATE(mmu, rw_mm_cfg, seg_a, page) \ |
| 161 | | REG_STATE(mmu, rw_mm_cfg, seg_9, page) \ | 126 | | REG_STATE(mmu, rw_mm_cfg, seg_9, page) \ |
| 162 | | REG_STATE(mmu, rw_mm_cfg, seg_8, page) \ | 127 | | REG_STATE(mmu, rw_mm_cfg, seg_8, page) \ |
| 163 | | REG_STATE(mmu, rw_mm_cfg, seg_7, page) \ | 128 | | REG_STATE(mmu, rw_mm_cfg, seg_7, page) \ |
| @@ -226,7 +191,6 @@ master_cpu: | |||
| 226 | move.d secondary_cpu_entry, $r1 | 191 | move.d secondary_cpu_entry, $r1 |
| 227 | move.d $r1, [$r0] | 192 | move.d $r1, [$r0] |
