04 Sep, 2018
1 commit
-
On iMX8MQ Rev B1, reading from fuse box is not allowed. The
OCOTP_READ_FUSE_DATA register is tied to magic number 0xff0055aa
for chip rev. So u-boot has to disable the fuse sense function for it.Signed-off-by: Ye Li
Tested-by: Anson Huang
(cherry picked from commit da95f60611e8859eba3e7ccb715fdce4d6376774)
27 Apr, 2018
2 commits
-
The formal production name starts with imx, so change relevant names
in codes to use this prefix.Signed-off-by: Ye Li
-
On mx7ulp B0, beside bank 0 and 1, the fuse bank 9, 10, 28 are changed to
Redundancy mode not ECC, so they can support to program different bits of
a word in multiple times.Signed-off-by: Ye Li
(cherry picked from commit af901cae281a617063559f60761ad4e912fccd5f)
05 Mar, 2018
1 commit
-
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.hand replaces include directives:
#include -> #include
#include -> #includeReported-by: Thomas Petazzoni
Signed-off-by: Masahiro Yamada
01 Mar, 2018
1 commit
-
This patch added Kconfig support for CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET
and enabled it in respective defconfig.Signed-off-by: Vipul Kumar
Signed-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek
04 Feb, 2018
1 commit
-
i.MX8M OCOTP follow same flow as i.MX6Q, but it has 64 banks
and each bank 4 words.Signed-off-by: Peng Fan
Reviewed-by: Stefano Babic
Reviewed-by: Fabio Estevam
30 Jan, 2018
1 commit
-
U-Boot on QEMU does not build ACPI table by ourself, instead it uses
the prebuilt ACPI table via the qfw interface. This implements the
qfw version of acpi_get_rsdp_addr() for setup_zimage().Signed-off-by: Bin Meng
Reviewed-by: Andy Shevchenko
12 Jan, 2018
1 commit
-
On i.MX7ULP, the fuse words (except bank 0 and 1) only supports to
write once, because they use ECC mode. Multiple writes may damage
the ECC value and cause a wrong fuse value decoded when reading.
This patch adds a checking before the fuse word programming, only
can write when the word value is 0.Signed-off-by: Ye Li
Signed-off-by: Peng Fan
11 Jan, 2018
1 commit
-
This patch adds changes necessary to move functionality present in
PowerPC folders with ARM architectures that have DPAA1 QBMan hardware- Create new board/freescale/common/fsl_portals.c to house shared
device tree fixups for DPAA1 devices with ARM and PowerPC cores
- Add new header file to top includes directory to allow files in
both architectures to grab the function prototypes
- Port inhibit_portals() from PowerPC to ARM. This function is used in
setup to disable interrupts on all QMan and BMan portals. It is
needed because the interrupts are enabled by default for all portals
including unused/uninitialised portals. When the kernel attempts to
go to deep sleep the unused portals prevent it from doing soSigned-off-by: Ahmed Mansour
Reviewed-by: York Sun
30 Nov, 2017
1 commit
-
Like STM32H7, now STM32F4/F7 clock drivers are binded by
MFD stm32_rcc driver.
This also allows to add reset support to STM32F4/F7 SoCs family.
As Reset driver is not part of SPL supported drivers, don't bind it
in case of SPL to avoid that stm32_rcc_bind() returns an error.Signed-off-by: Patrice Chotard
Reviewed-by: Vikas Manocha
06 Nov, 2017
1 commit
-
Uniformize STMicroelectronics copyrights headers for STM32
related code.Signed-off-by: Patrice Chotard
04 Oct, 2017
1 commit
-
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux. (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
//
@@@@
-error
+pr_err
(...)
//Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini
22 Sep, 2017
1 commit
-
This patch adds the support of reset and clock control
block (rcc) found on STM32 SoCs.
This driver is similar to a MFD linux driver.This driver supports currently STM32H7 only.
STM32F4 and STM32F7 will be migrated to this rcc MFD driver
in the future to uniformize all STM32 SoCs already upstreamed.Signed-off-by: Christophe Kerello
Signed-off-by: Patrice Chotard
Reviewed-by: Vikas Manocha
Reviewed-by: Simon Glass
19 Sep, 2017
1 commit
-
With the dev_read_addr_ptr function available, we can change the
efuse driver to use it (and eliminate the explicit type-cast).Signed-off-by: Philipp Tomsich
Reviewed-by: Simon Glass
13 Sep, 2017
2 commits
-
Add the new compatible "atmel,24mac402" to accommodate AT24MAC402.
The AT24MAC402 is a 2K Serial EEPROM and the 2-Kbit memory array
is internally organized as 16 pages of 16 bytes of EEPROM each.
The 48-bit EUI address in the AT24MAC402 are located in the extended
memory block.Signed-off-by: Wenyou Yang
-
Add the new compatible "microchip,24aa02e48" to accommodate 24AA02E48,
the 24AA02E48 is a 2K I2C Serial EEPROM with pre-programmed globally
unique, 48-bit node address, and 8-byte page size.Signed-off-by: Wenyou Yang
12 Sep, 2017
3 commits
-
Add a convenience macro to iterate over subnodes of a node. Make use of
this where appropriate in the code.Signed-off-by: Simon Glass
-
This option is an SPL-variant of the I2C_EEPROM option to enable
the driver for generic I2C-attached EEPROMs for SPL.Signed-off-by: Wenyou Yang
Reviewed-by: Simon Glass
03 Sep, 2017
1 commit
-
Add the following options to drivers/misc/Kconfig:
SYS_I2C_EEPROM_ADDR
SYS_I2C_EEPROM_BUS
SYS_EEPROM_SIZE
SYS_EEPROM_PAGE_WRITE_BITS
SYS_EEPROM_PAGE_WRITE_DELAY_MS
SYS_I2C_EEPROM_ADDR_LEN
SYS_I2C_EEPROM_ADDR_OVERFLOWThis does not migrate any boards, but provides a foundations for
those who want/need these optionsSigned-off-by: Adam Ford
[trini: Migrate uniphier]
Signed-off-by: Tom Rini
27 Jul, 2017
1 commit
-
This changes the rockchip-efuse driver to use dev_read_addr instead of
devfdt_get_addr.Signed-off-by: Philipp Tomsich
Acked-by: Philipp Tomsich
18 Jul, 2017
1 commit
12 Jul, 2017
3 commits
-
Change is consistent with other SOCs and it is in preparation
for adding SOMs. SOC's related files are moved from cpu/ to
mach-imx/.This change is also coherent with the structure in kernel.
Signed-off-by: Stefano Babic
CC: Fabio Estevam
CC: Akshay Bhat
CC: Ken Lin
CC: Marek Vasut
CC: Heiko Schocher
CC: "Sébastien Szymanski"
CC: Christian Gmeiner
CC: Stefan Roese
CC: Patrick Bruenn
CC: Troy Kisky
CC: Nikita Kiryanov
CC: Otavio Salvador
CC: "Eric Bénard"
CC: Jagan Teki
CC: Ye Li
CC: Peng Fan
CC: Adrian Alonso
CC: Alison Wang
CC: Tim Harvey
CC: Martin Donnelly
CC: Marcin Niestroj
CC: Lukasz Majewski
CC: Adam Ford
CC: "Albert ARIBAUD (3ADEV)"
CC: Boris Brezillon
CC: Soeren Moch
CC: Richard Hu
CC: Wig Cheng
CC: Vanessa Maegima
CC: Max Krummenacher
CC: Stefan Agner
CC: Markus Niebel
CC: Breno Lima
CC: Francesco Montefoschi
CC: Jaehoon Chung
CC: Scott Wood
CC: Joe Hershberger
CC: Anatolij Gustschin
CC: Simon Glass
CC: "Andrew F. Davis"
CC: "Łukasz Majewski"
CC: Patrice Chotard
CC: Nobuhiro Iwamatsu
CC: Hans de Goede
CC: Masahiro Yamada
CC: Stephen Warren
CC: Andre Przywara
CC: "Álvaro Fernández Rojas"
CC: York Sun
CC: Xiaoliang Yang
CC: Chen-Yu Tsai
CC: George McCollister
CC: Sven Ebenfeld
CC: Filip Brozovic
CC: Petr Kulhavy
CC: Eric Nelson
CC: Bai Ping
CC: Anson Huang
CC: Sanchayan Maity
CC: Lokesh Vutla
CC: Patrick Delaunay
CC: Gary Bisson
CC: Alexander Graf
CC: u-boot@lists.denx.de
Reviewed-by: Fabio Estevam
Reviewed-by: Christian Gmeiner -
This module can be found on the Turris Omnia board connected
via the I2C interface.Among some cryptographic functions, the chip has a 512 bit
One Time Programmable memory, 88 byte configuration memory
and 512 byte general purpose memory.The Turris Omnia stores serial number and device MAC address in
the OTP memory.This commit adds basic support for reading the EEPROM and also
exposes the chips Random Number Generator.The driver is based on code by
Josh Datko, Cryptotronix, jbd@cryptotronix.com
and also
Tomas Hlavacek, CZ.NIC, tomas.hlavacek@nic.czSigned-off-by: Tomas Hlavacek
Signed-off-by: Marek Behuncreate mode 100644 drivers/misc/atsha204a-i2c.c
create mode 100644 include/atsha204a-i2c.h
Signed-off-by: Stefan Roese -
This function returns the pointer to the value of a node property.
The current name ofnode_read_prop() is confusing. Follow the naming
of_get_property() from Linux.The return type (const u32 *) is wrong. DT property values can be
strings as well as integers. This is why of_get_property/fdt_getprop
returns an opaque pointer.Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass
26 Jun, 2017
1 commit
-
These are only used in drivers/mis/i2c_eeprom.c
Signed-off-by: Masahiro Yamada
Reviewed-by: Bin Meng
16 Jun, 2017
1 commit
-
There was for long time no activity in the mpx5xxx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in mpc5xxx,
so remove it.Signed-off-by: Heiko Schocher
07 Jun, 2017
1 commit
-
This adds a simple driver for reading the efuse block of the RK3399.
It should be easy enough to add drivers for other devices (e.g. the
RK3328, RK3368, etc.) by passing the device details via driver_data.Unlike the kernel driver (using the nvmem subsystem), we don't expose
the efuse as multiple named cells, but rather as a linear memory that
can be read using misc_read(...).The primary use case (as of today) is the generation of a 'serial#'
(and a 'cpuid#') environment variable for the RK3399-Q7 (Puma)
system-on-module.Note that this adds a debug-only (i.e. only if DEBUG is defined)
command 'rk3399_dump_efuses' that dumps the efuse block's content.
N.B.: The name 'rk3399_dump_efuses' was intentionally chosen to
include a SoC-name (together with a comment in the function) to
remind whoever adds support for additional SoCs that this
function currently makes assumptions regarding the size of the
fuse-box based on the RK3399. The hope is that the function is
adjusted to reflect any changes resulting from generalising the
driver for multiple SoCs and is then renamed.Signed-off-by: Philipp Tomsich
Reviewed-by: Simon Glass
01 Jun, 2017
5 commits
-
Update this driver so that it works with livetree.
Signed-off-by: Simon Glass
-
Convert this driver to support the live device tree and remove the old
fdtdec support.The keyboard is not yet converted.
Signed-off-by: Simon Glass
-
This prints out the wrong pointers. Fix it.
Signed-off-by: Simon Glass
-
Adjust this function to us an ofnode instead of an offset, so it can be
used with livetree. This involves updating all callers.Signed-off-by: Simon Glass
-
These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.In the end we will have:
1. dev_read_addr...() - works on devices, supports flat/live tree
2. devfdt_get_addr...() - current functions, flat tree only
3. of_get_address() etc. - new functions, live tree onlyAll drivers will be written to use 1. That function will in turn call
either 2 or 3 depending on whether the flat or live tree is in use.Note this involves changing some dead code - the imx_lpi2c.c file.
Signed-off-by: Simon Glass
22 May, 2017
6 commits
-
This is only used by one board and always set to 0x51. Drop this option.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher -
This converts the following to Kconfig:
CONFIG_DS4510Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher -
This option enables a command in the driver. But the functions defined by
the driver are not called anywhere else in U-Boot. So it does not seem
useful to have this driver without its commands.Drop this option, move the header file out of the common include/
directory and make all the function static.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher -
This option is only used in one driver and is not enabled by any board. It
does not seem worth having the ability to remove this part of the support.Drop the option.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher -
This option is only used in one driver and is not enabled by any board. It
does not seem worth having the ability to remove this part of the support.Drop the option.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher -
This option is only used in one driver and two boards. It does not seem
worth having the ability to remove this part of the support.Drop the option.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
Reviewed-by: Heiko Schocher
11 May, 2017
1 commit
-
Signed-off-by: Jonas Karlman
Reviewed-by: Simon Glass