[meta-freescale] mxs-auart and LED triggers

Eric Bénard eric at eukrea.com
Thu Jul 17 01:04:39 PDT 2014


Hi Stuart,

Le Thu, 17 Jul 2014 15:51:37 +1000,
Stuart Longland <stuartl at vrt.com.au> a écrit :
> Not sure if this is the place to ask or not, I'm currently in search for
> the upstream project that looks after the i.MX port of the mainline
> Linux kernel.
> 
> We're busy building a device for polling energy meters over RS-485, and
> one of my colleagues asked if it were possible to use the activity LED
> on the unit to indicate RS-485 activity.
> 
> Presently, I use it to indicate mmc0 activity.  I'm not sure if there's
> an equivalent for serial ports.
> 
> I did a bit of searching, both for general purpose serial triggers
> through to auart-related triggers, nothing seemed to show up.
> 
you're right and you will need to add a serial leg trigger and the
right hooks in the driver or the serial core depending the information you want to show on the leds.

> On a related note, the FlexCAN driver supports turning on/off regulators
> when someone brings up or down a CAN interface.  Is there an equivalent
> facility on mxs-auart that would turn on a regulator when someone opens
> a serial port?
> 
you need to add the right hooks in the serial driver similar to what is
done in the CAN driver.

Best regards,
Eric


More information about the meta-freescale mailing list