1. 23 11月, 2012 4 次提交
  2. 19 11月, 2012 3 次提交
  3. 17 11月, 2012 2 次提交
    • A
      i2c: ocores: Add support for the GRLIB port of the controller and use function... · a000b8c1
      Andreas Larsson 提交于
      i2c: ocores: Add support for the GRLIB port of the controller and use function pointers for getreg and setreg functions
      
      The registers in the GRLIB port of the controller are 32-bit and in big endian
      byte order. The PRELOW and PREHIGH registers are merged into one register. The
      subsequent registers have their offset decreased accordingly. Hence the register
      access needs to be handled in a non-standard manner using custom getreg and
      setreg functions.
      
      Add setreg and getreg functions for different register widths and let oc_setreg
      and oc_getreg use function pointers to call the appropriate functions.
      
      A type is added as the data of the of match table entries. A new entry with a
      different compatible string is added to the table. The type of that entry
      triggers usage of the custom grlib functions by setting the setreg and getreg
      function pointers.
      Signed-off-by: NAndreas Larsson <andreas@gaisler.com>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      a000b8c1
    • A
      i2c: ocores: Add irq support for sparc · f5f35a92
      Andreas Larsson 提交于
      Add sparc support by using platform_get_irq instead of platform_get_resource.
      There are no platform resources of type IORESOURCE_IRQ for sparc, but
      platform_get_irq works for sparc. In the non-sparc case platform_get_irq
      internally uses platform_get_resource.
      Signed-off-by: NAndreas Larsson <andreas@gaisler.com>
      Acked-by: NPeter Korsgaard <jacmet@sunsite.dk>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      f5f35a92
  4. 16 11月, 2012 14 次提交
  5. 15 11月, 2012 11 次提交
  6. 14 11月, 2012 3 次提交
  7. 13 11月, 2012 3 次提交