mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-18 20:31:32 +02:00
Merge branch '2022-06-03-assorted-fixes'
- armv8 TCR write bugfix, ubifs bugfix, imx8mq clk bugfixes, two network fixes, Add U-Boot version to chosen node, update TI AM64x board maintainers
This commit is contained in:
commit
90189ecd59
@ -99,9 +99,9 @@
|
|||||||
#define TCR_TG0_16K (2 << 14)
|
#define TCR_TG0_16K (2 << 14)
|
||||||
#define TCR_EPD1_DISABLE (1 << 23)
|
#define TCR_EPD1_DISABLE (1 << 23)
|
||||||
|
|
||||||
#define TCR_EL1_RSVD (1 << 31)
|
#define TCR_EL1_RSVD (1U << 31)
|
||||||
#define TCR_EL2_RSVD (1 << 31 | 1 << 23)
|
#define TCR_EL2_RSVD (1U << 31 | 1 << 23)
|
||||||
#define TCR_EL3_RSVD (1 << 31 | 1 << 23)
|
#define TCR_EL3_RSVD (1U << 31 | 1 << 23)
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
static inline void set_ttbr_tcr_mair(int el, u64 table, u64 tcr, u64 attr)
|
static inline void set_ttbr_tcr_mair(int el, u64 table, u64 tcr, u64 attr)
|
||||||
|
@ -8,6 +8,7 @@ config IMX8M
|
|||||||
config IMX8MQ
|
config IMX8MQ
|
||||||
bool
|
bool
|
||||||
select IMX8M
|
select IMX8M
|
||||||
|
select CLK_IMX8MQ
|
||||||
|
|
||||||
config IMX8MM
|
config IMX8MM
|
||||||
bool
|
bool
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
AM64x BOARD
|
AM64x BOARD
|
||||||
M: Dave Gerlach <d-gerlach@ti.com>
|
M: Vignesh Raghavendra <vigneshr@ti.com>
|
||||||
M: Tom Rini <trini@konsulko.com>
|
M: Tom Rini <trini@konsulko.com>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: board/ti/am64x/
|
F: board/ti/am64x/
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <exports.h>
|
#include <exports.h>
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
|
#include <version.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fdt_getprop_u32_default_node - Return a node's property or a default
|
* fdt_getprop_u32_default_node - Return a node's property or a default
|
||||||
@ -305,6 +306,15 @@ int fdt_chosen(void *fdt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* add u-boot version */
|
||||||
|
err = fdt_setprop(fdt, nodeoffset, "u-boot,version", PLAIN_VERSION,
|
||||||
|
strlen(PLAIN_VERSION) + 1);
|
||||||
|
if (err < 0) {
|
||||||
|
printf("WARNING: could not set u-boot,version %s.\n",
|
||||||
|
fdt_strerror(err));
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
return fdt_fixup_stdout(fdt, nodeoffset);
|
return fdt_fixup_stdout(fdt, nodeoffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ CONFIG_SYS_PROMPT="u-boot=> "
|
|||||||
# CONFIG_CMD_EXPORTENV is not set
|
# CONFIG_CMD_EXPORTENV is not set
|
||||||
# CONFIG_CMD_IMPORTENV is not set
|
# CONFIG_CMD_IMPORTENV is not set
|
||||||
# CONFIG_CMD_CRC32 is not set
|
# CONFIG_CMD_CRC32 is not set
|
||||||
|
CONFIG_CMD_CLK=y
|
||||||
CONFIG_CMD_FUSE=y
|
CONFIG_CMD_FUSE=y
|
||||||
CONFIG_CMD_GPIO=y
|
CONFIG_CMD_GPIO=y
|
||||||
CONFIG_CMD_I2C=y
|
CONFIG_CMD_I2C=y
|
||||||
|
@ -361,6 +361,9 @@ static int enetc_remove(struct udevice *dev)
|
|||||||
{
|
{
|
||||||
struct enetc_priv *priv = dev_get_priv(dev);
|
struct enetc_priv *priv = dev_get_priv(dev);
|
||||||
|
|
||||||
|
if (miiphy_get_dev_by_name(priv->imdio.name))
|
||||||
|
mdio_unregister(&priv->imdio);
|
||||||
|
|
||||||
free(priv->enetc_txbd);
|
free(priv->enetc_txbd);
|
||||||
free(priv->enetc_rxbd);
|
free(priv->enetc_rxbd);
|
||||||
|
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fs.h>
|
#include <fs.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/byteorder/little_endian.h>
|
#include <asm/byteorder.h>
|
||||||
#include <linux/byteorder/generic.h>
|
|
||||||
#include <memalign.h>
|
#include <memalign.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/byteorder/little_endian.h>
|
#include <asm/byteorder.h>
|
||||||
#include <linux/byteorder/generic.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -788,6 +788,8 @@ static int do_readpage(struct ubifs_info *c, struct inode *inode,
|
|||||||
|
|
||||||
if (last_block_size)
|
if (last_block_size)
|
||||||
dlen = last_block_size;
|
dlen = last_block_size;
|
||||||
|
else if (ret)
|
||||||
|
dlen = UBIFS_BLOCK_SIZE;
|
||||||
else
|
else
|
||||||
dlen = le32_to_cpu(dn->size);
|
dlen = le32_to_cpu(dn->size);
|
||||||
|
|
||||||
|
@ -391,6 +391,8 @@ struct ip_hdr {
|
|||||||
|
|
||||||
#define IP_HDR_SIZE (sizeof(struct ip_hdr))
|
#define IP_HDR_SIZE (sizeof(struct ip_hdr))
|
||||||
|
|
||||||
|
#define IP_MIN_FRAG_DATAGRAM_SIZE (IP_HDR_SIZE + 8)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Internet Protocol (IP) + UDP header.
|
* Internet Protocol (IP) + UDP header.
|
||||||
*/
|
*/
|
||||||
|
@ -907,6 +907,9 @@ static struct ip_udp_hdr *__net_defragment(struct ip_udp_hdr *ip, int *lenp)
|
|||||||
int offset8, start, len, done = 0;
|
int offset8, start, len, done = 0;
|
||||||
u16 ip_off = ntohs(ip->ip_off);
|
u16 ip_off = ntohs(ip->ip_off);
|
||||||
|
|
||||||
|
if (ip->ip_len < IP_MIN_FRAG_DATAGRAM_SIZE)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
/* payload starts after IP header, this fragment is in there */
|
/* payload starts after IP header, this fragment is in there */
|
||||||
payload = (struct hole *)(pkt_buff + IP_HDR_SIZE);
|
payload = (struct hole *)(pkt_buff + IP_HDR_SIZE);
|
||||||
offset8 = (ip_off & IP_OFFS);
|
offset8 = (ip_off & IP_OFFS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user