AT45D(4) | Device Drivers Manual | AT45D(4) |
at45d
— driver for
DataFlash(tm) non-volatile storage devices
To compile this driver into the kernel, place the following line in your kernel configuration file:
device at45d
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
at45d_load="YES"
The at45d
driver provides support for the
family of non-volatile storage devices known collectively as DataFlash(tm).
DataFlash chips typically have part numbers beginning with AT45DB. The
at45d
driver supports only the SPI bus versions of
each AT45DB device, indicated by the last digit of the part number being 1
or 2.
The at45d
driver uses opcode 0x9f to read
the manufacturer and device ID data to determine whether the device is
supported. The device ID is looked up using a table of data within the
driver which describes the attributes of each supported device, such as
block size, sector size, and device capacity. When a supported device is
found, the at45d
driver creates a disk device and
makes it accessible at /dev/flash/at45d?. The new
disk device is then tasted by the available geom(4)
modules as with any disk device.
The at45d
driver provides support for the
following devices:
On an fdt(4) based system, the
at45d
device is defined as a slave device subnode of
the SPI bus controller node. All properties documented in the
spibus.txt bindings document can be used with the
at45d
device. The most commonly-used ones are
documented below.
The following properties are required in the
at45d
device subnode:
The following properties are optional for the
at45d
device subnode:
On a device.hints(5) based system, such as
MIPS
, these values are configurable for
at45d
:
at45d
instance is attached to.The at45d
driver first appeared in
FreeBSD 6.0.
March 2, 2019 | Debian |