net: Use packed structures for networking PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled by default for '-O2': BOOTP broadcast 1 data abort pc : [<8ff8bb30>] lr : [<00004f1f>] reloc pc : [<17832b30>] lr : [<878abf1f>] sp : 8f558bc0 ip : 00000000 fp : 8ffef5a4 r10: 8ffed248 r9 : 8f558ee0 r8 : 8ffef594 r7 : 0000000e r6 : 8ffed700 r5 : 00000000 r4 : 8ffed74e r3 : 00060101 r2 : 8ffed230 r1 : 8ffed706 r0 : 00000ddd Flags: nzcv IRQs off FIQs off Mode SVC_32 Resetting CPU ... Core reason is usage of structures for network headers without packed attribute. Reviewed-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com> Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6 Copy these from Linux v4.5-rc6 tag. This is needed so that we can keep up with newer gcc versions. Note that we don't have the uapi/ hierarchy from the kernel so continue to use <linux/types.h> Signed-off-by: Tom Rini <trini@konsulko.com>
karo: tx6: prevent DTB from either being out of reach of kernel or overwritten during uncompress The current setting of fdtaddr and fdt_high has proven to be inappropriate in that either the FDT may be out of reach of the kernel or may be overwritten by the uncompressing Linux kernel. Set fdt_high to an offset of 256MiB from SDRAM start, so that it is valid for any board regardless of memory size while preventing the described problems.
mxs_gpio: correctly use the GPIO API The GPIO API expects a linear GPIO number as parameter to the gpio_*() functions. The current implementation of the mxs_gpio driver operates on iomux_cfg_t cookies instead. Therefore the 'gpio' command cannot be used with this driver. Change the driver to implement the correct API and introduce some checks to catch users that still use the old semantics. 1. assert the most sigificant bit in the iomux_cfg_t pad definitions, so that using such a cookie in place of a GPIO number will decisively generate an invalid GPIO number and flag an error at runtime. 2. introduce a compile switch CONFIG_MXS_IOMUX_COMPILE_CHECK to make the iomux_cfg_t cookie a 64 bit variable, so that passing an iomux_cfg_t value to a gpio_*() function will generate a compile time error.
karo: tx6ul: disable the PMIC for '_noenv' U-Boot The I2C access to the PMIC requires the TAMPER pins of the i.MX6UL to be useable as GPIOs. This is only possible after the TAMPER_PIN_DISABLE fuses are programmed which is usually done via U-Boot. Resolve this catch 22 situation by disabling the PMIC in the '_noenv' U-Boot variant which is usually used in the manufacturing environment.