Correct SPL uses of IMX_MODULE_FUSE
This converts 6 usages of this option to the non-SPL form, since there is no SPL_IMX_MODULE_FUSE defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
dec5f3cc72
commit
24f95e141e
|
|
@ -74,7 +74,7 @@ struct fuse_entry_desc {
|
||||||
u32 status;
|
u32 status;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !CONFIG_IS_ENABLED(IMX_MODULE_FUSE)
|
#if !IS_ENABLED(CONFIG_IMX_MODULE_FUSE)
|
||||||
static inline u32 check_module_fused(enum fuse_module_type module)
|
static inline u32 check_module_fused(enum fuse_module_type module)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -744,7 +744,7 @@ void bus_i2c_init(int index, int speed, int unused,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(IMX_MODULE_FUSE)) {
|
if (IS_ENABLED(CONFIG_IMX_MODULE_FUSE)) {
|
||||||
if (i2c_fused((ulong)mxc_i2c_buses[index].base)) {
|
if (i2c_fused((ulong)mxc_i2c_buses[index].base)) {
|
||||||
printf("SoC fuse indicates I2C@0x%lx is unavailable.\n",
|
printf("SoC fuse indicates I2C@0x%lx is unavailable.\n",
|
||||||
(ulong)mxc_i2c_buses[index].base);
|
(ulong)mxc_i2c_buses[index].base);
|
||||||
|
|
@ -878,7 +878,7 @@ static int mxc_i2c_probe(struct udevice *bus)
|
||||||
if (addr == FDT_ADDR_T_NONE)
|
if (addr == FDT_ADDR_T_NONE)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(IMX_MODULE_FUSE)) {
|
if (IS_ENABLED(CONFIG_IMX_MODULE_FUSE)) {
|
||||||
if (i2c_fused((ulong)addr)) {
|
if (i2c_fused((ulong)addr)) {
|
||||||
printf("SoC fuse indicates I2C@0x%lx is unavailable.\n",
|
printf("SoC fuse indicates I2C@0x%lx is unavailable.\n",
|
||||||
(ulong)addr);
|
(ulong)addr);
|
||||||
|
|
|
||||||
|
|
@ -1205,7 +1205,7 @@ static int fecmxc_probe(struct udevice *dev)
|
||||||
uint32_t start;
|
uint32_t start;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(IMX_MODULE_FUSE)) {
|
if (IS_ENABLED(CONFIG_IMX_MODULE_FUSE)) {
|
||||||
if (enet_fused((ulong)priv->eth)) {
|
if (enet_fused((ulong)priv->eth)) {
|
||||||
printf("SoC fuse indicates Ethernet@0x%lx is unavailable.\n", (ulong)priv->eth);
|
printf("SoC fuse indicates Ethernet@0x%lx is unavailable.\n", (ulong)priv->eth);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
|
||||||
|
|
@ -360,7 +360,7 @@ int ehci_hcd_init(int index, enum usb_init_type init,
|
||||||
if (index > 3)
|
if (index > 3)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(IMX_MODULE_FUSE)) {
|
if (IS_ENABLED(CONFIG_IMX_MODULE_FUSE)) {
|
||||||
if (usb_fused((ulong)ehci)) {
|
if (usb_fused((ulong)ehci)) {
|
||||||
printf("SoC fuse indicates USB@0x%lx is unavailable.\n",
|
printf("SoC fuse indicates USB@0x%lx is unavailable.\n",
|
||||||
(ulong)ehci);
|
(ulong)ehci);
|
||||||
|
|
@ -641,7 +641,7 @@ static int ehci_usb_probe(struct udevice *dev)
|
||||||
struct ehci_hcor *hcor;
|
struct ehci_hcor *hcor;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (CONFIG_IS_ENABLED(IMX_MODULE_FUSE)) {
|
if (IS_ENABLED(CONFIG_IMX_MODULE_FUSE)) {
|
||||||
if (usb_fused((ulong)ehci)) {
|
if (usb_fused((ulong)ehci)) {
|
||||||
printf("SoC fuse indicates USB@0x%lx is unavailable.\n",
|
printf("SoC fuse indicates USB@0x%lx is unavailable.\n",
|
||||||
(ulong)ehci);
|
(ulong)ehci);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue