From: joem <joem@martindale-electric.co.uk>
To: Linux on small ARM machines <arm-netbook@lists.phcomp.co.uk>
Cc: David Goodenough <david.goodenough@btconnect.com>,
"debian-arm@lists.debian.org" <debian-arm@lists.debian.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [Arm-netbook] device tree not the answer in the ARM world [was: Re: running Debian on a Cubieboard]
Date: Wed, 8 May 2013 09:43:02 +0000 [thread overview]
Message-ID: <1368006181.5589.30.camel@jm-desktop> (raw)
In-Reply-To: <CAPweEDym3TSEKWB1PsRWZ77irkTPF-Qdm9nRGfRBrv72CQ8zJA@mail.gmail.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 2695 bytes --]
On Sun, 2013-05-05 at 13:27 +0100, Luke Kenneth Casson Leighton wrote:
> when i say "completely and utterly different", i am not just talking
> about the processor, i am not just talking about the GPIO, or even the
> buses: i'm talking about the sensors, the power-up mechanisms, the
> startup procedures - everything. one device uses GPIO pin 32 for
> powering up and resetting a USB hub peripheral, yet for another device
> that exact same GPIO pin is used not even as a GPIO but as an
> alternate multiplexed function e.g. as RS232 TX pin!
Wrong approach Luke.
The guys in PIC world will be laughing at all this since they have
no such difficulties.
Only one file changes between CPUs in the myriads of PICs out there.
Every register and every bit field is defined.
*Unions take care of multiplexed function*
(and #define of exact CPU model + product + wake up modes etc
takes care of fine tuning including power-up mechanisms).
ARM realizes their mistake and introduces 'CMSIS' library.
It is available for NXP arm chips.
But the engineers who wrote it are too stupid.
They named the registers but bit fields and multiplexed pins etc
are not defined or just too stupid for words - they even change
similar register names like
RS232-UART_Tx_REGISTER to RS232-UART-TX-REGISTER
from one chip model to next bringing endless joy and happiness to
themselves as they aimlessly shoot themselves in both foot with one
bullet to make their library unusable from chip to chip. Doh!
(Ok just exaggerating, but its not far from the truth.)
The correct approach is to be critical of ARM lack of
a proper 'CMSIS' library and encourage them to hire just 4 open source
engineers and write some proper 'CMSIS' library, one chip at a time,
until a couple of chips get done, and then fan out and cover some
more bigger SoCs and families of chips. Its just too late to
go back and recover from all their mistakes. I'm sure once 4 engineers
publish each day their work on github, developers of SoC companies
will rapidly begin filling in the missing details for their custom
chips, because it is to their benefit to release one header file that
describe their chip completely to help port software quickly, and sell
more chips more quickly.
Who else could do this work? The SoC makers? Open source developers?
Distro makers? Not one fat chance!!
It is ARM's responsibility to make sure UART1 means UART1 in all
CPUs and not make a flat footed excuse about it.
This problem will never go away until they (ARM) do something about it.
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
prev parent reply other threads:[~2013-05-08 9:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-05 12:27 device tree not the answer in the ARM world [was: Re: running Debian on a Cubieboard] Luke Kenneth Casson Leighton
2013-05-06 4:09 ` Robert Hancock
2013-05-06 6:53 ` Luke Kenneth Casson Leighton
2013-05-06 9:04 ` James Courtier-Dutton
2013-05-06 12:08 ` Luke Kenneth Casson Leighton
2013-05-06 20:01 ` Rob Landley
2013-05-06 20:31 ` Lennart Sorensen
2013-05-06 20:56 ` Luke Kenneth Casson Leighton
2013-05-07 5:59 ` Kim Enkovaara
2013-05-06 20:55 ` Luke Kenneth Casson Leighton
2013-05-08 3:44 ` Rob Landley
2013-05-08 8:19 ` Luke Kenneth Casson Leighton
2013-05-09 0:25 ` Rob Landley
2013-05-06 10:08 ` Alexander Holler
2013-05-10 0:56 ` Yuhong Bao
2013-05-10 1:00 ` Yuhong Bao
2013-05-06 8:22 ` Oliver Schinagl
2013-05-06 11:47 ` [Arm-netbook] " luke.leighton
[not found] ` <km8de1$mel$1@pye-srv-01.telemetry.co.uk>
2013-05-06 15:25 ` device tree not the answer in the ARM world Luke Kenneth Casson Leighton
2013-05-08 9:43 ` joem [this message]
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=1368006181.5589.30.camel@jm-desktop \
--to=joem@martindale-electric.co.uk \
--cc=arm-netbook@lists.phcomp.co.uk \
--cc=david.goodenough@btconnect.com \
--cc=debian-arm@lists.debian.org \
--cc=linux-kernel@vger.kernel.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