Skip to content
Snippets Groups Projects
  1. May 19, 2015
  2. May 15, 2015
    • Fabio Estevam's avatar
      mx6: Set shared override bit in PL310 AUX_CTRL register · b4ed9f86
      Fabio Estevam authored
      Having bit 22 cleared in the PL310 Auxiliary Control register (shared
      attribute override enable) has the side effect of transforming Normal
      Shared Non-cacheable reads into Cacheable no-allocate reads.
      
      Coherent DMA buffers in Linux always have a Cacheable alias via the
      kernel linear mapping and the processor can speculatively load cache
      lines into the PL310 controller. With bit 22 cleared, Non-cacheable
      reads would unexpectedly hit such cache lines leading to buffer
      corruption.
      
      This was inspired by a patch from Catalin Marinas [1] and also from recent
      discussions in the linux-arm-kernel list [2] where Russell King and Rob Herring
      suggested that bootloaders should initialize the cache.
      
      [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2010-November/031810.html
      [2] https://lkml.org/lkml/2015/2/20/199
      
      
      
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
      Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      b4ed9f86
    • Peng Fan's avatar
      i2c: mxc: refactor i2c driver and support dm · 71204e95
      Peng Fan authored
      
      1. Introduce a new structure `struct mxc_i2c_bus`, this structure will
         used for non-DM and DM.
      2. Remove `struct mxc_i2c_regs` structure, but use register offset to access
         registers based on `base` entry of `struct mxc_i2c_bus`.
      3. Remove most `#ifdef I2C_QUIRK_REG`. Using driver_data to contain platform
         flags. A new flag is introduced, I2C_QUIRK_FLAG.
      4. Most functions use `struct mxc_i2c_bus` as one of the parameters.
         Make most functions common to DM and non-DM, try to avoid duplicated code.
      5. Support DM, but pinctrl is not included. Pinmux setting is still set
         by setup_i2c, but we do not need bus_i2c_init for DM.
      6. struct i2c_parms and struct sram_data are removed.
      7. Remove bus_i2c_read bus_i2c_write prototype in header file. The frist
         paramter of bus_i2c_init is modified to i2c index. Add new prototype
         i2c_idle_bus and force_bus_idle. Since bus_i2c_init is not good for
         DM I2C and pinctrl is missed, we use a weak function for i2c_idle_bus.
         Board file take the responsibility to implement this function, like this:
         "
         int i2c_idle_bus(struct mxc_i2c_bus *i2c_bus)
         {
      	   if (i2c_bus->index == 0)
      		   force_bus_idle(i2c_pads_info0);
      	   else if (i2c_bus->index == 1)
      		   force_bus_idle(i2c_pads_info1);
      	   else
      		   xxxxxx
         }
         "
      8. Introduce a weak function, enable_i2c_clk
      9. Tested on an i.MX7 platform. Log info:
       => dm tree
       Class       Probed   Name
       ----------------------------------------
       root        [ + ]    root_driver
       simple_bus  [   ]    |-- soc
       simple_bus  [   ]    |   |-- aips-bus@30000000
       simple_bus  [   ]    |   |   |-- anatop@30360000
       simple_bus  [   ]    |   |   `-- snvs@30370000
       simple_bus  [   ]    |   |-- aips-bus@30400000
       simple_bus  [   ]    |   `-- aips-bus@30800000
       i2c         [   ]    |       |-- i2c@30a20000
       i2c         [   ]    |       `-- i2c@30a40000
       simple_bus  [   ]    `-- regulators
       => i2c dev 0
       Setting bus to 0
       => i2c probe
       Valid chip addresses: 08 50
       => i2c md 8 31
       0031: 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08
      
      Signed-off-by: default avatarPeng Fan <Peng.Fan@freescale.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      71204e95
    • Peng Fan's avatar
      imx: mx27 move GPIO_PORTx to gpio.h · e6469f39
      Peng Fan authored
      
      These GPIO_PORTx macros should be in gpio.h, but not in imx-regs.h.
      
      Also, imx-regs.h and iomux-v3.h has same macro defintion for
      GPIO_PORTx, and both of them are included in mxc_i2c.c(include
      mxc_i2c.h). This will incur build warnings with macro redefinition.
      
      Since iomux-v3.h is not compatible with mx27, we can not simply
      include iomux-v3.h for mx27, so move the GPIO_PORTx to gpio.h to
      fix the build warning.
      
      Signed-off-by: default avatarPeng Fan <Peng.Fan@freescale.com>
      e6469f39
    • Simon Glass's avatar
      arm: Add a prototype for save_boot_params_ret() · 55199121
      Simon Glass authored
      
      It is convenient for some boards to implement save_boot_params() in C rather
      than assembler. Provide a way to return in this case.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      55199121
    • Hans de Goede's avatar
      sunxi: ohci: Add ohci usb host controller support · 6a72e804
      Hans de Goede authored
      
      This commit adds support for the OHCI companion controller, which makes
      usb-1 devices directly plugged into to usb root port work.
      
      Note for now this switches usb-keyboard support for sunxi back from int-queue
      support to the old interrupt polling method. Adding int-queue support to the
      ohci code and switching back to int-queue support is in the works.
      
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
      6a72e804
  3. May 13, 2015
  4. May 10, 2015
    • kunhuahuang's avatar
      stm32f4: add serial print port · 60570df1
      kunhuahuang authored
      
      Add the stm32F4 board's serial ports support.
      User can use it easily.
      The user only need to edit the number of the usart.
      The patch also fix the serial print out.
      
      Last, this version of patch fix the first patch checkpatch.pl error.
      Thanks to Kamil Lulko.
      
      Signed-off-by: default avatarkunhuahuang <huangkunhua@gmail.com>
      60570df1
  5. May 07, 2015
  6. May 05, 2015
  7. May 04, 2015
Loading