mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-01 02:37:27 +01:00
fusee/sept/exo: minor code style fixes
This commit is contained in:
parent
6d5d97cfcd
commit
2619ccad0c
@ -52,18 +52,18 @@ void fuse_disable_programming(void) {
|
|||||||
/* Enable power to the fuse hardware array. */
|
/* Enable power to the fuse hardware array. */
|
||||||
void fuse_enable_power(void) {
|
void fuse_enable_power(void) {
|
||||||
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
||||||
pmc->fuse_control &= ~(0x200); // Clear PMC_FUSE_CTRL_PS18_LATCH_CLEAR.
|
pmc->fuse_control &= ~(0x200); /* Clear PMC_FUSE_CTRL_PS18_LATCH_CLEAR. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
pmc->fuse_control |= 0x100; // Set PMC_FUSE_CTRL_PS18_LATCH_SET.
|
pmc->fuse_control |= 0x100; /* Set PMC_FUSE_CTRL_PS18_LATCH_SET. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable power to the fuse hardware array. */
|
/* Disable power to the fuse hardware array. */
|
||||||
void fuse_disable_power(void) {
|
void fuse_disable_power(void) {
|
||||||
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
||||||
pmc->fuse_control &= ~(0x100); // Clear PMC_FUSE_CTRL_PS18_LATCH_SET.
|
pmc->fuse_control &= ~(0x100); /* Clear PMC_FUSE_CTRL_PS18_LATCH_SET. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
pmc->fuse_control |= 0x200; // Set PMC_FUSE_CTRL_PS18_LATCH_CLEAR.
|
pmc->fuse_control |= 0x200; /* Set PMC_FUSE_CTRL_PS18_LATCH_CLEAR. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,18 +52,18 @@ void fuse_disable_programming(void) {
|
|||||||
/* Enable power to the fuse hardware array. */
|
/* Enable power to the fuse hardware array. */
|
||||||
void fuse_enable_power(void) {
|
void fuse_enable_power(void) {
|
||||||
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
||||||
pmc->fuse_control &= ~(0x200); // Clear PMC_FUSE_CTRL_PS18_LATCH_CLEAR.
|
pmc->fuse_control &= ~(0x200); /* Clear PMC_FUSE_CTRL_PS18_LATCH_CLEAR. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
pmc->fuse_control |= 0x100; // Set PMC_FUSE_CTRL_PS18_LATCH_SET.
|
pmc->fuse_control |= 0x100; /* Set PMC_FUSE_CTRL_PS18_LATCH_SET. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable power to the fuse hardware array. */
|
/* Disable power to the fuse hardware array. */
|
||||||
void fuse_disable_power(void) {
|
void fuse_disable_power(void) {
|
||||||
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
||||||
pmc->fuse_control &= ~(0x100); // Clear PMC_FUSE_CTRL_PS18_LATCH_SET.
|
pmc->fuse_control &= ~(0x100); /* Clear PMC_FUSE_CTRL_PS18_LATCH_SET. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
pmc->fuse_control |= 0x200; // Set PMC_FUSE_CTRL_PS18_LATCH_CLEAR.
|
pmc->fuse_control |= 0x200; /* Set PMC_FUSE_CTRL_PS18_LATCH_CLEAR. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,8 +26,10 @@ static int tsec_dma_wait_idle()
|
|||||||
uint32_t timeout = (get_time_ms() + 10000);
|
uint32_t timeout = (get_time_ms() + 10000);
|
||||||
|
|
||||||
while (!(tsec->TSEC_FALCON_DMATRFCMD & 2))
|
while (!(tsec->TSEC_FALCON_DMATRFCMD & 2))
|
||||||
|
{
|
||||||
if (get_time_ms() > timeout)
|
if (get_time_ms() > timeout)
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -55,8 +57,10 @@ static int tsec_kfuse_wait_ready()
|
|||||||
|
|
||||||
/* Wait for STATE_DONE. */
|
/* Wait for STATE_DONE. */
|
||||||
while (!(KFUSE_STATE & 0x10000))
|
while (!(KFUSE_STATE & 0x10000))
|
||||||
|
{
|
||||||
if (get_time_ms() > timeout)
|
if (get_time_ms() > timeout)
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check for STATE_CRCPASS. */
|
/* Check for STATE_CRCPASS. */
|
||||||
if (!(KFUSE_STATE & 0x20000))
|
if (!(KFUSE_STATE & 0x20000))
|
||||||
|
@ -97,8 +97,10 @@ static int tsec_dma_wait_idle()
|
|||||||
uint32_t timeout = (get_time_ms() + 10000);
|
uint32_t timeout = (get_time_ms() + 10000);
|
||||||
|
|
||||||
while (!(tsec->TSEC_FALCON_DMATRFCMD & 2))
|
while (!(tsec->TSEC_FALCON_DMATRFCMD & 2))
|
||||||
|
{
|
||||||
if (get_time_ms() > timeout)
|
if (get_time_ms() > timeout)
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -126,8 +128,10 @@ static int tsec_kfuse_wait_ready()
|
|||||||
|
|
||||||
/* Wait for STATE_DONE. */
|
/* Wait for STATE_DONE. */
|
||||||
while (!(KFUSE_STATE & 0x10000))
|
while (!(KFUSE_STATE & 0x10000))
|
||||||
|
{
|
||||||
if (get_time_ms() > timeout)
|
if (get_time_ms() > timeout)
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check for STATE_CRCPASS. */
|
/* Check for STATE_CRCPASS. */
|
||||||
if (!(KFUSE_STATE & 0x20000))
|
if (!(KFUSE_STATE & 0x20000))
|
||||||
|
@ -52,18 +52,18 @@ void fuse_disable_programming(void) {
|
|||||||
/* Enable power to the fuse hardware array. */
|
/* Enable power to the fuse hardware array. */
|
||||||
void fuse_enable_power(void) {
|
void fuse_enable_power(void) {
|
||||||
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
||||||
pmc->fuse_control &= ~(0x200); // Clear PMC_FUSE_CTRL_PS18_LATCH_CLEAR.
|
pmc->fuse_control &= ~(0x200); /* Clear PMC_FUSE_CTRL_PS18_LATCH_CLEAR. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
pmc->fuse_control |= 0x100; // Set PMC_FUSE_CTRL_PS18_LATCH_SET.
|
pmc->fuse_control |= 0x100; /* Set PMC_FUSE_CTRL_PS18_LATCH_SET. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable power to the fuse hardware array. */
|
/* Disable power to the fuse hardware array. */
|
||||||
void fuse_disable_power(void) {
|
void fuse_disable_power(void) {
|
||||||
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
volatile tegra_pmc_t *pmc = pmc_get_regs();
|
||||||
pmc->fuse_control &= ~(0x100); // Clear PMC_FUSE_CTRL_PS18_LATCH_SET.
|
pmc->fuse_control &= ~(0x100); /* Clear PMC_FUSE_CTRL_PS18_LATCH_SET. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
pmc->fuse_control |= 0x200; // Set PMC_FUSE_CTRL_PS18_LATCH_CLEAR.
|
pmc->fuse_control |= 0x200; /* Set PMC_FUSE_CTRL_PS18_LATCH_CLEAR. */
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user