From: bugzilla-daemon@bugs.ecos.sourceware.org
To: ecos-patches@ecos.sourceware.org
Subject: [Bug 1001397] I2C driver for Kinetic microcontrollers
Date: Sat, 31 Mar 2012 17:17:00 -0000 [thread overview]
Message-ID: <20120331171724.140412F78003@mail.ecoscentric.com> (raw)
In-Reply-To: <bug-1001397-104@http.bugs.ecos.sourceware.org/>
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001397
--- Comment #21 from Ilija Kocho <ilijak@siva.com.mk> 2012-03-31 18:17:18 BST ---
(In reply to comment #20)
> Created an attachment (id=1653)
--> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1653) [details]
> Kinetis i2c driver
>
> I have updated the patch against the current cvs, as well as implemented a
> per-device bus speed configuration.
>
> However, I left the cdls and API to use the MULT+ICR values (as per 50.3.2 and
> 50.4.1.10 of the RM) rather then actual frequency -- the ICR value is a
> function of multiple parameters, and there seems to be no obvious way to
> conjure it up from frequency alone.
There is a conflict that requires at least one active I2C bus:
18:46:30> ecosconfig new twr_k60n512
U CYGHWR_HAL_CORTEXM, new inferred value M4
U CYGHWR_HAL_CORTEXM_SYSTICK_CLK_SOURCE, new inferred value INTERNAL
C CYGPKG_DEVS_I2C_FREESCALE_I2C, "requires" constraint not satisfied:
CYGINT_HAL_FREESCALE_I2C_BUS
18:46:30>
Probably something like following would be best fix, but unfortunately
configtool crashes when I try to activate an I2C bus:
--- i2c_freescale_org.cdl 2012-03-31 18:15:45.364128606 +0200
+++ i2c_freescale.cdl 2012-03-31 18:53:28.388222427 +0200
@@ -46,10 +46,17 @@
#####DESCRIPTIONEND####
# ====================================================================
+cdl_interface CYGINT_HAL_FREESCALE_I2C_BUS {
+ display "Number of I2C buses"
+}
+
cdl_package CYGPKG_DEVS_I2C_FREESCALE_I2C {
display "I2C driver for Freescale Kinetis and ColdFire+ chips"
parent CYGPKG_IO_I2C
requires CYGPKG_IO_I2C
+
+ active_if CYGINT_HAL_FREESCALE_I2C_BUS
+
include_dir cyg/io
description "
This package provides a generic I2C device driver for the on-chip
@@ -57,12 +64,6 @@
compile -library=libextras.a i2c_freescale.c
- cdl_interface CYGINT_HAL_FREESCALE_I2C_BUS {
- display "Number of I2C buses"
- }
-
- requires CYGINT_HAL_FREESCALE_I2C_BUS
-
cdl_option CYGPKG_DEVS_I2C_FREESCALE_I2C_TRACE {
display "I2C trace"
flavor bool
Then I tried the following:
--- i2c_freescale_org.cdl 2012-03-31 18:15:45.364128606 +0200
+++ i2c_freescale.cdl 2012-03-31 18:56:09.916229122 +0200
@@ -46,10 +46,17 @@
#####DESCRIPTIONEND####
# ====================================================================
+cdl_interface CYGINT_HAL_FREESCALE_I2C_BUS {
+ display "Number of I2C buses"
+}
+
cdl_package CYGPKG_DEVS_I2C_FREESCALE_I2C {
display "I2C driver for Freescale Kinetis and ColdFire+ chips"
parent CYGPKG_IO_I2C
requires CYGPKG_IO_I2C
+
+ requires CYGPKG_HAL_CORTEXM_KINETIS
+
include_dir cyg/io
description "
This package provides a generic I2C device driver for the on-chip
@@ -57,12 +64,6 @@
compile -library=libextras.a i2c_freescale.c
- cdl_interface CYGINT_HAL_FREESCALE_I2C_BUS {
- display "Number of I2C buses"
- }
-
- requires CYGINT_HAL_FREESCALE_I2C_BUS
-
cdl_option CYGPKG_DEVS_I2C_FREESCALE_I2C_TRACE {
display "I2C trace"
flavor bool
I hope you'll find better fix, otherwise If this is good enough I could prepare
updated patch.
Ilija
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
next prev parent reply other threads:[~2012-03-31 17:17 UTC|newest]
Thread overview: 84+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-1001397-104@http.bugs.ecos.sourceware.org/>
2011-12-01 15:48 ` bugzilla-daemon
2011-12-01 15:52 ` bugzilla-daemon
2011-12-01 15:58 ` bugzilla-daemon
2011-12-13 15:13 ` bugzilla-daemon
2011-12-23 10:41 ` bugzilla-daemon
2011-12-23 13:28 ` bugzilla-daemon
2011-12-23 14:14 ` bugzilla-daemon
2011-12-23 14:15 ` bugzilla-daemon
2011-12-24 9:22 ` bugzilla-daemon
2011-12-24 11:59 ` bugzilla-daemon
2011-12-26 7:32 ` bugzilla-daemon
2012-01-01 21:13 ` bugzilla-daemon
2012-01-10 15:40 ` bugzilla-daemon
2012-01-11 20:33 ` bugzilla-daemon
2012-01-16 14:31 ` bugzilla-daemon
2012-02-07 20:38 ` bugzilla-daemon
2012-02-08 9:12 ` bugzilla-daemon
2012-02-08 9:55 ` bugzilla-daemon
2012-02-11 0:16 ` bugzilla-daemon
2012-02-11 10:14 ` bugzilla-daemon
2012-02-12 19:11 ` bugzilla-daemon
2012-02-12 19:11 ` bugzilla-daemon
2012-02-23 16:11 ` bugzilla-daemon
2012-03-20 15:17 ` bugzilla-daemon
2012-03-31 17:17 ` bugzilla-daemon [this message]
2012-05-04 18:17 ` bugzilla-daemon
2012-12-21 20:46 ` bugzilla-daemon
2012-12-24 9:52 ` bugzilla-daemon
2012-12-24 16:53 ` bugzilla-daemon
2012-12-24 16:54 ` bugzilla-daemon
2012-12-24 16:56 ` bugzilla-daemon
2012-12-24 16:56 ` bugzilla-daemon
2012-12-24 17:14 ` bugzilla-daemon
2012-12-24 17:38 ` bugzilla-daemon
2012-12-25 21:32 ` bugzilla-daemon
2012-12-25 21:33 ` bugzilla-daemon
2012-12-25 23:38 ` bugzilla-daemon
2012-12-26 15:06 ` bugzilla-daemon
2012-12-29 14:24 ` bugzilla-daemon
2013-01-02 3:48 ` bugzilla-daemon
2013-01-02 7:07 ` bugzilla-daemon
2013-01-03 9:09 ` bugzilla-daemon
2013-01-03 9:12 ` bugzilla-daemon
2013-01-03 16:27 ` bugzilla-daemon
2013-01-06 5:47 ` bugzilla-daemon
2013-03-02 18:08 ` bugzilla-daemon
2013-03-02 18:09 ` bugzilla-daemon
2013-04-10 20:34 ` bugzilla-daemon
2013-04-10 20:54 ` bugzilla-daemon
2013-04-10 21:14 ` bugzilla-daemon
2013-04-10 21:15 ` bugzilla-daemon
2013-04-10 21:16 ` bugzilla-daemon
2013-04-10 21:17 ` [Bug 1001397] I2C driver for Kinetis microcontrollers bugzilla-daemon
2013-04-11 1:20 ` bugzilla-daemon
2013-04-11 1:25 ` bugzilla-daemon
2013-04-11 1:49 ` bugzilla-daemon
2013-04-13 23:21 ` bugzilla-daemon
2013-04-13 23:22 ` bugzilla-daemon
2013-04-15 16:34 ` bugzilla-daemon
2013-04-17 16:28 ` bugzilla-daemon
2013-04-17 17:43 ` bugzilla-daemon
2013-04-19 16:39 ` bugzilla-daemon
2013-04-20 20:09 ` bugzilla-daemon
2013-04-21 7:47 ` bugzilla-daemon
2013-04-21 14:09 ` bugzilla-daemon
2013-04-23 4:47 ` bugzilla-daemon
2013-04-23 7:01 ` bugzilla-daemon
2013-04-24 6:56 ` bugzilla-daemon
2013-04-24 9:08 ` bugzilla-daemon
2013-04-24 17:20 ` bugzilla-daemon
2013-04-24 18:46 ` bugzilla-daemon
2013-04-25 17:06 ` bugzilla-daemon
2013-04-26 12:54 ` bugzilla-daemon
2013-04-26 13:39 ` bugzilla-daemon
2013-04-26 17:13 ` bugzilla-daemon
2013-04-26 17:17 ` bugzilla-daemon
2013-04-30 11:40 ` bugzilla-daemon
2013-04-30 11:40 ` bugzilla-daemon
2013-04-30 19:03 ` bugzilla-daemon
2013-08-29 17:58 ` bugzilla-daemon
2013-08-29 18:00 ` bugzilla-daemon
2013-08-30 7:15 ` bugzilla-daemon
2013-08-30 7:18 ` bugzilla-daemon
2014-01-28 1:46 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120331171724.140412F78003@mail.ecoscentric.com \
--to=bugzilla-daemon@bugs.ecos.sourceware.org \
--cc=ecos-patches@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).