The old driver used con_id clock entries. Convert to use dev_id
for clock lookup via standard method.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91rm9200.c |1 +
arch/arm/mach-at91/at91sam9260.c |1 +
arch/arm/mach-at91/at91sam9261.c |1 +
arch/arm/mach-at91/at91sam9263
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 314
3 files changed, 383 deletions(-)
delete mode 100644 arch/arm/mach-at91
)
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
Tested-by: Hubert Feurstein
v12: - corrected wrong id_entry on sam9261 twi gpio pdev
v11: - fix for flags persistency suggested by Carsten Behling
- calc_twi_clock fix for sam9261 by Ludovic Desroches
v10: - applied fix for RXRDY
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 file changed, 6 deletions(-)
diff --git a/arch/arm/mach
does not rely on more than one repeated start.
Changes since v11:
- corrected wrong id_entry on sam9261 twi gpio pdev
Nikolaus Voss (4):
drivers/i2c/busses/i2c-at91.c: remove old polling driver
Replace clk_lookup.con_id with clk_lookup.dev_id entries for twi clk
drivers/i2c/busses/i2c-at91.c
The old driver used con_id clock entries. Convert to use dev_id
for clock lookup via standard method.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91rm9200.c |1 +
arch/arm/mach-at91/at91sam9260.c |1 +
arch/arm/mach-at91/at91sam9261.c |1 +
arch/arm/mach-at91/at91sam9263
does not rely on more than one repeated start.
Changes since v10:
- fix for flags persistency suggested and tested by Carsten Behling
- clk_lookup.dev_id entries for at91sam9x5
- calc_twi_clock fix for sam9261 by Ludovic Desroches
Nikolaus Voss (4):
drivers/i2c/busses/i2c-at91.c: remove old
)
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
Tested-by: Hubert Feurstein
v11: - fix for flags persistency suggested by Carsten Behling
- calc_twi_clock fix for sam9261 by Ludovic Desroches
v10: - applied fix for RXRDY overrun bug submitted by Hubert Feurstein
- applied fix
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 314
3 files changed, 383 deletions(-)
delete mode 100644 arch/arm/mach-at91
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 file changed, 6 deletions(-)
diff --git a/arch/arm/mach
Hi Carsten,
On Wed, 25 Apr 2012, Carsten Behling wrote:
I cannot find the fix for the RXRDY overrun bug in this patch:
The fix refers to the bug when RXRDY flag was masked out by TXCOMP,
reported by Hubert. I hope this is fixed with v10.
[...]
here you only report the status flags after a com
does not rely on more than one repeated start.
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
Tested-by: Hubert Feurstein
v10: - applied fix for RXRDY overrun bug submitted by Hubert Feurstein
- applied fix for calculating twi_clk
v9: - merge i2c-at91.c patches to single patch
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 314
3 files changed, 0 insertions(+), 383 deletions(-)
delete mode 100644
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 files changed, 0 insertions(+), 6 deletions(-)
diff
)
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
Tested-by: Hubert Feurstein
---
v10: - applied fix for RXRDY overrun bug submitted by Hubert Feurstein
- applied fix for calculating twi_clk
v9: - merge i2c-at91.c patches to single patch
- rewrite cwgr reg after timeout
v8
The old driver used con_id clock entries. Convert to use dev_id
for clock lookup via standard method.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91cap9.c|1 +
arch/arm/mach-at91/at91rm9200.c |1 +
arch/arm/mach-at91/at91sam9260.c |1 +
arch/arm/mach-at91/at91sam9261
)
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
Tested-by: Hubert Feurstein
---
arch/arm/mach-at91/at91rm9200_devices.c |9 +
drivers/i2c/busses/Kconfig | 11 +-
drivers/i2c/busses/Makefile |1 +
drivers/i2c/busses/i2c-at91.c | 455
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 files changed, 0 insertions(+), 6 deletions(-)
diff
does not rely on more than one repeated start.
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
Tested-by: Hubert Feurstein
v9: i) merge i2c-at91.c patches to single patch
ii) rewrite cwgr reg after timeout to reenable the right twi clock
v8: i) remove local include
ii) remove
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 314
3 files changed, 0 insertions(+), 383 deletions(-)
delete mode 100644
The old driver used con_id clock entries. Convert to use dev_id
for clock lookup via standard method.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91cap9.c|1 +
arch/arm/mach-at91/at91rm9200.c |1 +
arch/arm/mach-at91/at91sam9260.c |1 +
arch/arm/mach-at91/at91sam9261
Register definitions are directly placed into the driver file.
Signed-off-by: Nikolaus Voss
---
drivers/i2c/busses/i2c-at91.c | 33 -
drivers/i2c/busses/i2c-at91.h | 80 -
2 files changed, 31 insertions(+), 82 deletions(-)
delete mode
SMBus emulation uses I2C_M_RECV_LEN flag to indicate a SMBus block
read operation in which the length of a transfer is inicated by the
first received byte.
Make better use of clk_prepare()/clk_unprepare().
More sensible transfer timeout.
Signed-off-by: Nikolaus Voss
---
drivers/i2c/busses/i2c
The twi IP of AT91RM9200 has a bug which limits ckdiv to be
less than or equal to 5. Previously, this was checked in the
driver with cpu_is_rm9200(). This patch moves this information
into the platform_device as suggested by Arnd Bergmann.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91
types.
(The hardware does not support issuing arbitrary Sr conditions on the
bus.)
Tested on Atmel G45 with BQ20Z80 battery SMBus client.
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
---
drivers/i2c/busses/Kconfig| 11 +-
drivers/i2c/busses/Makefile |1 +
drivers
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 files changed, 0 insertions(+), 6 deletions(-)
diff
The old driver used con_id clock entries. Convert to use dev_id
for clock lookup via standard method.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91cap9.c|1 +
arch/arm/mach-at91/at91rm9200.c |1 +
arch/arm/mach-at91/at91sam9260.c |1 +
arch/arm/mach-at91/at91sam9261
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 327
3 files changed, 0 insertions(+), 396 deletions(-)
delete mode 100644
sue
Nikolaus Voss (7):
drivers/i2c/busses/i2c-at91.c: remove broken driver
Replace clk_lookup.con_id with clk_lookup.dev_id entries for twi clk
drivers/i2c/busses/i2c-at91.c: add new driver
G45 TWI: remove open drain setting for twi function gpios
i2c-at91.c: add SMBUS_READ_BLOCK_DATA functional
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 327
3 files changed, 0 insertions(+), 396 deletions(-)
delete mode 100644
types.
(The hardware does not support issuing arbitrary Sr conditions on the
bus.)
Tested on Atmel G45 with BQ20Z80 battery SMBus client.
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
---
drivers/i2c/busses/Kconfig| 11 +-
drivers/i2c/busses/Makefile |1 +
drivers
SMBus emulation uses I2C_M_RECV_LEN flag to indicate a SMBus block
read operation in which the length of a transfer is inicated by the
first received byte.
Make better use of clk_prepare()/clk_unprepare().
More sensible transfer timeout.
Signed-off-by: Nikolaus Voss
---
drivers/i2c/busses/i2c
The old driver used con_id clock entries. Convert to use dev_id
for clock lookup via standard method.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91cap9.c|1 +
arch/arm/mach-at91/at91rm9200.c |1 +
arch/arm/mach-at91/at91sam9260.c |1 +
arch/arm/mach-at91/at91sam9261
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 files changed, 0 insertions(+), 6 deletions(-)
diff
ups
v3: Integrated review comments from Ryan Mallon and Felipe Balbi
v2: Fixed whitespace issue
Nikolaus Voss (5):
drivers/i2c/busses/i2c-at91.c: remove broken driver
Replace clk_lookup.con_id with clk_lookup.dev_id entries for twi clk
drivers/i2c/busses/i2c-at91.c: add new driver
G45
types.
(The hardware does not support issuing arbitrary Sr conditions on the
bus.)
Tested on Atmel G45 with BQ20Z80 battery SMBus client.
Signed-off-by: Nikolaus Voss
Reviewed-by: Felipe Balbi
---
drivers/i2c/busses/Kconfig| 11 +-
drivers/i2c/busses/Makefile |1 +
drivers
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 327
3 files changed, 0 insertions(+), 396 deletions(-)
delete mode 100644
The old driver used con_id clock entries. Convert to use dev_id
for clock lookup via standard method.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91cap9.c|1 +
arch/arm/mach-at91/at91rm9200.c |1 +
arch/arm/mach-at91/at91sam9260.c |1 +
arch/arm/mach-at91/at91sam9261
SMBus emulation uses I2C_M_RECV_LEN flag to indicate a SMBus block
read operation in which the length of a transfer is inicated by the
first received byte.
Make better use of clk_prepare()/clk_unprepare().
More sensible transfer timeout.
Signed-off-by: Nikolaus Voss
---
drivers/i2c/busses/i2c
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 files changed, 0 insertions(+), 6 deletions(-)
diff
, cleanups
v4: Integrated more review comments from Ryan Mallon and Felipe Balbi:
Moved register include file to local include, code cleanups
v3: Integrated review comments from Ryan Mallon and Felipe Balbi
v2: Fixed whitespace issue
Nikolaus Voss (5):
drivers/i2c/busses/i2c-at91.c: remove
The old driver used con_id clock entries. Convert to use dev_id
for clock lookup via standard method.
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91cap9.c|1 +
arch/arm/mach-at91/at91rm9200.c |1 +
arch/arm/mach-at91/at91sam9260.c |1 +
arch/arm/mach-at91/at91sam9261
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 327
3 files changed, 0 insertions(+), 396 deletions(-)
delete mode 100644
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 files changed, 0 insertions(+), 6 deletions(-)
diff
types.
(The hardware does not support issuing arbitrary Sr conditions on the
bus.)
Tested on Atmel G45 with BQ20Z80 battery SMBus client.
Signed-off-by: Nikolaus Voss
---
drivers/i2c/busses/Kconfig| 11 +-
drivers/i2c/busses/Makefile |1 +
drivers/i2c/busses/i2c-at91.c | 410
, code cleanups
v3: Integrated review comments from Ryan Mallon and Felipe Balbi
v2: Fixed whitespace issue
Nikolaus Voss (4):
drivers/i2c/busses/i2c-at91.c: remove broken driver
Replace clk_lookup.con_id with clk_lookup.dev_id entries for twi clk
drivers/i2c/busses/i2c-at91.c: add new driver
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 files changed, 0 insertions(+), 6 deletions(-)
diff
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/include/mach/at91_twi.h | 68 --
drivers/i2c/busses/Makefile|1 -
drivers/i2c/busses/i2c-at91.c | 327
3 files changed, 0 insertions(+), 396 deletions(-)
delete mode 100644
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45.c |2 ++
arch/arm/mach-at91/at91sam9rl.c |2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c
index 318b040..a374899 100644
--- a/arch/arm
types.
(The hardware does not support issuing arbitrary Sr conditions on the
bus.)
Tested on Atmel G45 with BQ20Z80 battery SMBus client.
Signed-off-by: Nikolaus Voss
---
drivers/i2c/busses/Kconfig| 11 +-
drivers/i2c/busses/Makefile |1 +
drivers/i2c/busses/i2c-at91.c | 417
does not rely on more than one repeated start.
v4: Integrated more review comments from Ryan Mallon and Felipe Balbi:
Moved register include file to local include, code cleanups
v3: Integrated review comments from Ryan Mallon and Felipe Balbi
v2: Fixed whitespace issue
Nikolaus Voss (4
The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45_devices.c |6 --
1 files changed, 0 insertions(+), 6 deletions(-)
diff
Signed-off-by: Nikolaus Voss
---
arch/arm/mach-at91/at91sam9g45.c |2 ++
arch/arm/mach-at91/at91sam9rl.c |2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c
index e04c5fb..c985fdb 100644
--- a/arch/arm
types.
(The hardware does not support issuing arbitrary Sr conditions on the
bus.)
Tested on Atmel G45 with BQ20Z80 battery SMBus client.
Signed-off-by: Nikolaus Voss
---
drivers/i2c/busses/Kconfig| 11 +-
drivers/i2c/busses/i2c-at91.c | 442
Signed-off-by: Nikolaus Voss
---
drivers/i2c/busses/i2c-at91.c | 327 -
1 files changed, 0 insertions(+), 327 deletions(-)
delete mode 100644 drivers/i2c/busses/i2c-at91.c
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c
does not rely on more than one repeated start.
V3: Integrated review comments from Ryan Mallon and Felipe Balbi
V2: Fixed whitespace issue
Nikolaus Voss (4):
drivers/i2c/busses/i2c-at91.c: remove broken driver
drivers/i2c/busses/i2c-at91.c: add new driver
G45 TWI: remove open drain setting
56 matches
Mail list logo