ti_i2c.c (4e27d36d38f4c3b12bcc1855c5d41527d08d1ce0) ti_i2c.c (56d8b96cbc3bd204e30061ff5c554f0c9acb3662)
1/*-
2 * Copyright (c) 2011 Ben Gray <ben.r.gray@gmail.com>.
3 * Copyright (c) 2014 Luiz Otavio O Souza <loos@freebsd.org>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 97 unchanged lines hidden (view full) ---

106 int bitrate;
107 uint8_t psc; /* Fast/Standard mode prescale divider */
108 uint8_t scll; /* Fast/Standard mode SCL low time */
109 uint8_t sclh; /* Fast/Standard mode SCL high time */
110 uint8_t hsscll; /* High Speed mode SCL low time */
111 uint8_t hssclh; /* High Speed mode SCL high time */
112};
113
1/*-
2 * Copyright (c) 2011 Ben Gray <ben.r.gray@gmail.com>.
3 * Copyright (c) 2014 Luiz Otavio O Souza <loos@freebsd.org>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 97 unchanged lines hidden (view full) ---

106 int bitrate;
107 uint8_t psc; /* Fast/Standard mode prescale divider */
108 uint8_t scll; /* Fast/Standard mode SCL low time */
109 uint8_t sclh; /* Fast/Standard mode SCL high time */
110 uint8_t hsscll; /* High Speed mode SCL low time */
111 uint8_t hssclh; /* High Speed mode SCL high time */
112};
113
114#if defined(SOC_OMAP3)
115#error "Unsupported SoC"
116#endif
117
118#if defined(SOC_OMAP4)
119static struct ti_i2c_clock_config ti_omap4_i2c_clock_configs[] = {
120 { IIC_UNKNOWN, 100000, 23, 13, 15, 0, 0},
121 { IIC_SLOW, 100000, 23, 13, 15, 0, 0},
122 { IIC_FAST, 400000, 9, 5, 7, 0, 0},
123 { IIC_FASTEST, 1000000, 5, 3, 4, 0, 0},
124 /* { IIC_FASTEST, 3200000, 1, 113, 115, 7, 10}, - HS mode */
125 { -1, 0 }

--- 842 unchanged lines hidden ---
114#if defined(SOC_OMAP4)
115static struct ti_i2c_clock_config ti_omap4_i2c_clock_configs[] = {
116 { IIC_UNKNOWN, 100000, 23, 13, 15, 0, 0},
117 { IIC_SLOW, 100000, 23, 13, 15, 0, 0},
118 { IIC_FAST, 400000, 9, 5, 7, 0, 0},
119 { IIC_FASTEST, 1000000, 5, 3, 4, 0, 0},
120 /* { IIC_FASTEST, 3200000, 1, 113, 115, 7, 10}, - HS mode */
121 { -1, 0 }

--- 842 unchanged lines hidden ---