diff options
author | Neelesh Gupta <neelegup@linux.vnet.ibm.com> | 2014-11-05 02:43:52 +0530 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-11-05 13:04:48 +1100 |
commit | a3f1ae0d3b09e391c54abf75d686efeb14259a59 (patch) | |
tree | 4654b9ab389534a16b92fcd4eed89f0e4b925b8c /core | |
parent | 2e3bcfe490bb2ae0e3fbe5c062677026d2096093 (diff) | |
download | skiboot-a3f1ae0d3b09e391c54abf75d686efeb14259a59.zip skiboot-a3f1ae0d3b09e391c54abf75d686efeb14259a59.tar.gz skiboot-a3f1ae0d3b09e391c54abf75d686efeb14259a59.tar.bz2 |
i2c: Bug fixes, clean up of the code
Fixed few bugs and clean up a lot. Renamed the state machine variables
to make more sense. A new helper 'p8_i2c_check_work' to avoid hitting
deep call stack after request complete.
Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/init.c b/core/init.c index 1db7978..f50e5ec 100644 --- a/core/init.c +++ b/core/init.c @@ -555,8 +555,6 @@ void __noreturn main_cpu_entry(const void *fdt, u32 master_cpu) */ lpc_init(); - p8_i2c_init(); - /* * Now, we init our memory map from the device-tree, and immediately * reserve areas which we know might contain data coming from @@ -608,6 +606,9 @@ void __noreturn main_cpu_entry(const void *fdt, u32 master_cpu) */ chiptod_init(master_cpu); + /* Initialize i2c */ + p8_i2c_init(); + /* * We have initialized the basic HW, we can now call into the * platform to perform subsequent inits, such as establishing |