[flashrom] [PATCH] Add support for RayeR SPIPGM hardware.

Michael Karcher flashrom at mkarcher.dialup.fu-berlin.de
Thu May 27 00:12:29 CEST 2010


Am Mittwoch, den 26.05.2010, 19:23 +0200 schrieb Carl-Daniel Hailfinger:
> +int rayer_bitbang_spi_init(void)
> +{
> +       /* Pick a default value for now. */
> +       lpt_iobase = 0x378;
> +
> +       get_io_perms();

Ah, direct port access for the parallel port. While this is definitely
the way that works independent of the operating system (as it works
around the operating system), it is a pity to use this on operating
systems that have a clean parallel port bitbang interface. It happens to
be the case that Linux does support parallel port bitbanging
using /dev/parport. Any chance to use OS-specific parallel port
interfaces where possible?

Regards,
  Michael Karhcer





More information about the flashrom mailing list