@ -48,4 +48,3 @@ int addr2ram(ulong addr)
return result;
}
@ -304,4 +304,3 @@ void ft_board_setup(void *blob, bd_t *bd)
#endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
#endif /* CONFIG_CMD_IDE */
@ -25,4 +25,3 @@
#define SDRAM_CONTROL 0x505F0000
#define SDRAM_CONFIG1 0xD2322900
#define SDRAM_CONFIG2 0x8AD70000
@ -21,4 +21,3 @@
# MA 02111-1307 USA
#
TEXT_BASE = 0xFFFC0000
@ -43,4 +43,3 @@ include $(SRCTREE)/rules.mk
sinclude $(obj).depend
#########################################################################
@ -88,4 +88,3 @@ int dcache_status (void)
{
return dcache_status();
@ -142,4 +142,3 @@ struct mg_host {
#endif /* CONFIG_MG_DEBUG */
#endif
@ -162,7 +162,8 @@ void qe_init(uint qe_base)
qe_immr = (qe_map_t *)qe_base;
#ifdef CONFIG_SYS_QE_FW_ADDR
/* Upload microcode to IRAM for those SOCs which do not have ROM in QE.
/*
* Upload microcode to IRAM for those SOCs which do not have ROM in QE.
*/
qe_upload_firmware((const struct qe_firmware *) CONFIG_SYS_QE_FW_ADDR);
@ -99,4 +99,3 @@ void rtc_reset (void)
BCDSEC = 0;
RTCCON &= 1;
@ -102,4 +102,3 @@ int serial_tstc (void)
return (GET8(U0LSR) & 1);
@ -27,4 +27,3 @@ static inline u16 crc16_byte(u16 crc, const u8 data)
#endif /* __CRC16_H */
@ -28,4 +28,3 @@ void cpu_mp_lmb_reserve(struct lmb *lmb);
u32 determine_mp_bootpg(void);
@ -343,4 +343,3 @@
#define CONFIG_LBA48 1
#endif /* __CONFIG_H */
@ -200,13 +200,15 @@ static char* put_dec_full(char *buf, unsigned q)
d2 = (q>>8) & 0xf;
d3 = (q>>12);
/* Possible ways to approx. divide by 10 */
/* gcc -O2 replaces multiply with shifts and adds */
// (x * 0xcd) >> 11: 11001101 - shorter code than * 0x67 (on i386)
// (x * 0x67) >> 10: 1100111
// (x * 0x34) >> 9: 110100 - same
// (x * 0x1a) >> 8: 11010 - same
// (x * 0x0d) >> 7: 1101 - same, shortest code (on i386)
* Possible ways to approx. divide by 10
* gcc -O2 replaces multiply with shifts and adds
* (x * 0xcd) >> 11: 11001101 - shorter code than * 0x67 (on i386)
* (x * 0x67) >> 10: 1100111
* (x * 0x34) >> 9: 110100 - same
* (x * 0x1a) >> 8: 11010 - same
* (x * 0x0d) >> 7: 1101 - same, shortest code (on i386)
d0 = 6*(d3 + d2 + d1) + (q & 0xf);
q = (d0 * 0xcd) >> 11;