1. 08 2月, 2008 40 次提交
    • J
      CRIS v10: Change boot/rescue/Makefile to use ccflags-y, asflags-y and ldflags-y. · 546cc148
      Jesper Nilsson 提交于
      Replace EXTRA_CFLAGS with ccflags-y.
      Change ASFLAGS and LDFLAGS into asflags-y and ldflags-y, we only need
      these flags in this makefile.
      546cc148
    • J
      CRIS v10: Update boot/compressed/Makefile to use ccflags-y and ldflags-y · 3c9547a5
      Jesper Nilsson 提交于
      Replace use of EXTRA_CFLAGS with ccflags-y and LDFLAGS with ldflags-y,
      (we only need to change linker flags for this makefile)
      3c9547a5
    • J
      CRIS v32: Update and improve kernel/time.c · fbdb5f86
      Jesper Nilsson 提交于
      - Shorten include paths to machine dependent header files.
      - Register name for first timer is now regi_timer0.
      - Remove raw_printk hack, use oops_in_progress instead.
      - Add handling of CPU frequency scaling for CRIS.
      - Remove regs parameter to timer_interrupt, get them from get_irq_regs instead.
      - Whitespace and formatting changes.
      fbdb5f86
    • J
      CRIS v10: New default config. · bd1c8c54
      Jesper Nilsson 提交于
      bd1c8c54
    • J
      CRIS v32: Update and improve kernel/traps.c · 9ce1ea75
      Jesper Nilsson 提交于
      - Remove watchdog handling, handled elsewhere.
      - Shorten include paths to machine dependent header files.
      - Remove raw_printk hack, we now use oops_in_progress instead.
      - Add handling of BUG for exception handlers (break 14).
      - Formatting and whitespace changes.
      9ce1ea75
    • J
      CRIS v32: Minor updates to kernel/process.c · 8cca29b7
      Jesper Nilsson 提交于
      - Shorten include paths for machine dependent header files.
      - Remove unused extern declaration of etrax_gpio_wake_up_check.
      - Register name for first timer is now regi_timer0.
      8cca29b7
    • J
      CRIS v32: Update and simplify kernel/irq.c. · 693d9847
      Jesper Nilsson 提交于
      - First timer register has changed name to timer0.
      - Build IRQs with only IRQ number, mask bit will be calculated instead.
      - Add more IRQs, up to 64 supported.
      - Use arrays to hold which IRQs triggered instead of trying to do magic
        with two 32 bit values now that more than 32 IRQs are supported.
      693d9847
    • J
      CRIS v32: Update kernel/head.S · 96e47669
      Jesper Nilsson 提交于
      - Shorten include paths for machine specific header files.
      - Add magic for booting NAND flash.
      - Change CONFIG_ETRAXFS_SIM to CONFIG_ETRAX_VCS_SIM.
      - Use assembler macros for initializing hardware (clocks)
      - Add stubs for SMP slave CPUs.
      - Search for cramfs or jffs2 if no romfs found.
      - Initialize l2cache.
      96e47669
    • J
      CRIS v32: Update and improve fasttimer.c · ec87ee20
      Jesper Nilsson 提交于
      - Change include path to machine dependent header files.
      - Remove __INLINE__, it expands to inline anyway.
      - Don't initialize static variables.
      - Change timers to use fasttimer_t instead of timevals.
      - Change name of timeval_cmp to fasttime_cmp to highlight this.
      - Register name for first timer is regi_timer0, not regi_timer.
      - Whitespace and formatting changes.
      - Don't return if we're blocking interrupts, goto done and restore interrupts.
      - Disable interrupts while walking the fasttimer list, only restore
        while doing the callback.
      - Remove #ifdef DECLARE_WAITQUEUE, this code won't be used in another OS.
      - Remove CVS log.
      ec87ee20
    • J
      CRIS v32: Update debugport. · 82264102
      Jesper Nilsson 提交于
      - Shorten include paths to machine dependent headers.
      - Add support for fifth serial port.
      - Remove CONFIG_ETRAXFS_SIM and CONFIG_ETRAX_DEBUG_PORT_NULL, no longer used.
      - Remove raw_printk and stupid_debug hack, no longer needed.
      - Remove dummy console stuff, no longer needed.
      - Correct some register type names.
      - Correct some whitespace errors and formatting.
      82264102
    • J
      CRIS v32: Update boot/rescue/head.S code. · 3f50c067
      Jesper Nilsson 提交于
      - Add ifdef for ETRAX_AXISFLASHMAP to avoid compiling file unless it is set.
      - Use assembler macros for setting up clocks.
      - Don't copy image, just jump to it (only works for NOR flash)
      3f50c067
    • J
      CRIS v32: Update boot/compressed/misc.c · a5d204bf
      Jesper Nilsson 提交于
      - Shorten include paths to machine specific headers.
      - Remove fill_inbuf, not defined here.
      - Return __dest as value from memcpy.
      - Enable serial port hardware transmitter and receiver in serial_setup.
      - Correct baudrate divisor calculation, changed from 4800 to 115200.
      - Add support for Artpec-3 specific serial port setup.
      - Initialize pinmux for the correct serial port.
      a5d204bf
    • J
      CRIS v32: Update compressed head.S · 247c3c95
      Jesper Nilsson 提交于
      - Fixes for NAND and NOR flash booting.
      - Use assembler macros for common tasks (clocks, general io etc)
      - Use (EtraxFS or Artpec-3) machine specific include for dram and hardware init.
      247c3c95
    • J
      CRIS v32: Remove common gpio and nandflash, add mach-fs and mach-a3 as subdirs. · 5d23ff25
      Jesper Nilsson 提交于
      Also add board_mmcspi to build if ETRAX_SPI_MMC_BOARD is set.
      (Generic MMC SPI implementation)
      5d23ff25
    • J
      CRIS v32: Update boot rescue Kbuild makefile. · dbf9f144
      Jesper Nilsson 提交于
      - Remove old specific targets, use more generic ones instead.
      - Use if_changed to avoid creating new images when no change.
      - Use EXTRA_CFLAGS instead of CFLAGS.
      dbf9f144
    • J
      CRIS v32: Update boot compressed Kbuild makefile. · 28bf739b
      Jesper Nilsson 提交于
      - Remove old specific targets, use more generic ones instead.
      - Use if_changed to avoid creating new images when no change.
      - Use KBUILD_CFLAGS instead of CFLAGS.
      28bf739b
    • J
      CRIS v32: Update boot Kbuild makefile. · 3d6f7871
      Jesper Nilsson 提交于
      - Remove old specific targets, use more generic ones instead.
      - Use if_changed to avoid creating new images when no change.
      3d6f7871
    • J
      CRIS v32: Update traps.c · 1e4cc2c8
      Jesper Nilsson 提交于
      - Remove raw_prink hack, use oops_in_progress instead.
      - When ETRAX_WATCHDOG_NICE_DOGGY is set, loop in trap after oops dump
        instead of rebooting.
      - Break long lines to less than 80 chars.
      - Fix whitespace errors.
      - Remove unnecessary comments.
      1e4cc2c8
    • J
      CRIS v10: Update and improve axisflashmap.c · 32872b20
      Jesper Nilsson 提交于
      - Add config to use mtd0 as whole flash device.
      - Fix whitespace errors.
      - Remove braces around single statement ifs.
      - Break long lines.
      - Remove unnecessary CVS log.
      32872b20
    • J
      CRIS v10: Update rescue head.s · 8c11bffa
      Jesper Nilsson 提交于
      - Correct whitespace problems.
      - Add ifdef for ETRAX_AXISFLASHMAP to avoid compile error when not set.
      8c11bffa
    • J
      CRIS v10: Update rescue Kbuild makefile. · 63e6b9a0
      Jesper Nilsson 提交于
      - Remove old specific targets, use more generic ones instead.
      - Use if_changed to avoid creating new images when no change.
        Removes a lot of cruft.
      - Use EXTRA_CFLAGS instead of CFLAGS.
      63e6b9a0
    • J
      CRIS v10: Update boot/compressed Kbuild makefile. · 1333a694
      Jesper Nilsson 提交于
      - Remove old specific targets, use more generic ones instead.
      - Use if_changed to avoid creating new images when no change.
      - Use EXTRA_CFLAGS instead of CFLAGS.
      1333a694
    • J
      CRIS v10: Update boot Kbuild makefile. · 87f5a7f7
      Jesper Nilsson 提交于
      - Remove old specific targets, use more generic ones instead.
      87f5a7f7
    • J
      CRIS: Update main Kbuild makefile. · 2c2314bf
      Jesper Nilsson 提交于
      - Remove old and non-generic targets, use generic ones instead.
      - Add sub-arch as mach-fs or mach-a3 for EtraxFS and Artpec-3 respectively.
      - Add links to sub-arch directories, and erase before trying to create them.
      - Include from sub-arch specific include directory "mach".
      - Add files to be cleaned in CLEAN_FILES instead of as archclean target.
      2c2314bf
    • J
      CRIS v32: Update and improve axisflashmap · 5fc1f312
      Jesper Nilsson 提交于
      - Use default partition table when no partition is found (for initial tests)
      - Add config ETRAX_AXISFLASHMAP_MTD0WHOLE to allow whole flash as mtd0.
      - Add config for VCS simulator connection.
      5fc1f312
    • J
      CRIS v32: New version of I2C driver. · 201ca54a
      Jesper Nilsson 提交于
      - Add i2c_write and i2c_read as functions.
      - Use spinlocks for critical regions.
      - Add config item to set I2C data and clock port.
      - Put unneeded testcode inside #if 0.
      - Remove CVS id tag.
      201ca54a
    • J
      CRIS v32: Fixup kernel Makefile. · 0f229504
      Jesper Nilsson 提交于
      - Remove CRISv32 common arbiter, dma, io and pinmux files,
        they are now defined in machine dependent directories.
      - Add cache and cacheflush files for working around cache problems
        in CRISv32 chips.
      0f229504
    • J
      CRIS v32: Update entry.S to working order. · ffc8b00d
      Jesper Nilsson 提交于
      - Remove oldset parameter.
      - Utilise delay-slot for parameter moving.
      - Add kernel_execve as break 13.
      - Add new kernel syscalls.
      ffc8b00d
    • J
      54ab4d72
    • J
      CRIS: Minor generic kernel/traps.c changes. · 1ddba025
      Jesper Nilsson 提交于
      - Collect extern declarations at top of file.
      - Change raw_printk to printk, use oops_in_progress instead.
      - Fix formatting and whitespace.
      - Allow the watchdog to be disabled during oops.
      1ddba025
    • J
      CRIS: Minor fixes to mm/fault.c · 3e1fdc4e
      Jesper Nilsson 提交于
      - Only disallow oops if we're in_interrupt context (was in_atomic before)
      - Use the generic oops_in_progress instead of the raw_printk hack.
      - Fix whitespace/formatting.
      - Remove CVS log entries.
      3e1fdc4e
    • J
      CRIS: Remove unnecessary CVS log from cris/mm/init.c · 642d4ea0
      Jesper Nilsson 提交于
      642d4ea0
    • J
      CRIS v32: Update synchronous serial driver. · e908dfc3
      Jesper Nilsson 提交于
      Now uses a DMA descriptor ring, which should avoid any unnecessary
      pauses in the streams.
      e908dfc3
    • J
      CRIS v32: Add L2 cache initialization code. · f74c31d5
      Jesper Nilsson 提交于
      f74c31d5
    • J
      CRIS v32: Add hardware dependent include files and defconfigs for ETRAX FS and ARTPEC-3 chips. · 58d08319
      Jesper Nilsson 提交于
      The header files describe the hardware registers available in both
      these chips, note that most of this documentation is automatically
      generated from the hardware implementation.
      58d08319
    • J
      CRIS v32: Add new machine dependent files for Etrax-FS and Artpec-3. · 035e111f
      Jesper Nilsson 提交于
      The two chips are somewhat different, and needs different handling.
      Adds handing of the dma, dram initialization, hardware settings, io,
      memory arbiter and pinmux
      
      Also moves the dma, dram initialization and io from CRIS v32 common files.
      035e111f
    • J
      CRIS v32: Add new driver files for Etrax-FS · 6107c61f
      Jesper Nilsson 提交于
      Adds gpio and nandflash handling for Etrax-FS
      6107c61f
    • J
      CRIS v32: Add new driver files for Artpec-3. · 18a1e013
      Jesper Nilsson 提交于
      Adds gpio and nandflash handling for Artpec-3.
      18a1e013
    • J
      CRIS: Rearrange Kconfigs for v10 and v32 to allow compilation without warnings. · 923dd2a4
      Jesper Nilsson 提交于
      - Remove some unneeded configs and add some new ones.
      - Merge common config items to common file instead of duplicating them.
      - Pull in standard Kconfig.preempt.
      - Remove some unneeded Kconfigs for subsystems not (yet) available on CRIS
        (md, scsi, ieee1394, i2o, isdn, telephony, media, pcmcia, pci)
      - Rename CRISv32 config items which had different types from CRISv10.
        (ETRAX_LED2G, ETRAX_LED2R, ETRAX_LED3G, ETRAX_LED3R, ETRAX_I2C_DATA_PORT,
        ETRAX_I2C_CLK_PORT)
      923dd2a4
    • B
      Introduce flags for reserve_bootmem() · 72a7fe39
      Bernhard Walle 提交于
      This patchset adds a flags variable to reserve_bootmem() and uses the
      BOOTMEM_EXCLUSIVE flag in crashkernel reservation code to detect collisions
      between crashkernel area and already used memory.
      
      This patch:
      
      Change the reserve_bootmem() function to accept a new flag BOOTMEM_EXCLUSIVE.
      If that flag is set, the function returns with -EBUSY if the memory already
      has been reserved in the past.  This is to avoid conflicts.
      
      Because that code runs before SMP initialisation, there's no race condition
      inside reserve_bootmem_core().
      
      [akpm@linux-foundation.org: coding-style fixes]
      [akpm@linux-foundation.org: fix powerpc build]
      Signed-off-by: NBernhard Walle <bwalle@suse.de>
      Cc: <linux-arch@vger.kernel.org>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Vivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      72a7fe39