s3c2440: Fix some compilation failures in the mini2440 bootloader

This whole platform has bitrotten, may be prudent to just nuke it.

Change-Id: Ia12e7ebc160484e57a74dd689d6095d22f3dbfd9
This commit is contained in:
Solomon Peachy 2026-01-27 07:10:44 -05:00
parent b562c9d58f
commit 33678c6c3c
4 changed files with 43 additions and 44 deletions

View file

@ -101,7 +101,7 @@ void dma_release(void)
}
inline void dma_disable_channel(int channel)
void dma_disable_channel(int channel)
{
struct dma_channel_regs *regs = dma_regs [channel];

View file

@ -51,7 +51,7 @@ struct dma_request
void dma_init(void);
void dma_enable_channel(int channel, struct dma_request *request);
inline void dma_disable_channel(int channel);
void dma_disable_channel(int channel);
void dma_retain(void);
void dma_release(void);

View file

@ -25,6 +25,7 @@
#include "system.h"
#include "stdlib.h"
#include "button.h"
#include "tick.h"
#include "touchscreen.h"
#define NO_OF_TOUCH_DATA 5
@ -186,5 +187,3 @@ int touchscreen_read_device(int *data, int *old_data)
return btn;
}

View file

@ -799,7 +799,7 @@ int sd_read_sectors(IF_MD(int card_no,) sector_t start, int incount,
ret = 0; /* assume success */
else
#endif
ret = sd_transfer_sectors(card_no, start, incount, inbuf, false);
ret = sd_transfer_sectors(IF_MD_DRV(card_no), start, incount, inbuf, false);
dbgprintf ("sd_read, ret=%d\n", ret);
return ret;
}
@ -827,7 +827,7 @@ int sd_write_sectors(IF_MD(int drive,) sector_t start, int count,
return 0; /* assume success */
else
#endif
return sd_transfer_sectors(drive, start, count, (void*)outbuf, true);
return sd_transfer_sectors(IF_MD_DRV(drive), start, count, (void*)outbuf, true);
#endif
}
/*****************************************************************************/