Skip to content
Snippets Groups Projects
  1. Mar 23, 2009
  2. Mar 20, 2009
  3. Feb 23, 2009
  4. Feb 17, 2009
    • Andy Fleming's avatar
      Eliminated arch-specific mmc header requirement · 1de97f98
      Andy Fleming authored
      
      The current MMC infrastructure relies on the existence of an
      arch-specific header file.  This isn't necessary, and a couple
      drivers were forced to implement dummy files to meet this requirement.
      Instead, we move the stuff in those header files into a more appropriate
      place, and eliminate the stubs and the #include of asm/arch/mmc.h
      
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      1de97f98
  5. Feb 09, 2009
  6. Dec 17, 2008
  7. Dec 15, 2008
    • Kumar Gala's avatar
      Introduce virt_to_phys() · 65e43a10
      Kumar Gala authored
      
      virt_to_phys() returns the physical address given a virtual. In most
      cases this will be just the input value as the vast majority of
      systems run in a 1:1 mode.
      
      However in systems that are not running this way it should report the
      physical address or ~0 if no mapping exists for the given virtual
      address.
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      65e43a10
  8. Oct 18, 2008
  9. Sep 06, 2008
  10. Sep 01, 2008
    • Haavard Skinnemoen's avatar
      avr32: Add support for "GPIO" port mux · baf449fc
      Haavard Skinnemoen authored
      
      The "GPIO" port mux is used on AVR32 UC3 parts as well as AT32AP7200 and
      all later AVR32 chips. This patch adds a driver for it, implementing the
      same API as the existing portmux-pio driver but with more functionality.
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      baf449fc
    • Haavard Skinnemoen's avatar
      avr32: use board_early_init_r instead of board_init_info · 25e6854d
      Haavard Skinnemoen authored
      
      Replace the avr32-specific board_init_info hook by the standard
      board_early_init_r hook and make it optional.
      
      board_early_init_r() runs somewhat earlier than board_init_info used to
      do, but this isn't a problem for any of the in-tree boards.
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      25e6854d
    • Haavard Skinnemoen's avatar
      avr32: Use board_postclk_init instead of gclk_init · 36d375fa
      Haavard Skinnemoen authored
      
      Replace the avr32-specific gclk_init() board hook with the standard
      board_postclk_init() hook which is supposed to run at the same point
      during initialization.
      
      Provide a dummy weak alias for boards not implementing this hook. The
      cost of this is:
        - 2 bytes for the dummy function (retal 0)
        - 2 bytes for each unnecessary function call (short rcall)
      
      which is a pretty small price to pay for avoiding lots of #ifdef
      clutter. In this particular case, all boards probably end up slightly
      smaller because we avoid the conditional checking if the gclk_init
      symbol is NULL.
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      36d375fa
    • Haavard Skinnemoen's avatar
      avr32: Add gclk helper functions · 98090cd7
      Haavard Skinnemoen authored
      
      Add two helper functions for configuring and enabling generic clocks:
        - gclk_enable_output: Enables output on a GCLKx pin
        - gclk_set_rate: Configures a gclk to run at a specific rate
      
      This should eliminate any reason to go mucking about with PM registers
      from board code.
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      98090cd7
    • Haavard Skinnemoen's avatar
      avr32: refactor the portmux/gpio code · ab0df36f
      Haavard Skinnemoen authored
      
        - Separate the portmux configuration functionality from the GPIO pin
          control API.
        - Separate the controller-specific code from the chip-specific code.
        - Allow "ganged" port configuration (multiple pins at once).
        - Add more flexibility to the "canned" peripheral select functions:
            - Allow using more than 23 address bits, more chip selects, as
      	well as NAND- and CF-specific pins.
            - Make the MACB SPEED pin optional, and choose between MII/RMII
      	using a parameter instead of an #ifdef.
            - Make it possible to use other MMC slots than slot 0, and support
      	different MMC/SDCard data bus widths.
        - Use more reasonable pull-up defaults; floating pins may consume a
          lot of power.
        - Get rid of some custom portmux code from the mimc200 board code. The
          old gpio/portmux API couldn't really handle its requirements, but
          the new one can.
        - Add documentation.
      
      The end result is slightly smaller code for all boards. Which isn't
      really the point, but at least it isn't any larger.
      
      This has been verified on ATSTK1002 and ATNGW100. I'd appreciate if
      the board maintainers could help me test this on their boards. In
      particular, the mimc200 port has lost a lot of code, so I'm hoping Mark
      can help me out.
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
      Cc: Mark Jackson <mpfj@mimc.co.uk>
      Cc: Alex Raimondi <alex.raimondi@miromico.ch>
      Cc: Julien May <julien.may@miromico.ch>
      
      Changes since v1:
        * Enable pullup on NWAIT
        * Add missing include to portmux-pio.h
        * Rename CONFIG_PIO2 -> CONFIG_PORTMUX_PIO to match docs
      ab0df36f
    • Haavard Skinnemoen's avatar
      avr32: data_bits should reflect the actual number of data bits · 4c24e828
      Haavard Skinnemoen authored
      
      Make the data_bits enum in struct sdram_config reflect the actual number
      of data bits on the bus, i.e. 16 or 32. Having 0 mean 16 bits and 1 mean
      32 bits is just too confusing.
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      4c24e828
  11. Aug 06, 2008
  12. Jul 30, 2008
    • Julien May's avatar
      Add support for the hammerhead (AVR32) board · 5c374c9e
      Julien May authored
      The Hammerhead platform is built around a AVR32 32-bit microcontroller
      from Atmel.  It offers versatile peripherals, such as ethernet, usb
      device, usb host etc.
      
      The board also incooperates a power supply and is a Power over Ethernet
      (PoE) Powered Device (PD).
      
      Additonally, a Cyclone III FPGA from Altera is integrated on the board.
      The FPGA is mapped into the 32-bit AVR memory bus. The FPGA offers two
      DDR2 SDRAM interfaces, which will cover even the most exceptional need
      of memory bandwidth. Together with the onboard video decoder the board
      is ready for video processing.
      
      For more information see: http:///www.miromico.com/hammerhead
      
      
      
      Signed-off-by: default avatarJulien May <mailinglist@miromico.ch>
      [haavard.skinnemoen@atmel.com: various small fixes and adaptions]
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      5c374c9e
  13. Jul 23, 2008
  14. Jun 28, 2008
    • Haavard Skinnemoen's avatar
      MMC: Consolidate MMC/SD command definitions · 341188b9
      Haavard Skinnemoen authored
      
      This moves the MMC and SD Card command definitions from
      include/asm/arch/mmc.h into include/mmc.h. These definitions are
      given by the MMC and SD Card standards, not by any particular
      architecture.
      
      There's a lot more room for consolidation in the MMC drivers which
      I'm hoping to get done eventually, but this patch is a start.
      
      Compile-tested for all avr32 boards as well as lpc2292sodimm and
      lubbock. This should cover all three mmc drivers in the tree.
      
      Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
      341188b9
  15. Jun 20, 2008
  16. Jun 03, 2008
  17. May 27, 2008
  18. May 20, 2008
  19. Apr 14, 2008
  20. Mar 18, 2008
  21. Feb 23, 2008
  22. Feb 05, 2008
    • Haavard Skinnemoen's avatar
      AVR32: Make SDRAM refresh rate configurable · d38da537
      Haavard Skinnemoen authored
      
      The existing code assumes the SDRAM row refresh period should always
      be 15.6 us. This is not always true, and indeed on the ATNGW100, the
      refresh rate should really be 7.81 us.
      
      Add a refresh_period member to struct sdram_info and initialize it
      properly for both ATSTK1000 and ATNGW100. Out-of-tree boards will
      panic() until the refresh_period member is updated properly.
      
      Big thanks to Gerhard Berghofer for pointing out this issue.
      
      Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
      d38da537
  23. Dec 17, 2007
Loading