mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[PATCH] 1/5 powerpc: Rework PowerMac i2c part 1
This is the first part of a rework of the PowerMac i2c code. It completely reworks the "low_i2c" layer. It is now more flexible, supports KeyWest, SMU and PMU i2c busses, and provides functions to match device nodes to i2c busses and adapters. This patch also extends & fix some bugs in the SMU driver related to i2c support and removes the clock spreading hacks from the pmac feature code rather than adapting them to the new API since they'll be replaced by the platform function code completely in patch 3/5 Signed-off-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
1 parent
002ec58eb5
commit
730745a5c4
11 files changed
+871
-679
No files matched your search
+1
-7
@@ -140,7 +140,7 @@ extern int find_via_pmu(void);
|
||||
|
||||
extern int pmu_request(struct adb_request *req,
|
||||
void (*done)(struct adb_request *), int nbytes, ...);
|
||||
|
||||
extern int pmu_queue_request(struct adb_request *req);
|
||||
extern void pmu_poll(void);
|
||||
extern void pmu_poll_adb(void); /* For use by xmon */
|
||||
extern void pmu_wait_complete(struct adb_request *req);
|
||||
@@ -160,12 +160,6 @@ extern void pmu_unlock(void);
|
||||
extern int pmu_present(void);
|
||||
extern int pmu_get_model(void);
|
||||
|
||||
extern int pmu_i2c_combined_read(int bus, int addr, int subaddr, u8* data, int len);
|
||||
extern int pmu_i2c_stdsub_write(int bus, int addr, int subaddr, u8* data, int len);
|
||||
extern int pmu_i2c_simple_read(int bus, int addr, u8* data, int len);
|
||||
extern int pmu_i2c_simple_write(int bus, int addr, u8* data, int len);
|
||||
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
/*
|
||||
* Stuff for putting the powerbook to sleep and waking it again.
|
||||
|
||||
Reference in new issue
Block a user