sb/intel/bd82x6x: Remove dead code
Drop functions that are not being used. Change-Id: If406601f3bb7a98a621c1339b2f3413a43b8cc9f Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42013 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
24ee0b5991
commit
1929b571ce
|
@ -432,39 +432,6 @@ static int __unused mkhi_get_fwcaps(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG(CHROMEOS) && 0 /* DISABLED */
|
|
||||||
/* Tell ME to issue a global reset */
|
|
||||||
int mkhi_global_reset(void)
|
|
||||||
{
|
|
||||||
struct me_global_reset reset = {
|
|
||||||
.request_origin = GLOBAL_RESET_BIOS_POST,
|
|
||||||
.reset_type = CBM_RR_GLOBAL_RESET,
|
|
||||||
};
|
|
||||||
struct mkhi_header mkhi = {
|
|
||||||
.group_id = MKHI_GROUP_ID_CBM,
|
|
||||||
.command = MKHI_GLOBAL_RESET,
|
|
||||||
};
|
|
||||||
struct mei_header mei = {
|
|
||||||
.is_complete = 1,
|
|
||||||
.length = sizeof(mkhi) + sizeof(reset),
|
|
||||||
.host_address = MEI_HOST_ADDRESS,
|
|
||||||
.client_address = MEI_ADDRESS_MKHI,
|
|
||||||
};
|
|
||||||
|
|
||||||
printk(BIOS_NOTICE, "ME: Requesting global reset\n");
|
|
||||||
|
|
||||||
/* Send request and wait for response */
|
|
||||||
if (mei_sendrecv(&mei, &mkhi, &reset, NULL, 0) < 0) {
|
|
||||||
/* No response means reset will happen shortly... */
|
|
||||||
halt();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If the ME responded it rejected the reset request */
|
|
||||||
printk(BIOS_ERR, "ME: Global Reset failed\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __SIMPLE_DEVICE__
|
#ifdef __SIMPLE_DEVICE__
|
||||||
|
|
||||||
static void intel_me7_finalize_smm(void)
|
static void intel_me7_finalize_smm(void)
|
||||||
|
|
|
@ -699,21 +699,6 @@ static u32 me_to_host_words_pending(void)
|
||||||
(me.buffer_depth - 1);
|
(me.buffer_depth - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* This function is not yet being used, keep it in for the future. */
|
|
||||||
static u32 host_to_me_words_room(void)
|
|
||||||
{
|
|
||||||
struct mei_csr csr;
|
|
||||||
|
|
||||||
read_me_csr(&csr);
|
|
||||||
if (!csr.ready)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
read_host_csr(&csr);
|
|
||||||
return (csr.buffer_read_ptr - csr.buffer_write_ptr - 1) &
|
|
||||||
(csr.buffer_depth - 1);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
/*
|
/*
|
||||||
* mbp seems to be following its own flow, let's retrieve it in a dedicated
|
* mbp seems to be following its own flow, let's retrieve it in a dedicated
|
||||||
* function.
|
* function.
|
||||||
|
|
Loading…
Reference in New Issue