u-boot/arch/powerpc/include/asm
Chunhe Lan 9c3f77eb3b fsl_i2c: add workaround for the erratum I2C A004447
This workaround is for the erratum I2C A004447. Device reference
manual provides a scheme that allows the I2C master controller
to generate nine SCL pulses, which enable an I2C slave device
that held SDA low to release SDA. However, due to this erratum,
this scheme no longer works. In addition, when I2C is used as
a source of the PBL, the state machine is not able to recover.

At the same time, delete the reduplicative definition of SVR_VER
and SVR_REV. The SVR_REV is the low 8 bits rather than the low 16
bits of svr. And we use the CONFIG_SYS_FSL_A004447_SVR_REV macro
instead of hard-code value 0x10, 0x11 and 0x20.

The CONFIG_SYS_FSL_A004447_SVR_REV = 0x00 represents that one
version of platform has this I2C errata. So enable this errata
by IS_SVR_REV(svr, maj, min) function.

Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Heiko Schocher <hs@denx.de>
2013-08-20 11:15:31 +02:00
..
arch-mpc83xx Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
4xx_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
4xx_pcie.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
5xx_immap.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
8xx_immap.h powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7 2013-06-11 22:01:45 +02:00
apm821xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
atomic.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
bitops.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
byteorder.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
cache.h ppc4xx: Remove IOP480 support 2012-10-15 11:53:59 -07:00
config.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
config_mpc85xx.h fsl_i2c: add workaround for the erratum I2C A004447 2013-08-20 11:15:31 +02:00
config_mpc86xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cpm_85xx.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
cpm_8260.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
e300.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
errno.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_ddr_dimm_params.h powerpc/mpc8xxx: Add x4 DDR device support 2013-08-09 12:41:39 -07:00
fsl_ddr_sdram.h powerpc/mpc8xxx: Add memory reset control 2013-08-09 12:41:39 -07:00
fsl_dma.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_dtsec.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_enet.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_fman.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_i2c.h fsl_i2c: add workaround for the erratum I2C A004447 2013-08-20 11:15:31 +02:00
fsl_ifc.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_law.h powerpc/85xx: Add C29x SoC support 2013-08-09 12:41:42 -07:00
fsl_lbc.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_liodn.h powerpc/srio: Update the SRIO LIODN registers and ID table macro 2013-08-09 12:41:37 -07:00
fsl_memac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_mpc83xx_serdes.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_pci.h powerpc/pcie: add PCIe version 3.x support 2013-08-09 12:41:41 -07:00
fsl_portals.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_secure_boot.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_serdes.h powerpc/asm: Move function declaration of 'serdes_get_prtcl' to fsl_serdes.h 2013-08-09 12:41:41 -07:00
fsl_srio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_tgec.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
global_data.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
gpio.h mpc83xx: Add a GPIO driver for the MPC83XX family 2012-01-09 20:10:33 -06:00
immap_83xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
immap_85xx.h fsl/usb: Move USB internal phy definitions to fsl_usb.h 2013-08-14 10:58:01 -07:00
immap_86xx.h 8xxx: Change all 8*xx_DDR addresses to 8xxx 2012-11-27 17:45:17 -06:00
immap_512x.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
immap_8260.h powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7 2013-06-11 22:01:45 +02:00
immap_qe.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
interrupt.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
io.h arch/powerpc/include/asm/io.h: fix warning: preprocessor token __iomem redefined 2012-11-04 11:00:35 -07:00
iopin_8xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
iopin_85xx.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
iopin_8260.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
m8260_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
mc146818rtc.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
mmu.h powerpc/mpc85xx: add support for MMUv2 page sizes 2013-01-30 11:25:15 -06:00
mp.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8xxx_spi.h mpc8308: support for Freescale MPC8308 cpu 2010-07-09 15:00:54 -05:00
mpc85xx_gpio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc512x.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8349_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
pci_io.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
pnp.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
posix_types.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
ppc4xx-ebc.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc4xx-emac.h SPDX-License-Identifier: convert PIBS licensed files 2013-08-19 15:34:14 -04:00
ppc4xx-gpio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc4xx-i2c.h Merge branch 'master' of git://git.denx.de/u-boot-i2c 2013-07-24 09:50:24 -04:00
ppc4xx-isram.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc4xx-mal.h SPDX-License-Identifier: convert PIBS licensed files 2013-08-19 15:34:14 -04:00
ppc4xx-sdram.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc4xx-uic.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc4xx.h SPDX-License-Identifier: convert PIBS licensed files 2013-08-19 15:34:14 -04:00
ppc4xx_config.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc405.h SPDX-License-Identifier: convert PIBS licensed files 2013-08-19 15:34:14 -04:00
ppc405cr.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc405ep.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc405ex.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc405ez.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc405gp.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc440.h SPDX-License-Identifier: convert PIBS licensed files 2013-08-19 15:34:14 -04:00
ppc440ep_gr.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc440epx_grx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc440gp.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc440gx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc440sp.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc440spe.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc460ex_gt.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ppc460sx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
processor.h fsl_i2c: add workaround for the erratum I2C A004447 2013-08-20 11:15:31 +02:00
ptrace.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
residual.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
sections.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sigcontext.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
signal.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
spl.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
status_led.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
string.h Add strcasecmp() and strncasecmp() 2012-12-11 13:17:34 -07:00
types.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
u-boot.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
unaligned.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
xilinx_irq.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00