]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: octeon_i2c: Misc fixes for ARM Octeon TX2 support
authorStefan Roese <sr@denx.de>
Thu, 23 Jul 2020 12:09:36 +0000 (14:09 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 25 Aug 2020 04:21:23 +0000 (06:21 +0200)
commitaf03bde0fa69c5287854b12badafc75b92dc84c3
tree4ff631fd9d420e85d5edb4eb80904628ff8b4cb5
parent1aa3966173fe92fa3c46638ee8eb8b8491f521d6
i2c: octeon_i2c: Misc fixes for ARM Octeon TX2 support

This patch fixes a few issues noticed, when testing this new driver on
ARM Octeon TX2 again. Here the details:

- Remove "common.h" header inclusion
- Use correct THP define on Octeon TX2
- Octeon TX2 uses the same compatible as Octeon TX. We can't distinguish
  both platforms this way. Remove the unused "cavium,thunder2-99xx-twsi"
  compatible and add a check to the Octeon TX2 specific
  "cavium,thunderx-i2c" so that the correct driver data is selected.
- Removed "struct pci_device_id" definition and U_BOOT_PCI_DEVICE()
  as its not needed for the PCI based probing on Octeon TX2

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Suneel Garapati <sgarapati@marvell.com>
Cc: Aaron Williams <awilliams@marvell.com>
Cc: Chandrakala Chavva <cchavva@marvell.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/octeon_i2c.c